
-----------------------------------
AsianSensation
Sun Apr 25, 2004 4:14 pm

Loading bitmaps in OGL
-----------------------------------
I was reading through the Nehe OpenGL tutorials, and I saw that when you load a bitmap, you need to have the height and width being exactly some powers of 2. Is there a simple way around it?

-----------------------------------
Catalyst
Sun Apr 25, 2004 4:46 pm


-----------------------------------
Simply, no
You could resize the image after loading to memory but before loading to ogl or you could use some 3rd party library that will do this for you. (i recommend DevIL)

-----------------------------------
Raugrist
Sun Apr 25, 2004 5:36 pm


-----------------------------------
Asian, try I could want: ie, TGA, JPG... well, that's all I need). And it's got some good options for optimization or efficiency.

-----------------------------------
Catalyst
Sun Apr 25, 2004 6:17 pm


-----------------------------------
I would recommend DevIL over that
http://openil.sourceforge.net/

its loads almost any image format (really simply with ogl)
and saves out in many formats
