Jump to content
  • Advertisement
Sign in to follow this  
crashesalot

Object Matrix in 3d tile-based game(OpenGL, Visual C++ 6.0)

This topic is 4628 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 use a object matrix to build the landscape of a 3d tile-based game(a la final fantasy tatics). Each position in the matrix correspond to a tile in the landscape. the constructor of the Tile class just initiates the variables with 0, and i use a getTile(parameters...) to load the variables with the parameters, and a drawTiles() to actually draw them in the screen, all from the Tile class. so im going trough the matrix, loading the values with getTile(...), and when i get to position[2][3], i get the message: "Release device context failed" and "could not unregister class"(im using the code from Nehe's first lesson to initialize the window). is this as weird as it looks to me? its ok up to a certain value in the matrix, and no more? even with drawTile(), i can only get to landscape[2][2].drawTile(), when i go to landscape[2][3], i get the same errors. any help will be apreciated.

Share this post


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

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!