Hello,
I am "researching" vertex buffer objects...
I am wondering how to combine positions with texture coordinates.
It seems there are two possibilities:
array of position;
array of texture_coordinate;
or
array of structure;
Which this document shows:
http://www.opengl.org/wiki/Common_Mistakes
The opengl doc mentions "stride".
Confusion would be with the possibility of memory being in system memory or
video memory... the programmer don't know...
Maybe the graphic cards has an internal format for verteces ? Does it use
arrays or does it use structures ?
In other words:
What would be the best memory layout for performance ?
Strides would add gaps... so I am thinking... maybe array of floats is
better ?!?
This is one of those things that must be decided upon perform starting to
code a lot of stuff... because it would require significant code changes in
the future if one has to switch.
For now I am still in experimenting phase
Though even for me doing a benchmark would require extra programming time ?!
Bye,
Skybuck.