Interleaved Arrays w/ VBOs?

Started by
9 comments, last by L. Spiro 9 years, 10 months ago

First I wanted to say thanks for your response. Second, I already tried removing that and replacing with

&current_vertexattribute[i]
instead, but that still doesn't work. Is there another way to do this?

Should have been:
current_vertexattribute[i].offset

vertextype *v = NULL;

glVertexAttribPointer (0, ..., v->position);
glVertexAttribPointer (1, ..., v->normal);


Should be:
glVertexAttribPointer (0, ..., &v->position);
glVertexAttribPointer (1, ..., &v->normal);
Otherwise you get illegal access.


L. Spiro

I restore Nintendo 64 video-game OST’s into HD! https://www.youtube.com/channel/UCCtX_wedtZ5BoyQBXEhnVZw/playlists?view=1&sort=lad&flow=grid

This topic is closed to new replies.

Advertisement