Jump to content
  • Advertisement

Archived

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

SDB

What API should I use...

This topic is 6054 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

with Linux. I recently made the jump from M$ and have no intentions of ever going back. Up to this point I was using MSVC++ and DirectX. I am pretty sure DX isnt supported under Linux, right?!? Anyway, I am working on isometric games and really have no interest in 3D programming at this point. What would be a good API to use for this? Any help would be greatly appreciated. If you are the only one that can fix it, why are you complaining to me?

Share this post


Link to post
Share on other sites
Advertisement
Using SDL implies that you have plans to go back to Windows
at some point. Since it is a portability library.

Linux has many features in sound and graphics that
are limited in SDL, however if you want a easy transitioning
stage you can write a few learning games with SDL then
make the jump to X/OpenGL/etc...

Note that OpenGL as an API under Linux requires that you
use glX and Xlib.

OpenGL can be used with conjuction with GLUT or SDL
for *learning* purposes. But remember to take off
yer training wheels at some point.

Share this post


Link to post
Share on other sites
May I suggest to start with SDL. Yes, it is limited, but it''s easy to learn and has various libraries for 2D graphics, sound, various input devices.
I would compare it to DirectDraw + DirectSound + DirectInput, but without Direct3D.
If you are not intereseted in 3D games, SDL should suit you nicely.
When you''ll " Graduate " to 3D graphics, you''ll need OpenGL for both 2D and 3D graphics, but and here I have to disagree with LearFox, you''ll still need SDL for sounds and inputs.
SDL can work in harmony with OpenGL.
" Programming Linux Games" was a helpful book for me.
Enjoy Linux.

Share this post


Link to post
Share on other sites
Thanks for the replys they were very helpfull. As for how I like Linux compared to Windows, it is a difficult question to answer. So far Linux has run circles around Windows in everything but gaming and I hope to help close that gap. I am with Linux to stay, XP was the last straw for me. And I will order that book tonight. Again thanks for the insight.

I put up a group to talk about things like this, stop by if you like. http://groups.yahoo.com/group/games4linux



If you are the only one that can fix it, why are you complaining to me?

Share this post


Link to post
Share on other sites
quote:

Using SDL implies that you have plans to go back to Windows
at some point. Since it is a portability library.



Well, using SDL implies that you have plans to reach a broader audience. Really, I wouldn''t suggest using a Linux-only library for anyone (unless you really want to optimize the hell out of your games), simply because the Linux audience is smaller than the Windows audience. So why not reach both?

Apart from that, you can compile SDL games on more platforms than Linux and Windows.

cu,
Prefect

Share this post


Link to post
Share on other sites
Hey Still no posting from Null and Void!, hope he''s alright

Use SDL, thats what www.Lokigames.com uses to port games from Windows to Linux, you might want to check their development section, they have written a couple of programs/apis to help develop games, like OpenAL (Open Audio Library) a setup program, and some other things.

There are other APIs, like Clanlib, and of course OpenGL, you might want to check em up, and if you want to make your life more confusing you might want to try directly xlib or ggi, but I really recomend SDL.

Share this post


Link to post
Share on other sites
Using OpenGL with SDL is definately looking good right now. You can use a trustworthy OS like Linux to develop your game, and then port it to MacOS, Windows, etc. I have been thinking about switching to Linux lately but I have not really had the time to think about it enough.

Good luck.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!