• Advertisement


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

Problems with Lesson35 in C++

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