PDA

View Full Version : Vertex Array Problem



02-05-2002, 09:45 PM
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

rIO
02-06-2002, 01:01 AM
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.

rIO.sK http://www.spinningkids.org/rio

Bob
02-06-2002, 01:12 AM
Did you forgot an underscore in glfloat maybe? Try GL_FLOAT. Without underscrore, you get a datatype, not a numeric value.

02-06-2002, 04:14 AM
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

02-06-2002, 04:16 AM
I have realised that the last message had so much grammatical error. It should read


Originally posted by DSmith:
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