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

Method InitFromTexture

BeefySysLib/gfx/Texture.cpp:25–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25void TextureSegment::InitFromTexture(Texture* texture)
26{
27 mTexture = texture;
28 mU1 = 0;
29 mV1 = 0;
30 mU2 = 1.0f;
31 mV2 = 1.0f;
32 mScaleX = (float) mTexture->mWidth;
33 mScaleY = (float) mTexture->mHeight;
34}
35
36void TextureSegment::SetBits(int destX, int destY, int destWidth, int destHeight, int srcPitch, uint32* bits)
37{

Callers 5

Gfx_CreateRenderTargetFunction · 0.80
Gfx_CreateDynTextureFunction · 0.80
Gfx_LoadTextureFunction · 0.80
Res_PSD_GetLayerTextureFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected