-
class
SGFXAPI::
IndexBuffer
¶ The IndexBuffer (IBO) actually represents the index data array sent to the GPU.
- The array is simply a list of integers.
- The size of the integers is one of {8,16,32} bits; it can be chosen in the constructor.
- Each integer is an index into the VBOs of the mesh.
- In the most usual case, the mesh is a triangle mesh, and the IBO represents a series of triangles; in this case, every 3 indices is another triangle.
- See
- getHandle(const IndexBuffer&)
Public Functions
-
int
IndexSizeBytes
() const¶ Returns the size of a single index in bytes (1,2 or 4, depending on indexType).