Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

TipplerP

Problems with Lesson35 in C++

This topic is 6186 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

Hi guys! I want to translate LEsson 35 totally in C++. And for this I made an array class like this one at glVelocity.gamedev.net. And as I translate it,it comes 2 mistakes. The first mistake: m_Heightmap = new UV_Array2D(nSize,nSize); //nSize is big as MAP_SIZE = 1024 fread(m_Heightmap,1,TotalSize,pFile);//TotalSize is 1024*1024 after this it comes this mistake: CAnt get File Data! or something like that. Where is the mistake?! the second is: how could I transform this line return pHeightmap[x+(y*MAP_SIZE)]; to: return m_Heightmap->Array[x][y];//x+(y''MAP_SIZE) is missing but how can I bring this line in?! I know..I''m stupid but plz help me! Thx anyway PS: Sorry for my poor poor english is not my native language!

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!