guju
06-16-2002, 07:44 PM
Hi !
I used the following:
glPolygonMode(GL_FRONT_AND_BACK,GL_FILL);
glBindTexture( GL_TEXTURE_1D, texResult );
glEnableClientState(GL_TEXTURE_COORD_ARRAY);
glTexCoordPointer(1, GL_FLOAT, 0, result_damage);
glEnableClientState (GL_VERTEX_ARRAY);
glVertexPointer (3, GL_FLOAT, 0, vertices);
glDrawElements (GL_QUADS, numQuads*4, GL_UNSIGNED_INT, elements_quad);
and i always get the error "invalid Value". But my size is 1! The values in result_damage are between 0.0 and 1.0
Thanks
I used the following:
glPolygonMode(GL_FRONT_AND_BACK,GL_FILL);
glBindTexture( GL_TEXTURE_1D, texResult );
glEnableClientState(GL_TEXTURE_COORD_ARRAY);
glTexCoordPointer(1, GL_FLOAT, 0, result_damage);
glEnableClientState (GL_VERTEX_ARRAY);
glVertexPointer (3, GL_FLOAT, 0, vertices);
glDrawElements (GL_QUADS, numQuads*4, GL_UNSIGNED_INT, elements_quad);
and i always get the error "invalid Value". But my size is 1! The values in result_damage are between 0.0 and 1.0
Thanks