I am attempting to render a set of triangles, and this is my setup:
I am implementing strips, but cant get that to work, so I am attempting just the triangles for the first run.
PT_Triangles = 0x0004,
PT_Triangle_Strip = 0x0005
std::vector<unsigned int> m_Indices;
A list of strips, each containing a list of indecies, and a type value
I then send a set of parameters to a function, I send a pointer to std::vector<primitives> Triangles; And call it strips inside the function, I also send the verticies, but that isnt important here.
I have the below in a for loop (hence the [B]), and I call it to render my mesh.
glDrawElements(GL_TRIANGLES, (*strips)[B].m_Indices.size(), GL_UNSIGNED_INT, &(*strips)[B].m_Indices);
But it crashs before it renders. I have tried to turn off everything along the way, and it ONLY crashs when it reaches this step. I am realy bad w/pointers, am I possibly doign something wrong? Or what?