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

Function ShouldReflect

trinity/Eve/EveEntity.cpp:13–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11{
12
13bool ShouldReflect( ReflectionMode mode )
14{
15 if( g_eveReflectionMode == ReflectionSetting::REFLECTION_SETTING_OFF )
16 {
17 return false;
18 }
19
20 switch( mode )
21 {
22 case REFLECT_NEVER:
23 return false;
24 case REFLECT_LOW_MEDIUM_HIGH:
25 return true;
26 case REFLECT_MEDIUM_AND_HIGH:
27 return g_eveReflectionMode != ReflectionSetting::REFLECTION_SETTING_LOW; // we have either medium, high or highest settings
28 case REFLECT_HIGH:
29 return g_eveReflectionMode == ReflectionSetting::REFLECTION_SETTING_HIGH || g_eveReflectionMode == REFLECTION_SETTING_ULTRA;
30 default:
31 return false;
32 }
33}
34}
35
36EveEntity::EveEntity( IRoot* root ) :

Callers 11

BLUE_CLASSFunction · 0.85
IsCastingShadowMethod · 0.85
RegisterComponentsMethod · 0.85
UpdateAsyncronousMethod · 0.85
RegisterComponentsMethod · 0.85
UpdateSyncronousMethod · 0.85
RegisterComponentsMethod · 0.85
IsCastingShadowMethod · 0.85
RegisterComponentsMethod · 0.85
EveChildMesh.hFile · 0.85
IsCastingShadowMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected