Results 1 to 5 of 5

Thread: Vertex Array Problem

  1. #1
    Guest

    Vertex Array Problem

    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

  2. #2
    Senior Member Regular Contributor
    Join Date
    Aug 2000
    Location
    Turin
    Posts
    258

    Re: Vertex Array Problem

    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
    [rIO^sPINNING kIDS] - rio@nospam.spinningkids.org

    -/- This is a signature virus. Add it to your signature. Help it spreading! -/-

  3. #3
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    2,978

    Re: Vertex Array Problem

    Did you forgot an underscore in glfloat maybe? Try GL_FLOAT. Without underscrore, you get a datatype, not a numeric value.

  4. #4
    Guest

    Re: Vertex Array Problem

    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

  5. #5
    Guest

    Re: Vertex Array Problem

    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


Similar Threads

  1. vertex array problem
    By Caltus in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 06-19-2002, 05:26 AM
  2. Vertex Array Problem
    By TheBlob in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 05-28-2002, 09:37 PM
  3. vertex array problem
    By Asshen Shugar in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 04-12-2001, 05:55 AM
  4. Vertex Array problem ....
    By Arath in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 01-15-2001, 05:36 AM
  5. Vertex Array problem...
    By KRONOS in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 10-20-2000, 05:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean