MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / init

Method init

Engine/source/materials/sceneData.h:110–119  ·  view source on GitHub ↗

Initializes the data with the scene state setting common scene wide parameters.

Source from the content-addressed store, hash-verified

108 /// Initializes the data with the scene state setting
109 /// common scene wide parameters.
110 inline void init( const SceneRenderState *state, BinType type = RegularBin )
111 {
112 dMemset( this, 0, sizeof( SceneData ) );
113 setFogParams( state->getSceneManager()->getFogData() );
114 wireframe = GFXDevice::getWireframe();
115 binType = type;
116 objTrans = &MatrixF::Identity;
117 visibility = 1.0f;
118 ambientLightColor = state->getAmbientLightColor();
119 }
120
121 inline void setFogParams( const FogData &data )
122 {

Callers

nothing calls this directly

Calls 3

dMemsetFunction · 0.50
getSceneManagerMethod · 0.45
getAmbientLightColorMethod · 0.45

Tested by

no test coverage detected