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

Method Tr2InteriorPlaceable

trinity/Interior/Tr2InteriorPlaceable.cpp:24–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22CCP_STATS_DECLARE( wodInteriorPlaceablesAlive, "Trinity/Tr2InteriorPlaceables", false, CST_COUNTER_LOW, "Count of Tr2InteriorPlaceables alive" );
23
24Tr2InteriorPlaceable::Tr2InteriorPlaceable( IRoot* lockobj ) :
25 m_display( true ),
26 m_isUniqueInstance( false ),
27 PARENTLOCK( m_transform, IInitialize ),
28 m_placeableResPath(),
29 m_placeableRes(),
30 m_lightSet(),
31 m_boundingSphere( 0.f, 0.f, 0.f, 0.f ),
32 m_isBoundingBoxModified( false ),
33 m_cellReflectionTime( 0.0f ),
34 m_previousUpdateTime( 0 ),
35 m_transitionFinished( false ),
36 m_probeOffset( 0.f, 0.f, 0.f ),
37 m_depthOffset( 0.f )
38{
39 static_cast<Matrix&>( m_transform ) = IdentityMatrix();
40
41 m_currentPosition = Vector3( 0.0f, 0.0f, 0.0f );
42 m_currentScaling = Vector3( 1.0f, 1.0f, 1.0f );
43 m_currentRotation = Quaternion( 0.0f, 0.0f, 0.0f, 1.0f );
44 m_positionSet = false;
45 m_scalingSet = false;
46 m_rotationSet = false;
47
48 BoundingBoxInitialize( m_minBounds, m_maxBounds );
49
50 m_variableStore.CreateInstance();
51
52 m_variableStore->RegisterVariable( "CellReflectionMap", (TriTextureRes*)NULL );
53 m_variableStore->RegisterVariable( "CellReflection2ndMap", (TriTextureRes*)NULL );
54 m_variableStore->RegisterVariable( "CellReflectionInterpolation", 0.0f );
55
56 CCP_STATS_INC( wodInteriorPlaceablesAlive );
57}
58
59Tr2InteriorPlaceable::~Tr2InteriorPlaceable()
60{

Callers

nothing calls this directly

Calls 5

BoundingBoxInitializeFunction · 0.85
CreateInstanceMethod · 0.80
RegisterVariableMethod · 0.80
Vector3Class · 0.50
QuaternionClass · 0.50

Tested by

no test coverage detected