I'm porting some OpenGL code that has the vertex position, normal, tex
coord, ... interleaved in one large array.

In OpenGL I could use one buffer:
glBindBuffer( GL_ARRAY_BUFFER, bufferObject );
glVertexPointer( 3, GL_FLOAT, sizeOfVertex, 0 );
glNormalPointer( GL_FLOAT, sizeOfVertex, offsetToNormal );

I'm struggling to figure out how to do it in OSG.  The only OSG examples
I can find have the position data in one array, the normal data in
another, ...  I've been looking through the source code, but I'm not
having much luck.  Any pointers?  Thanks.

Ken.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to