Maria GDK 5.0.0.1010
Documentation of native code in develop branch
Loading...
Searching...
No Matches
Maria::GridIndexBuffer Class Reference

#include <MGridIndexBuffer.h>

Public Member Functions

 GridIndexBuffer (std::shared_ptr< STK::BufferManager > bufferManager, int rows=0, int cols=0)
 
std::shared_ptr< STK::IndexPoolgetIndexPool ()
 
STK::IndexAllocation getIndexAllocation ()
 
void clearBuffer ()
 
bool prepareFrame ()
 
bool initBuffer ()
 
bool initBuffer (const std::vector< bool > &validIndexes)
 
int getNumRows () const
 
int getNumCols () const
 
int getNumGridCellCols () const
 
int getNumGridCellRows () const
 

Detailed Description

GridIndexBuffer - 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).


The documentation for this class was generated from the following files: