[<<][opengl][>>][..]
Sat Feb 28 02:29:24 EST 2015

Vertex Attributes

Let me see if I understand this.

The vertex shader takes attributes and produces gl_Position
( Can it produce more attributes? )

Attributes are passed to the renderer by:
glGenBuffers()  // generate a buffer obect
glBindBuffer(GL_ARRAY_BUFFER) // bind buffer to vertex attributes
glBufferData() // copy data, set usage pattern[1]
glDrawArrays() // draw the enabled arrays, interpreting as sequence of primitives

[1] https://stackoverflow.com/questions/8281653/how-to-choose-between-gl-stream-draw-or-gl-dynamic-draw

[Reply][About]
[<<][opengl][>>][..]