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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With