![]() |
Maria GDK 5.0.0.930
Documentation of native code in develop branch
|
#include <MGridIndexBuffer.h>
Public Member Functions | |
| GridIndexBuffer (int rows=0, int cols=0) | |
| void | resize (int rows, int cols) |
| bool | bindBuffer () |
| Bind the OpenGL Buffer. | |
| int | getNumRows () const |
| int | getNumCols () const |
| bool | drawIndexedTriangles () |
| Draw indexed triangles. This method requires that a corresponding vertex buffer is enabled. | |
| int | getNumGridCellCols () const |
| int | getNumGridCellRows () const |
| int | getNumTriangleIndices () const |
GridIndexBuffer - OpenGL index buffer for gridded data. This index buffer can be shared between different gridded data objects.
This will create a grid of triangle indexes with two triangles per grid cell The number of rows and cols specifies the grid vertices (corners), so the number of grid cells is actually (rows - 1)*(cols - 1).
| bool Maria::GridIndexBuffer::drawIndexedTriangles | ( | ) |
Draw indexed triangles. This method requires that a corresponding vertex buffer is enabled.