29 inline void GetTriangle(uint32_t t, uint32_t& v0, uint32_t& v1, uint32_t& v2)
const;
55 if (
size ==
sizeof(uint32_t))
57 uint32_t*
index =
reinterpret_cast<uint32_t*
>(
source) + 3 * t;
64 if (
size ==
sizeof(uint16_t))
66 uint16_t*
index =
reinterpret_cast<uint16_t*
>(
source) + 3 * t;
67 index[0] =
static_cast<uint16_t
>(
v0);
68 index[1] =
static_cast<uint16_t
>(
v1);
69 index[2] =
static_cast<uint16_t
>(
v2);
78 if (
size ==
sizeof(uint32_t))
80 uint32_t*
index =
reinterpret_cast<uint32_t*
>(
source) + 3 * t;
87 if (
size ==
sizeof(uint16_t))
89 uint16_t*
index =
reinterpret_cast<uint16_t*
>(
source) + 3 * t;
90 v0 =
static_cast<uint32_t
>(index[0]);
91 v1 =
static_cast<uint32_t
>(index[1]);
92 v2 =
static_cast<uint32_t
>(index[2]);
void GetTriangle(uint32_t t, uint32_t &v0, uint32_t &v1, uint32_t &v2) const
void SetTriangle(uint32_t t, uint32_t v0, uint32_t v1, uint32_t v2)
GLsizei GLsizei GLchar * source
GLfloat GLfloat GLfloat v2