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

Method SetTexture

BeefySysLib/gfx/DrawLayer.cpp:332–339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330}
331
332void DrawLayer::SetTexture(int texIdx, Texture* texture)
333{
334 if (mCurTextures[texIdx] != texture)
335 {
336 QueueRenderCmd(CreateSetTextureCmd(texIdx, texture));
337 mCurTextures[texIdx] = texture;
338 }
339}
340
341void DrawLayer::SetShaderConstantDataTyped(int usageIdx, int slotIdx, void* constData, int size, int* typeData, int typeCount)
342{

Callers 4

Gfx_DrawTextureSegmentFunction · 0.45
Gfx_AllocTrisFunction · 0.45
Gfx_DrawQuadsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected