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

Method SetInvertedCullMode

trinity/Shader/Tr2EffectStateManager.cpp:815–827  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

813}
814
815void Tr2EffectStateManager::SetInvertedCullMode( bool b )
816{
817 static const uint32_t overrides[] = { 0, CULLMODE_NONE, CULLMODE_CCW, CULLMODE_CW };
818
819 if( b )
820 {
821 SetRenderStateOverride( RS_CULLMODE, overrides );
822 }
823 else
824 {
825 SetRenderStateOverride( RS_CULLMODE, nullptr );
826 }
827}
828
829bool Tr2EffectStateManager::IsCullModeInverted( void )
830{

Callers 4

InitRenderPassMethod · 0.80
EndRenderPassMethod · 0.80
RenderMethod · 0.80
RenderReflectionPassMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected