Well if you declare the pointer the right way, then yes you can allocate the whole 2D array in one step.
float (*vertices)[3];
But this only works when all the minor dimensions are constants.
BTW - Use std::vector in C++.
Reputation Points: 5862
Solved Threads: 950
Posting Sage
Offline 7,164 posts
since Dec 2005