MCPcopy Create free account
hub / github.com/beefytech/Beef / GetImageData

Method GetImageData

BeefySysLib/gfx/Texture.cpp:50–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50void TextureSegment::GetImageData(ImageData& imageData)
51{
52 int x1 = (int)(mU1 * mTexture->mWidth + 0.5f);
53 int x2 = (int)(mU2 * mTexture->mWidth + 0.5f);
54 int y1 = (int)(mV1 * mTexture->mHeight + 0.5f);
55 int y2 = (int)(mV2 * mTexture->mHeight + 0.5f);
56 imageData.CreateNew(x2 - x1, y2 - y1);
57 mTexture->GetBits(x1, y1, x2 - x1, y2 - y1, x2 - x1, imageData.mBits);
58}
59
60void TextureSegment::GetImageData(ImageData& imageData, int destX, int destY)
61{

Callers 1

Gfx_ApplyEffectFunction · 0.80

Calls 2

CreateNewMethod · 0.80
GetBitsMethod · 0.45

Tested by

no test coverage detected