Hello all I have a bunch of aggregate elements within my array.
This array is for vertex positions in OpenGL.
and I need to make a switch without having to bind more data to OpenGL.
To do this I must put an if statement within the array or a booleon variable = true;
How would I go about doing this without it giving me weird errors
Here is my array
`
//GUI Cordinates x y z w - NEEDS TEX CORDS
static const GLfloat GUIVertices[] = {
///////////////////////////////////////////////////////////////////////////
//ToolBar
1.0f, 1.0f, 0.0f, 1.0f, 1.0f, 0.0f,
-1.0f, 1.0f, 0.0f, 1.0f, 0.0f, 0.0f,
-1.0f, 0.94f, 0.0f, 1.0f, 0.0f, 1.0f,
1.0f, 0.94f, 0.0f, 1.0f, 1.0f, 1.0f,
//////////////////////////////////////////////////////////////////////////
//Main ToolBox
// x y z w X Y
1.0f, -1.0f, 0.0f, 1.0f, 1.0f, 0.0f,
-1.0f,-1.0f, 0.0f, 1.0f, 0.0f, 0.0f,
-1.0f,-0.94f, 0.0f,1.0f, 0.0f, 1.0f,
1.0f, -0.94f, 0.0f,1.0f, 1.0f, 1.0,
};
`