Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Search:

Type: Posts; User: GClements

Search: Search took 0.00 seconds.

  1. Replies
    6
    Views
    193

    An array (whether a std::array or a C-style...

    An array (whether a std::array or a C-style array) is just the data, so a pointer to the array is equivalent to a pointer to the first element.

    A std::vector is a structure which contains (amongst...
  2. Replies
    6
    Views
    193

    That's incorrect. There's nothing actually wrong...

    That's incorrect. There's nothing actually wrong with the way the OBJ is being parsed (in the sense that the vectors will end up containing the correct data).


    The OBJ format uses 1-based...
  3. Replies
    6
    Views
    193

    This won't work. You need to use e.g....

    This won't work. You need to use e.g. &sortedvertex[0] to get a pointer to the vector's data.
Results 1 to 3 of 3