OpenGL in linux

Started by
8 comments, last by krogoth 22 years, 8 months ago
I''m looking for information about setting up OpenGL in linux. What should I use? Are glx, SDL, and GLUT good?
Advertisement
SDL :o)

Glut while good dosnt provide the functionality of SDL and is slower but easier(ish). SDL provides lots of useful things, esspecialy threading

I use SDL and find any program i create using SDL will work in windows and Linux without any (or few) modifications and #fdefs.

As for glx, i havnt tried this as portability has always been a concern.

as for the information part libsdl has a few examples, plus check out the SDL versions of the NeHe tutorials.

Edited by - Marvin on July 31, 2001 6:19:46 PM
Use AllegroGL!

allegrogl.sourceforge.net

It allows the same code to be compiled under windows and linux. It also let''s you have keyboard and sound access plus timers and everything else you need for a game.
Allegro is good, but imho there''s a little too much overhead in Allegro for a somewhat advanced game engine. I''ve tried AllegroGL. It''s cool, but it runs at inconsisten speeds. One time it''ll use hardware accel. and the next time it won''t. really wierd.



How many Microsoft employees does it take to screw in a light bulb?
None, they just declare drakness as a new standard.
My HomepageSome shoot to kill, others shoot to mame. I say clear the chamber and let the lord decide. - Reno 911
The allegro site seems to not be working... is it LGPL? I can''t use anything under the GPL.
"is it LGPL? I can''t use anything under the GPL."

in that case your stuck with writing native apps more or less :o)

SDL is LGPL so still may be suitable
Allegro''s license is the best: you can do anything u want with it. I''m not sure about allegroGL''s but it''s probably similar.

As for it being slow and not getting hardware accel, that was only a problem in the verly old versions. now it works very fast. Check out this first person shooter made with it:

http://moon3d.qhe.de/
I reccommend you use SDL. It''s good, fast, easy to use, has a lot of nifty stuff and your code will be portable to linux, windows, mac and beos. Check my site to see how to get SDL and GL running in linux and windows.


---

cone3d

http://cone3d.gz.ee
-> soon http://cone3d.gamedev.net
---cone3dhttp://cone3d.gamedev.netMy software never has any bugs - it just generates random features
Portalib! :D (LGPL)
Ok, blatant plug. It uses GLX.
You could also use it to have a look at how its done. Otherwise I''d suggest SDL (different objectives, PortaLib has more model, texture, etc. functionality).



~~~
Cheers!
Brett Porter
PortaLib3D : A portable 3D game/demo libary for OpenGL
~~~Cheers!Brett PorterPortaLib3D : A portable 3D game/demo libary for OpenGLCommunity Service Announcement: Read How to ask questions the smart way before posting!
I''m doing most of the management in the game engine, so Portalib may not be right for me.. just out of interest, you must have a .bmp loader, right? How many formats can it read? When I implemented the bmp loader I printed out some specs and implemented eveery possible format The engine, as you may have figured out by now, is not OSS, but if you want I can share that code with you for the improvement of portalib.

This topic is closed to new replies.

Advertisement