School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 307,033 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,258 people online right now. Registration is fast and FREE... Join Now!




How does SDL work?

 

How does SDL work?, Anyone know how SDL works?

SpooksDF

28 Sep, 2009 - 02:30 PM
Post #1

New D.I.C Head
*

Joined: 6 Apr, 2009
Posts: 10


My Contributions
How does SDL work?

This post has been edited by SpooksDF: 28 Sep, 2009 - 02:32 PM

User is offlineProfile CardPM
+Quote Post


BetaWar

RE: How Does SDL Work?

28 Sep, 2009 - 09:23 PM
Post #2

#include <soul.h>
Group Icon

Joined: 7 Sep, 2006
Posts: 4,777



Thanked: 277 times
Dream Kudos: 1400
My Contributions
I am going to say you are talking about Standard Direct media Layer (SDL) for C++ game programming, in which point this thread belongs elsewhere - Moved.

Basically, SDL captures keyboard, mouse and other input device input and allows for you to modify and manipulate the screen by drawing to video memory (placing RGB color values in memory locations that the computer copies to the screen every so often). You can also output sound with it. How it works - Well, it is basically a game engine, built on top of libraries that are cross-platform so you should be able to use it on any computer the program was compiled for. I am not a master at SDL, so I will let others do more explaining, but that is the basics.
User is offlineProfile CardPM
+Quote Post

JackOfAllTrades

RE: How Does SDL Work?

29 Sep, 2009 - 05:33 AM
Post #3

I exist to Google your problems.
Group Icon

Joined: 23 Aug, 2008
Posts: 5,316



Thanked: 454 times
Dream Kudos: 50
Expert In: Being annoyed with lazy people.

My Contributions
I *think* BetaWar meant to move this to Game Programming.
User is offlineProfile CardPM
+Quote Post

SigurdSuhm

RE: How Does SDL Work?

29 Sep, 2009 - 07:19 AM
Post #4

D.I.C Head
**

Joined: 5 Aug, 2008
Posts: 101



Thanked: 13 times
My Contributions
SDL also has the ability to set up an OpenGL environment using the tools available for the various platform. It uses Wiggle (wgl) for Windows, glX for Linux and some Cocoa for OS X I believe. The SDL library makes it very easy to make a cross platform OpenGL application.
User is offlineProfile CardPM
+Quote Post

Trogdor

RE: How Does SDL Work?

6 Oct, 2009 - 06:12 AM
Post #5

D.I.C Addict
Group Icon

Joined: 6 Oct, 2006
Posts: 619



Thanked: 15 times
Dream Kudos: 200
My Contributions
As long as you dont mind pages of setupcode to open even a blank window.
Still it is much better then the alternative (coding opengl or directx directly).

After dicking around with both SDL and Allegro 2 years ago just to see how it works i decided:
a: allegro was not able to behave as i want, SDL could achieve it.
b: coding SDL en especially OpenGL is difficult. So much so that it is not something you can learn in a couple evenings.
c: if you want to code a simple game this is overkill, but if you master it, well, i think you can have a very interesting job in a game company.

User is offlineProfile CardPM
+Quote Post

BlackPhoenix

RE: How Does SDL Work?

10 Oct, 2009 - 08:11 AM
Post #6

D.I.C Head
**

Joined: 11 Jul, 2009
Posts: 152



Thanked: 4 times
My Contributions
This will teach you all about how SDL works, and how to use it.

http://lazyfoo.net/SDL_tutorials/
User is offlineProfile CardPM
+Quote Post

Snoogins

RE: How Does SDL Work?

12 Oct, 2009 - 05:09 AM
Post #7

New D.I.C Head
*

Joined: 12 Oct, 2009
Posts: 1

Ahh SDL, I spent my internship working for a games company as an engineer, quite a few of the lads liked it. While working there I poked around with it and found it to be very easy to use via Vis Studio. Sol's tutorial is really a generic game programming tutorial, but it's done through SDL. I found it the perfect introduction to game programming, well worth a look. http://sol.gfxile.net/gp/ Best of luck!
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/21/09 08:35AM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month