Advertisement

Anyone made an OpenGL window in Linux yet?

Started by January 10, 2004 01:39 PM
5 comments, last by HTML 21 years, 1 month ago
I am sure it is possible because I heard it was done before, but I find it impossible for myself to make an openGL window under linux. Anyone know a step by step tutorial or anything on how to get sdl and all those libraries working. Also on the code that makes the window come up and how to put shapes inside and make them move. I have tried for about weeks and can''t make a window with graphics. I am using a gui like kdevelop and anjuta. I eventually want it to work in both windows and linux. I know that I can do it easily in windows but I don''t like it as much as linux... any good books on programming games with open gl windows in linux ? thanks
problems getting SDL and Linux up?

try the book: Programming Linux Games by No Starch Press

its got a good step by step walkthrough of setting up SDL and several other libraries to help you get going with OpenGL in Linux
Hard work USUALLY pays off in the future, but laziness ALWAYS pays off right now.
Advertisement
Hi!

I learned how to create a window for OpenGL in Linux from a porting sample in the MSDN. It may sound stupid, but it was among the best resources I could find...

Try this link.

Anyways, I''ve never used SDL or something, but it might be a good idea to use it...

cya,
Drag0n

-----------------------------
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning..." -- Rich Cook

My future web presence: Dave''s Programming Resources
-----------------------------"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning..." -- Rich Cook"...nobody ever accused English pronounciation and spelling of being logical." -- Bjarne Stroustrup"...the war on terror is going badly because, if you where to compare it to WWII, it's like America being attacked by Japan, and responding by invading Brazil." -- Michalson
SDL and GLUT works flawlessly on linux. You make it sound like OGL on linux is hardly ever done when it was designed for *nix based systems.
--------------------------Nukemmsn: nukem996@hotmail.comaim: nukem996open source open mind
quote:
Original post by Nukem
SDL and GLUT works flawlessly on linux. You make it sound like OGL on linux is hardly ever done when it was designed for *nix based systems.


I tell you now that I''ve hardly ever done any game programming for *nix-based systems.

But as far as I''m aware, most projects use SDL and/or GLUT.

cya,
Drag0n

-----------------------------
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning..." -- Rich Cook

My future web presence: Dave''s Programming Resources
-----------------------------"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning..." -- Rich Cook"...nobody ever accused English pronounciation and spelling of being logical." -- Bjarne Stroustrup"...the war on terror is going badly because, if you where to compare it to WWII, it's like America being attacked by Japan, and responding by invading Brazil." -- Michalson
Here's an early version of a 3ds loader project that I was working on that uses OpenGL on Linux.

http://tgraupmann.uwvcd.com/cgi-bin/source/3dsiiglx_mod.tar.gz

[edited by - tgraupmann on January 10, 2004 6:01:06 PM]
*News tagenigma.com is my new domain.
Advertisement
Are you having trouble setting up the SDL libraries, or just using them? If you are having trouble using the libraries, then the rest of this post may help some.

When I switched my linux project over to SDL, I pretty much just copied code from the SDL documentation to set up SDL and create the window for me. Check it out here. I spent a bit figuring out what that all did (probably not as much as I should have though), but that code really helped me out. The SDL homepage also has a page of SDL with OpenGL tutorials that may or may not be helpful.

This topic is closed to new replies.

Advertisement