Helper class for rendering additional grid models - roof tops, roof edges, etc). Instances must be rotated with ortho matrices only.
More...
Helper class for rendering additional grid models - roof tops, roof edges, etc). Instances must be rotated with ortho matrices only.
Definition at line 25 of file MyGridPartsRenderData.cs.
Sandbox.Game.Entities.Cube.MyGridPartsRenderData.MyGridPartsRenderData |
( |
MyInstanceFlagsEnum |
flags, |
|
|
float |
maxViewDistance, |
|
|
float |
transparency = 0f , |
|
|
string |
debugBufferName = "Instance buffer" |
|
) |
| |
|
inline |
Adds instance of the given model and returns its internal id which can be used for removing the instance. Local matrix specified will be changed to internal packed matrix.
- Parameters
-
model | |
localMatrix | Local transformation matrix. Changed to internal matrix. |
colorMaskHsv | |
Definition at line 94 of file MyGridPartsRenderData.cs.
void Sandbox.Game.Entities.Cube.MyGridPartsRenderData.ClearInstanceData |
( |
| ) |
|
|
inline |
bool Sandbox.Game.Entities.Cube.MyGridPartsRenderData.RemoveInstance |
( |
ModelId |
model, |
|
|
uint |
instanceId |
|
) |
| |
|
inline |
void Sandbox.Game.Entities.Cube.MyGridPartsRenderData.UnloadRenderObjects |
( |
| ) |
|
|
inline |
void Sandbox.Game.Entities.Cube.MyGridPartsRenderData.UpdateRenderEntitiesData |
( |
MatrixD |
worldMatrix, |
|
|
bool |
useTransparency = false |
|
) |
| |
|
inline |
void Sandbox.Game.Entities.Cube.MyGridPartsRenderData.UpdateRenderInstanceData |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file: