PDA

View Full Version : How to load a map



pnpvivek
12-18-2008, 02:32 AM
Hi,
I am very beginning to OpenGl.I want to load a map in a gluperspective projection using openGL in MFC MDI application .I create rendering context and set a pixel format in to the current context. when i am zooming that map at that time it should be clear vision. so which format of file i include?(BMP,JPEG ). How do i do?
consider my problem.
awaiting your reply?

ZbuffeR
12-18-2008, 02:58 AM
Let me rephrase your needs : 1) you want to create a texture by reading an image file, 2) then display it on a textured quad.

For 1), the image file reading part is not related to opengl. you may use an existing image library (freeimage,...) or do you own (harder). Then create a texture and dump the decoded image data in it.

Search "nehe opengl texture tutorial".