Archived

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

lingtze

windows -> linux

Recommended Posts

i''ve developed a program under windows. but now i have to move it to redhat linux. i''m having problem to load BMP file. i''m using LoadBMP funcion... & glaux.h in the windows vesion.. what do i have to change to to make it work under linux? thanks

Share this post


Link to post
Share on other sites
I suggest writing your own or using the one that''s used in NeHE tutorials as a template for your own function...
(there is a library for loading PNGs but I never quite got it to work...)

/Mikael Jacobson

Share this post


Link to post
Share on other sites
You should also try to avoid glaux, as it has been deprecated for a while.

quote:
From the OpenGL website
2.130 What is the AUX library?
Very important: Don't use AUX. Use GLUT instead.

The AUX library was developed by SGI early in OpenGL's life to ease creation of small OpenGL demonstration programs. It's currently neither supported nor maintained. Developing OpenGL programs using AUX is strongly discouraged. Use the GLUT instead. It's more flexible and powerful and is available on a wide range of platforms.



Specs for windows bmp files can be found here

Edited by - Fruny on January 29, 2002 1:14:01 PM

Share this post


Link to post
Share on other sites
quote:
Original post by mikael_j
(there is a library for loading PNGs but I never quite got it to work...)

/Mikael Jacobson


I got it to work once. I found png good, it supports many formats including alpha and gamma and has good compression (without losing data?, it uses zlib).
I have a simple Image class that uses pnglib to load png-files. Let me know if you''d like to have a look at it.

Share this post


Link to post
Share on other sites