Hello!
I am following along with the Video Tutorials Rock OpenGL tutorials and I am having an issue with the Terrain tutorial. Whenever I run the program I get an "image not found error". I create the project by
1) Creating a C++ Console Project
2) Deleting the default main.cpp file
3) Dragging in the files from the tutorial
4) Adding OpenGL and GLUT
The writer of the tutorial wrote a C++ image loader, so OpenGL can see the height map I am using.
Here is the code in PasteBin:
imageloader.cpp: http://pastebin.com/aHBAAMrY
imageloader.h http://pastebin.com/NSdb2xHP
main.cpp http://pastebin.com/QdwCuRZS
I wish I could figure out the image loader code, but I only know Objectve-C and enough C++ to use OpenGL..
Thanks!
I am following along with the Video Tutorials Rock OpenGL tutorials and I am having an issue with the Terrain tutorial. Whenever I run the program I get an "image not found error". I create the project by
1) Creating a C++ Console Project
2) Deleting the default main.cpp file
3) Dragging in the files from the tutorial
4) Adding OpenGL and GLUT
The writer of the tutorial wrote a C++ image loader, so OpenGL can see the height map I am using.
Here is the code in PasteBin:
imageloader.cpp: http://pastebin.com/aHBAAMrY
imageloader.h http://pastebin.com/NSdb2xHP
main.cpp http://pastebin.com/QdwCuRZS
I wish I could figure out the image loader code, but I only know Objectve-C and enough C++ to use OpenGL..
Thanks!