How to cast int to const GLvoid*? Like this: reinterpret_cast <GLvoid *> (start * sizeof(unsigned int));