![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cMesh.h>
Public Member Functions | |
cMeshVertsV (size_t nVertStride=sizeof(cVector3f)) | |
size_t | get_VertStride () const |
ITERATE_t | get_VertQty () const |
cVector3f & | ref_Vert (ITERATE_t i) |
const cVector3f & | get_Vert (ITERATE_t i) const |
cVector3f * | get_VertPtr () |
void | SetVertQty (ITERATE_t dwQty, size_t nVertStride) |
void | FreeVerts () |
void | AddVert (const void *pVert) |
Protected Attributes | |
size_t | m_nVertStride |
Size of each vertex blob. ASSUME (m_nVertStride >= sizeof(cVector3f)) More... | |
ITERATE_t | m_nVertices |
Quantity of (m_nVertStride sized) vertex elements allocated. COUNT_t. More... | |
cHeapBlock | m_Vertices |
cVector3f based flexible vertex format. More... | |
Arbitrary stride sized vertex array. Flexible vertex format. (for a mesh) extra data for each vertex may include normals, tangents, UV data, shader data, etc
|
inline |
|
inline |
Add a new vertex of m_nVertStride size.
|
inline |
Get the vertex vector portion of the vertex block. cast this to the true vertex structure type.
|
inline |
|
inline |
|
inline |
size in bytes.
Reference the vertex vector portion of the vertex block.
|
inline |
Create space for un-init vertices. if m_nVertStride changes then any previous data is now junk.
|
protected |
Quantity of (m_nVertStride sized) vertex elements allocated. COUNT_t.
|
protected |
Size of each vertex blob. ASSUME (m_nVertStride >= sizeof(cVector3f))
|
protected |
cVector3f based flexible vertex format.