Results 1 to 2 of 2

Thread: compiled vertex arrays question?

  1. #1
    Senior Member Regular Contributor
    Join Date
    Sep 2001
    macedon, ny

    compiled vertex arrays question?

    If you want to create a compiled vertex array, does the array have to be declared at the coding start, or can the array be read into memory, and then locked for use from then on?? I want to load a map into memory from a txt file, then lock the vertex information into a compiled array, is this possible, or do I need to put the array into hardcode before compiling??

  2. #2

    Re: compiled vertex arrays question?

    Yes of course.. just create an array on the fly.. simplest being way in c being

    float *myvertexrange = malloc(sizeof(float) * num_text_array_elements);

    then just spool your text data into the array whenever you like. dont forget to set the vertex pointer to myvertexrange

Similar Threads

  1. Compiled Vertex Arrays?
    By Lloyd in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 03-18-2003, 10:32 AM
  2. compiled vertex arrays
    By Lev in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 05-29-2001, 03:20 PM
  3. Compiled Vertex Arrays
    By HFAFiend in forum OpenGL: Advanced Coding
    Replies: 8
    Last Post: 04-24-2001, 09:35 AM
  4. Compiled Vertex Arrays
    By mwanderson in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 01-09-2001, 12:48 AM
  5. Compiled Vertex Arrays
    By KRONOS in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 08-26-2000, 03:06 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