Initializes the data with the scene state setting common scene wide parameters.
| 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 | { |
nothing calls this directly
no test coverage detected