Tesselated squared regular 2d grid. More...
Public Member Functions | |
Grid (float size, short tesselation) | |
Creates a squared regular grid of certain world size and with a specific tesselation count; | |
Grid (float size, short tesselation, Vector2 offset) | |
Creates a squared regular grid of certain world size and with a specific tesselation count; | |
void | Split (SplitPlane2 plane) |
Computes a split version of the present grid by splitting it against the given SplitPlane. | |
void | DisposeBuffers () |
Disposes ressources allocated on the graphics card. | |
ConcreteRenderable | GetConcreteRenderable (GraphicsDevice device) |
Either returns the cached concreteRenderable or creates a new one from SplitGrid. |
Properties | |
Vertex2[] | Vertices [get, set] |
Contains all Vertices | |
Triangle2[] | Triangles [get, set] |
Contains all Triangles | |
SplitPlane2 | LastSplitPlane [get, set] |
The last plane the Grid was split against | |
IRenderable | SplitGrid [get, set] |
Holds the split version of the present grid | |
Bounds2 | Bounds [get, set] |
Specifies the min and max extends of the grid | |
Matrix | Transform [get, set] |
Transformation which is applied before rendering | |
VertexPositionTexture[] | VertexData [get, set] |
Contains VertexData to be uploaded as a vertexbuffer | |
short[] | Indices [get, set] |
Contains index information to be uploaded as an indexbuffer, indexing into the vertexbuffer | |
![]() |
Tesselated squared regular 2d grid.
Clv.Viewer.Grid.Grid | ( | float | size, |
short | tesselation | ||
) |
Creates a squared regular grid of certain world size and with a specific tesselation count;
Clv.Viewer.Grid.Grid | ( | float | size, |
short | tesselation, | ||
Vector2 | offset | ||
) |
Creates a squared regular grid of certain world size and with a specific tesselation count;
void Clv.Viewer.Grid.DisposeBuffers | ( | ) |
Disposes ressources allocated on the graphics card.
ConcreteRenderable Clv.Viewer.Grid.GetConcreteRenderable | ( | GraphicsDevice | device | ) |
Either returns the cached concreteRenderable or creates a new one from SplitGrid.
device | GraphicsDevice for buffer conversion |
Implements Clv.Viewer.IRenderable.
void Clv.Viewer.Grid.Split | ( | SplitPlane2 | plane | ) |
Computes a split version of the present grid by splitting it against the given SplitPlane.
plane | SplitPlane to split against |
|
getset |
Specifies the min and max extends of the grid
|
getset |
Contains index information to be uploaded as an indexbuffer, indexing into the vertexbuffer
Implements Clv.Viewer.IRenderable.
|
getset |
The last plane the Grid was split against
|
getset |
Holds the split version of the present grid
|
getset |
Transformation which is applied before rendering
Implements Clv.Viewer.IRenderable.
|
getset |
Contains all Triangles
|
getset |
Contains VertexData to be uploaded as a vertexbuffer
Implements Clv.Viewer.IRenderable.
|
getset |
Contains all Vertices