Advertisement

Dyn. alloc 2 dim float array not same as float[4][4]??

Started by November 18, 2001 08:03 PM
9 comments, last by HellRiZZer 23 years, 3 months ago
Yes. Also, both of those arrays are consecutive. Another example:

var[num_vertex][3];
[Memory Internal][[0][1][2]][[0][1][2]]...

var[num_vertex*3];
[Memory Internal][0][1][2][4][5][6]...

It''s only ''sparse'' like I displayed if it (the second dimension, actually) is dynamically allocated. OpenGL _only_ takes single dimension consecutive arrays for vertex arrays (with some exceptions, but that''s the default).

[Resist Windows XP''s Invasive Production Activation Technology!]

This topic is closed to new replies.

Advertisement