13

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?

datenwolf
  • 159,371
  • 13
  • 185
  • 298
user1575728
  • 131
  • 1
  • 1
  • 3

1 Answers1

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