Sign in to follow this  
Promit

Can you use some parts of SDL without using video?

Recommended Posts

Promit    13246
I'm wondering, can you use other pieces of SDL (particularly input and time) without using video? Obviously things like window events won't come from SDL, but I mean like asynchronous input and joystick and such. [Edited by - Promit on February 15, 2005 12:44:45 PM]

Share this post


Link to post
Share on other sites
Drew_Benton    1861
Quote:
Original post by jonahrowley
Yes, just don't init the video subsystem. See the docs for SDL_Init, pass only the SDL_INIT_* flags for the subsystems you need.


If I am not mistaken, ORGE does the same thing. I am taking a look into it and one of the things I cam across was that it uses the input internally.

Share this post


Link to post
Share on other sites
jonahrowley    300
Quote:
Original post by Rob Loach
Why would you want to though?


Portable timer, threads, events, net, etc. You also might not want to use SDL for graphics all the time, and have an abstracted interface, in which case, you'd want to init the SDL graphics subsystem later on, or not at all.

Share this post


Link to post
Share on other sites
Drew_Benton    1861
Quote:
Original post by Rob Loach
Why would you want to though?


Also think about of you wanted to make some console server or something as well as use another lbirary, such as SDL_net, SDL_mixer, etc... I really never thought about this before, thanks for bringing it up Promit. I think I am going to do a few experiments with this concept myself...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this