PDA

View Full Version : Equivalent to Win API for Ubuntu?



Fixman
September 6th, 2007, 10:49 PM
I before programmed games for windows using the windows API. Now, Im new to Linux programming and I don't know where to start. Could someone at least name a solution for my programs?

SomethingUniqueHere
September 6th, 2007, 11:06 PM
Check out SDL: http://www.libsdl.org/
If you code with Python check out pygame: http://www.pygame.org/news.html

ryno519
September 6th, 2007, 11:14 PM
I before programmed games for windows using the windows API. Now, Im new to Linux programming and I don't know where to start. Could someone at least name a solution for my programs?

Are you referring to DirectX and Win32 in C++? I assume that because you said game development.

In GNU/Linux you have OpenGL for the 3D graphics library, which has a bit of a learning curve, but if you have used DirectX before you should have a good understanding of 3D development already.

As far as the Win32 goes you will be using GNU/Linux system libraries and your graphics toolkits library to perform equivalent tasks. I like to use gtkmm to code gtk apps in C++.

As for sound, the FMOD Sound System will compile in GNU/Linux. There's probably a GPL'd sound system that will do, but I've never used a different one. Not sure that gstreamer or phonon would be up to the task.

pmasiar
September 7th, 2007, 01:35 AM
I before programmed games for windows using the windows API. Now, Im new to Linux programming and I don't know where to start.

You also may just pick a Linux game you want to enhance, and learn whatever that project uses. Most open source projects are eager to train "fresh blood" developers (who are willing and able to learn) and have even simple bugs set aside to get you involved. WorldForge is one of such communities. Depends on your interests, skill level, and dedication.

fct
September 7th, 2007, 07:45 AM
In http://happypenguin.org there is a huge list of open source games you can use to learn from. If you are learning SDL, for example, there are tons of simple games using that library there.

gnusci
September 7th, 2007, 08:23 AM
Give a look to Allegro:

http://www.talula.demon.co.uk/allegro/

It is a library for game development.