xboxscene.org forums

Author Topic: Sdlx?  (Read 128 times)

angelfly

  • Archived User
  • Jr. Member
  • *
  • Posts: 82
Sdlx?
« on: June 15, 2004, 10:42:00 AM »

Logged

Ecrofirt

  • Archived User
  • Full Member
  • *
  • Posts: 166
Sdlx?
« Reply #1 on: June 15, 2004, 10:48:00 AM »

I read that.

I'm confused though, because I thought Xbox could only do DirectX.
Logged

freakdave

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 284
Sdlx?
« Reply #2 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...
Logged

JapanFred

  • Archived User
  • Full Member
  • *
  • Posts: 116
Sdlx?
« Reply #3 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?
Logged

JapanFred

  • Archived User
  • Full Member
  • *
  • Posts: 116
Sdlx?
« Reply #4 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.
Logged

freakdave

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 284
Sdlx?
« Reply #5 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)


Logged

Ecrofirt

  • Archived User
  • Full Member
  • *
  • Posts: 166
Sdlx?
« Reply #6 on: June 15, 2004, 06:43:00 PM »

Right from the horses mouth.

Thanks lantus!
Logged