xboxscene.org forums

OG Xbox Forums => Software Forums => Development => Topic started by: angelfly on June 15, 2004, 10:42:00 AM

Title: Sdlx?
Post by: angelfly on June 15, 2004, 10:42:00 AM
http://www.libsdl.org/index.php that explains it
Title: Sdlx?
Post by: Ecrofirt on June 15, 2004, 10:48:00 AM
I read that.

I'm confused though, because I thought Xbox could only do DirectX.
Title: Sdlx?
Post by: freakdave on June 15, 2004, 11:36:00 AM
SDLx is actually a Direct-X wrapper.
It uses the Direct-X API to e.g. blit something onto the screen...
Title: Sdlx?
Post by: JapanFred on June 15, 2004, 12:13:00 PM
QUOTE (freakdave @ Jun 15 2004, 08:36 PM)
SDLx is actually a Direct-X wrapper.
It uses the Direct-X API to e.g. blit something onto the screen...

I'll elaborate on my good friend freakdave smile.gif

SDLx is a wrapper for DirectX.

This means you can do some low-level graphics, like blitting bitmaps, for example if you were writing a 2D version of Pong. It also allows you to play sounds using the SDL API's functions instead of all DirectX, which can be confusing for the younger of the coders.

SDL is widely used, it's multi-platform, so you can write a program for Linux, and with a few tweak, it'll work with SDLx too.

does that make sense?
Title: Sdlx?
Post by: JapanFred on June 15, 2004, 12:23:00 PM
It basically wraps the DirectX API into a whole new set of classes.

For instance, SDL_Init( SDL_INIT_VIDEO ) will initialize the DirectX window.

Instead of you writing possibly several lines of code, you need one.

It basically simplifies coding, but it doesnt offer the full power of DirectX.

As far as i'm aware, you can only really do 2D Stuff with SDLx.

Yes, of course you can develop games with it.
Title: Sdlx?
Post by: freakdave on June 15, 2004, 01:27:00 PM
http://www.libsdl.org (official site)
http://sdldoc.csn.ul.ie (the documentation)
http://jnrdev.weed-crew.net (some tutorials)
http://www.lantus-x.com/forum (just check the SDLx forum)
http://andrew.textux.com/Articles.html (another tutorial)


Title: Sdlx?
Post by: Ecrofirt on June 15, 2004, 06:43:00 PM
Right from the horses mouth.

Thanks lantus!