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

Method Tr2IntSkinnedObject

trinity/Interior/Tr2IntSkinnedObject.cpp:17–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15CCP_STATS_DECLARE( wodIntSkinnedObjectsAlive, "Trinity/wodIntSkinnedObjectsAlive", false, CST_COUNTER_LOW, "Count of Tr2IntSkinnedObjects alive" );
16
17Tr2IntSkinnedObject::Tr2IntSkinnedObject( IRoot* lockobj ) :
18 Tr2SkinnedObject( lockobj ),
19 m_boundingSphere( 0.f, 0.f, 0.f, 0.f ),
20 m_lightSet(),
21 m_isInApexScene( false ),
22 m_cellReflectionTime( 0.0f ),
23 m_previousUpdateTime( 0 ),
24 m_depthOffset( 0.f ),
25 m_currentPosition( 0.0f, 0.0f, 0.0f ),
26 m_currentScaling( 1.0f, 1.0f, 1.0f ),
27 m_currentRotation( 0.0f, 0.0f, 0.0f, 1.0f ),
28 m_positionSet( false ),
29 m_scalingSet( false ),
30 m_rotationSet( false )
31{
32 m_variableStore.CreateInstance();
33 m_variableStore->SetParentVariableStore( &GlobalStore() );
34
35 m_variableStore->RegisterVariable( "CellReflectionMap", (TriTextureRes*)NULL );
36 m_variableStore->RegisterVariable( "CellReflection2ndMap", (TriTextureRes*)NULL );
37 m_variableStore->RegisterVariable( "CellReflectionInterpolation", 0.0f );
38
39 CCP_STATS_INC( wodIntSkinnedObjectsAlive );
40}
41
42Tr2IntSkinnedObject::~Tr2IntSkinnedObject()
43{

Callers

nothing calls this directly

Calls 3

CreateInstanceMethod · 0.80
RegisterVariableMethod · 0.80

Tested by

no test coverage detected