Thread: SDL questions.

  1. #1
    Registered User
    Join Date
    Sep 2004
    Posts
    80

    Question SDL questions.

    My first question is, when I use this function SDL_Init(WHATEVER), where does the information go?
    Secondly what exactly happens when I lock a surface, in other words I want to know what kind of information is
    stored in the SDL_LockSurface() function. It would really appreciate if someone could find some time to
    answer my questions.

  2. #2
    ---
    Join Date
    May 2004
    Posts
    1,379
    I don't know the exact answers to your questions and I can't really comprehend why you would need to know unless you were compiling your own version of SDL. Have you read the docs on these functions?

  3. #3
    Registered User
    Join Date
    Sep 2004
    Posts
    80
    Yes I've read the docs but it didn't really answer my questions. It's not like i'm compiling my own version of SDL or something.
    I just like to know what is really going on when I write a program, it just feels better to know how it works and not just that it's necessary to use the functions for whatever reason.
    EDIT: The docs tell what the functions do but not what a lock is technically.
    Last edited by antex; 10-29-2005 at 02:12 AM.

  4. #4
    Registered User
    Join Date
    Sep 2004
    Posts
    197
    if you really want to know how its implemented, download the code and take a look, mind you it may well be overly complicated too you, so don't expect it to suddenly click when you read it.

    Edit: check here as well, might have something usefull
    http://www.libsdl.org/cgi/docwiki.cgi/SDL_5fLockSurface
    If any part of my post is incorrect, please correct me.

    This post is not guarantied to be correct, and is not to be taken as a matter of fact, but of opinion or a guess, unless otherwise noted.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. SDL questions
    By Cpro in forum C++ Programming
    Replies: 1
    Last Post: 08-09-2008, 12:26 PM
  2. A very long list of questions... maybe to long...
    By Ravens'sWrath in forum C Programming
    Replies: 16
    Last Post: 05-16-2007, 05:36 AM
  3. Trivial questions - what to do?
    By Aerie in forum A Brief History of Cprogramming.com
    Replies: 23
    Last Post: 12-26-2004, 09:44 AM
  4. SDL and Windows
    By nickname_changed in forum Windows Programming
    Replies: 14
    Last Post: 10-24-2003, 12:19 AM
  5. sdl in c++
    By Klinerr1 in forum C++ Programming
    Replies: 8
    Last Post: 07-07-2002, 07:46 AM