I have been trying to use the vertex array technique but I keep getting a type mismatch problem at the line
Glvertexpointer 3,glfloat,0,vertices
I have previously declared vertices as a glgloat array
I have been trying to use the vertex array technique but I keep getting a type mismatch problem at the line
Glvertexpointer 3,glfloat,0,vertices
I have previously declared vertices as a glgloat array
probably because the last param must be a (const GLVoid*) are you passing a void pointer or something else ??
Specify what language you are using and wich compiler, it could be helpfull to receive an help.
Did you forgot an underscore in glfloat maybe? Try GL_FLOAT. Without underscrore, you get a datatype, not a numeric value.
I have now found the problem. I needed to put the starting index in the array. Now I have a new problem. Everytime I use the gldrawarray, the system crashed. I developing this graphics program using visual basic 6.0
I have realised that the last message had so much grammatical error. It should read
Originally posted by DSmith:
[b]I have now found the problem. I needed to put the starting index in the array. Now I have a new problem. Everytime I use the gldrawarray, the system crashes. I am developing this graphics program using visual basic 6.0
[/b]