I want to use GL_POINT_SPRITE_ARB + VBO for my particle system rendering. I've done all preparations with point_sprites, but stuck at VBO. It seems that glEnableClientState, is not working. I read that it is deprecated in modern openGL. So, what should i use instead?
Asked
Active
Viewed 1.1k times
1 Answers
21
glEnableClientState is how you tell OpenGL that you're using a vertex array for a particular fixed-function attribute (gl_Vertex, gl_Color, etc). Those are all removed from core contexts. You should use glEnableVertexAttribArray to enable a generic vertex attribute, and you use glVertexAttribPointer to associate that attribute with a buffer object.
Nicol Bolas
- 449,505
- 63
- 781
- 982