MCPcopy Create free account
hub / github.com/DavidColson/Polybox / BindTexture

Function BindTexture

source/graphics.cpp:878–884  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

876// ***********************************************************************
877
878void BindTexture(sg_image image) {
879 if (pRenderState->textureState.id != SG_INVALID_ID)
880 UnbindTexture();
881
882 // Save as current texture state for binding in endObject
883 pRenderState->textureState = image;
884}
885
886// ***********************************************************************
887

Callers 2

LuaBindTextureFunction · 0.85
DrawSpriteRectFunction · 0.85

Calls 1

UnbindTextureFunction · 0.85

Tested by

no test coverage detected