Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

SDL tutorial 0 - install SDL

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
2,077
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jun 27, 2011

In this tutorial I show you how you can setup the SDL both on Windows and Linux.
SDL is a cross-platform free-source library which allows you to draw to the screen (so make graphical programs), we'll make 2D games with it, but it can make 3D render as well, if you use it with OpenGL.
SDL tutorial:
http://www.lazyfoo.net/SDL_tutorials/index.php
Download && other things:
http://www.libsdl.org/
The example program:
http://pastebin.com/9e40B2bn

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (thecplusplusguy)

  • F*CK u ... why show this code ?...

    screen = SDL_SetVideoMode(640,380,32,SD­L_SWSURFACE);

    i do my error FIX ;D

  • @W3nooM

    F*CK u 2 :)

    I added an annotation.

Top Comments

  • @afker553

    No, I'm hungarian.

  • sharing knowledge for free

    thank you very much

see all

All Comments (24)

Sign In or Sign Up now to post a comment!
  • @tryingtoprogram

    Copy the sdl.dll from your downloaded (and extracted) SDL library/lib folder to the folder, where your executable (compiled) program is.

  • @TheSimon253

    The end of that line is missing, use the link in one of my comment, for the example program (altough I saw, you already solved it)

  • @thecplusplusguy Hello. When I debug, I get an error saying:

    Cannot start program because SDL.dll is missing from your computer.

    What do I do to fix this?

  • @thecplusplusguy what is it this screen=SDLVideoMode(640,34?

    says that i have to few arguments

    Great video btw

  • @TheSimon253

    I just pasted a code, to try out, above on this page, you can find a pastebin link (in my comment), just copy that code (or write that on the video), the explonation of that code is part of the next tutorial.

  • @thecplusplusguy What are you doing at 6:25??? mine dont work cuz i dident understand what you did

  • Space available: 441.5 MB

    lol

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more