DebugVertex_t cubeVerts[] =
{
//POSITION - TOP
{glm::vec3(vecMin.x, vecMax.y, vecMin.y), color}, //LEFT BACK
{glm::vec3(vecMax.x, vecMax.y, vecMin.y), color}, //RIGHT BACK
{glm::vec3(vecMin.x, vecMax.y, vecMax.y), color}, //LEFT FRONT
{glm::vec3(vecMax.x, vecMax.y, vecMax.y), color}, //RIGHT FRONT
//POSITION - BOTTOM
{glm::vec3(vecMin.x, vecMin.y, vecMin.y), color}, //LEFT BACK
{glm::vec3(vecMax.x, vecMin.y, vecMin.y), color}, //RIGHT BACK
{glm::vec3(vecMin.x, vecMin.y, vecMax.y), color}, //LEFT FRONT
{glm::vec3(vecMax.x, vecMin.y, vecMax.y), color}, //RIGHT FRONT
};
//Create some Indexes
unsigned int crossIndexes[] =
{
//TOP
0, 1,
2, 3,
0, 2,
1, 3,
//BOTTOM
4, 5,
6, 7,
4, 6,
5, 7,
//SIDES
0, 4,
1, 5,
2, 6,
3, 7,
};
m_iIndexCount = 24;