Jump to content
  • Advertisement
Sign in to follow this  
Kris2456

Two dimesional vector array

This topic is 5469 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Im trying to design q normal calculation system. I tried to create a two dimensional array of CVector3's on heap. But it keeps saying: 34 C:\Documents and Settings\Kris2456\My Documents\Programming\Engine\Terrain.cpp cannot convert `CVector3 (*)[2]' to `CVector3*' in I tried to declare it as this: CVector3 *PolyMap = new CVector3[1023*1023][2]; Could anyone help, i assume it will be an easy answer. Thx

Share this post


Link to post
Share on other sites
Advertisement
Another solution is via dynamic allocation.

typedef std::vector<int> vecInt;
vecInt **x = new vecInt *[1];
x[0] = new vecInt;

Kuphryn

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!