How does SDL work?

Anyone know how SDL works?

Page 1 of 1

6 Replies - 2760 Views - Last Post: 12 October 2009 - 06:09 AM Rate Topic: -----

#1 SpooksDF  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 06-April 09

How does SDL work?

Post icon  Posted 28 September 2009 - 03:30 PM

How does SDL work?

This post has been edited by SpooksDF: 28 September 2009 - 03:32 PM

Is This A Good Question/Topic? 0
  • +

Replies To: How does SDL work?

#2 BetaWar  Icon User is offline

  • #include "soul.h"
  • member icon

Reputation: 1107
  • View blog
  • Posts: 6,924
  • Joined: 07-September 06

Re: How does SDL work?

Posted 28 September 2009 - 10:23 PM

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.
Was This Post Helpful? 0
  • +
  • -

#3 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 5960
  • View blog
  • Posts: 23,238
  • Joined: 23-August 08

Re: How does SDL work?

Posted 29 September 2009 - 06:33 AM

I *think* BetaWar meant to move this to Game Programming.
Was This Post Helpful? 0
  • +
  • -

#4 SigurdSuhm  Icon User is offline

  • D.I.C Head

Reputation: 18
  • View blog
  • Posts: 111
  • Joined: 05-August 08

Re: How does SDL work?

Posted 29 September 2009 - 08:19 AM

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.
Was This Post Helpful? 1
  • +
  • -

#5 Trogdor  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 15
  • View blog
  • Posts: 627
  • Joined: 06-October 06

Re: How does SDL work?

Posted 06 October 2009 - 07:12 AM

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.
Was This Post Helpful? 0
  • +
  • -

#6 BlackPhoenix  Icon User is offline

  • D.I.C Head

Reputation: 5
  • View blog
  • Posts: 152
  • Joined: 11-July 09

Re: How does SDL work?

Posted 10 October 2009 - 09:11 AM

This will teach you all about how SDL works, and how to use it.

http://lazyfoo.net/SDL_tutorials/
Was This Post Helpful? 0
  • +
  • -

#7 Snoogins  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 12-October 09

Re: How does SDL work?

Posted 12 October 2009 - 06:09 AM

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!
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1