Attribute Buffer

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Attribute Buffer

Itun
Can Somebody explain me how to create an attribute buffer in OpenGL?
If Somebody doesn`t understand what I mean:
|1 Face|2 Face|3 Face|... - GL_ELEMENT_ARRAY_BUFFER
|1 Attr|3 Attr|1 Attr|...

Everyone Attrs contain textures and materials (some structure).
This technique is present in DirectX.

If OpenGl doesn`t support this technique should I write a shader?
Reply | Threaded
Open this post in threaded view
|

Re: Attribute Buffer

gouessej
Administrator
Hi!

Maybe look at glVertexAttrib & glVertexAttribPointer.
Julien Gouesse | Personal blog | Website