Hi everyone,
I was wondering if there is a good way to use
void glVertexPointer(
GLint size,
GLenum type,
GLsizei stride,
const GLvoid *pointer
);
with vector<SomeClassName *> Nodes;
since its more convenient, and easy to store information in the vector.
Any help would be appreciated.
Your vector array would be an array of pointers and glVertexPointer doesn't take an array of pointers, so no, it would not work.
Your vector array would be an array of pointers and glVertexPointer doesn't take an array of pointers, so no, it would not work.
What about if i do it this way ?
vector<SomeClassName> nodes;
That's fine. You can get a pointer to the data that you can pass to glVertexPointer with nodes.data().