Skip to main content
GameDev.net gamedev.net
🔒 Locked

SDL?

Started by MSalley Jan 26, 2006 at 6:34 PM 6 replies 1.2k views
Original Post
MSalley
MSalley
What is SDL, and how do you use it?
-Mat² §alley©-
Metaphorically
Metaphorically
I'd guess that

Simple DirectMedia Layer is a cross-platform multimedia library designed to provide low level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer.

http://www.libsdl.org/index.php

and http://www.libsdl.org/intro/toc.html for the second part.
xtremeprog05
xtremeprog05
SDL is a 2d graphics API. It is also capable of sound and many other things. You can find out alot more at www.libsdl.org. SDL is pretty easy to learn and I suggest it to any programmers wanting to start 2d graphics. It also can easily create simple windows.

EDIT: Metphorically beat me :)

printf("C++ 4 Lifen");

I'm a GL guy.
Ezbez
Ezbez
To sum it up: SDL is the single most useful thing that you will ever find. I personally find it extremely useful. It does all the little annoying thing that are necessary to making a game, but isn't exactly 'game programming.'

Some disagree and recomend Allegro, which is a very similiar library.
M2tM
M2tM
Let me just show you this little tool I call Google:

What is SDL

How do you use SDL

I've taken your exact question and entered it into google. I've found results which answer your question fairly well and which lead to more questions that will further your knowledge.

So, that said, I can only assume something is preventing you from using Google. I'd suggest checking your browser and possibly make sure you are connected to the internet before proceeding. *eyeroll*
_____"You're using a screwdriver to nail some glue to a ming vase. " -ToohrVyk
T1Oracle
T1Oracle
Quote:
Original post by Ezbez
Some disagree and recomend Allegro, which is a very similiar library.

I remember when I first found Allegro, ah love at first byte... [smile] Unfortunately I never finished a project with it [sad] Looked promising, but since I've picked up Opengl I haven't looked back.

SDL does have competition. GLFW for one, is simpler (does much less) and only takes up 37KB. There are many libraries out there which can do the file loading, and audio tasks done by SDL (which is the prime difference between SDL's features and GLFW's).

If you want everything in the same proven package than SDL is the way. If you like to have more options with less bulk and feature spam, then you may want to look at GLFW or an equivalent library.
Programming since 1995.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.