Hi there,
I cant implement vbo … vertex array is fine. This is a little bit code:
glGenBuffersARB( 1, &Colr );
glBindBufferARB( GL_ARRAY_BUFFER_ARB, Colr );
glBufferDataARB( GL_ARRAY_BUFFER_ARB, NumVertex*sizeof(float), Colors, GL_STATIC_DRAW_ARB );
glColorPointer(3, GL_FLOAT, 0, 0);
glGenBuffersARB( 1, &VertV );
glBindBufferARB( GL_ARRAY_BUFFER_ARB, VertV );
glBufferDataARB( GL_ARRAY_BUFFER_ARB, NumVertex*sizeof(float), Vertices, GL_STATIC_DRAW_ARB );
glVertexPointer(3, GL_FLOAT, 0, 0);
(this code is before glEnableClientState’s)
in test i used these variables:
float Vertices[12]={0,0,0, 1,0,0, 1,1,0, 0,1,0};
float Colors[12]={255,0,0, 255,0,0, 255,0,0, 255,0,0};
unsigned int VertV;
unsigned int Colr;
(works fine without vbo)
Am I missing sth? Thanks for the time and help.