MCPcopy Create free account
hub / github.com/carbonengine/trinity / SetValidatedTextures

Method SetValidatedTextures

trinity/Sprite2d/Tr2SpriteObject.cpp:335–349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

333}
334
335void Tr2TexturedSpriteObject::SetValidatedTextures( Tr2Sprite2dScene* renderer )
336{
337 // Set textures - note that we don't need the full check here - we would have
338 // bailed earlier while preparing the vertices. If anything changed with the textures
339 // we would have been flagged dirty so the check is always done there.
340 if( m_spriteEffect >= TR2_SFX_ONE_TEXTURE )
341 {
342 m_texturePrimary->Apply( renderer, 0 );
343
344 if( m_spriteEffect >= TR2_SFX_TWO_TEXTURES )
345 {
346 m_textureSecondary->Apply( renderer, 1 );
347 }
348 }
349}

Callers

nothing calls this directly

Calls 1

ApplyMethod · 0.45

Tested by

no test coverage detected