A class that specifies a range of primitives to render from either a vertex or index buffer.
More...
#include <omGraphicsIndexRange.h>
A class that specifies a range of primitives to render from either a vertex or index buffer.
om::graphics::buffers::IndexRange::IndexRange |
( |
| ) |
|
|
inline |
Create a new buffer range with the UNDEFINED primitive type and zero length.
Create a new buffer range with the specified primitive type, vertex count, and start index.
Return an object describing the type of primitive this buffer range corresponds to.
void om::graphics::buffers::IndexRange::setPrimitiveType |
( |
const IndexedPrimitiveType & |
newPrimitiveType | ) |
|
|
inline |
Set the type of primitive this buffer range corresponds to.
Size om::graphics::buffers::IndexRange::getPrimitiveCount |
( |
| ) |
const |
|
inline |
Return the number of primitives that are specified by this buffer range.
Index om::graphics::buffers::IndexRange::getStartIndex |
( |
| ) |
const |
|
inline |
Return the start index offset within the buffer.
void om::graphics::buffers::IndexRange::setStartIndex |
( |
Index |
newStartIndex | ) |
|
|
inline |
Set the start index offset within the buffer.
Size om::graphics::buffers::IndexRange::getVertexCount |
( |
| ) |
const |
|
inline |
Return the number of vertices to draw from the buffer.
void om::graphics::buffers::IndexRange::setVertexCount |
( |
Size |
newVertexCount | ) |
|
|
inline |
Set the number of vertices to draw from the buffer.
The documentation for this class was generated from the following file: