SDL_graphics needed?

Hi there,

I’ve always been a little curious why SDL doesn’t have an ‘official’ library
for graphics. Something that supports some drawing capabilities as well as
rotating, zooming, scaling like SDL_gfx (which I have to build manually on
Windows, grr). Are there any plans for it?

Also, have any of you had any experience using cairo with SDL?

Thanks,
Jeff

Hi there,

I’ve always been a little curious why SDL doesn’t have an ‘official’ library
for graphics. Something that supports some drawing capabilities as well as
rotating, zooming, scaling like SDL_gfx (which I have to build manually on
Windows, grr). Are there any plans for it?

Also, have any of you had any experience using cairo with SDL?

Thanks,
Jeff

For SDL 1.2, there’s no need for an official graphics library because SDL_gfx is
already there. And for SDL 1.3, there’s no way to implement an external
graphics library because all of the rendering logic takes place inside of
sdl.dll and is encapsulated strongly enough that it can’t be done externally.________________________________
From: codedread@gmail.com (Jeff Schiller)
Subject: [SDL] SDL_graphics needed?

Hi there,

I’ve always been a little curious why SDL doesn’t have an ‘official’ library for
graphics. Something that supports some drawing capabilities as well as
rotating, zooming, scaling like SDL_gfx (which I have to build manually on
Windows, grr). Are there any plans for it?

Also, have any of you had any experience using cairo with SDL?

Thanks,
Jeff

I’ve messed with Cairo and librsvg a little bit, but Bill Kendrick is
probably a lot better with them.

I would have liked some form of graphics primitives to be blessed by
Sam, but there are many different viable ways to do them. It’s more
the job of a graphics programmer, framework, or engine to decide what
the needs are and what satisfies them. For one example, should color
values be specified as Uint32 RGBA, Uint8 R/G/B/A (or SDL_Color), or
Uint32 RGB with Uint8 A? Should packed pixels (Uint32) be
surface-dependent or not? SDL_gfx does surface-independent Uint8
R/G/B/A, whereas Sprig does surface-dependent Uint32 RGB with Uint8 A.
Either way makes some things harder and some easier.

Now with SDL 1.3, it’s a whole different deal…

Jonny DOn Fri, Apr 15, 2011 at 1:58 PM, Mason Wheeler wrote:

For SDL 1.2, there’s no need for an official graphics library because
SDL_gfx is already there.? And for SDL 1.3, there’s no way to implement an
external graphics library because all of the rendering logic takes place
inside of sdl.dll and is encapsulated strongly enough that it can’t be done
externally.


From: Jeff Schiller
Subject: [SDL] SDL_graphics needed?

Hi?there,
I’ve always been a little curious why SDL doesn’t have an ‘official’ library
for graphics. ?Something that supports some drawing capabilities as well as
rotating, zooming, scaling like SDL_gfx (which I have to build manually on
Windows, grr). ?Are there any plans for it?
Also, have any of you had any experience using cairo with SDL?
Thanks,
Jeff


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Shouldn’t it be possible to provide a custom SDL renderer to initialize with the window?

Also I have a strong interest in a way to create D3D9, D3D10, D3D10_1, and D3D11 window contexts (not using an SDL renderer however), as it stands I’m going to be shoehorning this in as best I can for
my game engine, without official support in SDL 1.3.On 04/15/2011 10:58 AM, Mason Wheeler wrote:

For SDL 1.2, there’s no need for an official graphics library because SDL_gfx is already there. And for SDL 1.3, there’s no way to implement an external graphics library because all of the rendering
logic takes place inside of sdl.dll and is encapsulated strongly enough that it can’t be done externally.


From: Jeff Schiller
**Subject: [SDL] SDL_graphics needed?

Hi there,

I’ve always been a little curious why SDL doesn’t have an ‘official’ library for graphics. Something that supports some drawing capabilities as well as rotating, zooming, scaling like SDL_gfx (which I
have to build manually on Windows, grr). Are there any plans for it?

Also, have any of you had any experience using cairo with SDL?

Thanks,
Jeff


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


LordHavoc
Author of DarkPlaces Quake1 engine - http://icculus.org/twilight/darkplaces
Co-designer of Nexuiz - http://alientrap.org/nexuiz
"War does not prove who is right, it proves who is left." - Unknown
"Any sufficiently advanced technology is indistinguishable from a rigged demo." - James Klass
"A game is a series of interesting choices." - Sid Meier

Yes. There’s nothing in the SDL render code that needs internal access to
the rest of the SDL codebase. My long term plan is to split that out into a
separate library so it can more easily be extended. My only question is
whether to do that before or after release.

If you look at the Direct3D render code, you’ll see how easy it is to
integrate arbitrary Direct3D code with SDL.

See ya!On Fri, Apr 15, 2011 at 12:08 PM, Forest Hale wrote:

Shouldn’t it be possible to provide a custom SDL renderer to initialize
with the window?

Also I have a strong interest in a way to create D3D9, D3D10, D3D10_1, and
D3D11 window contexts (not using an SDL renderer however), as it stands I’m
going to be shoehorning this in as best I can for my game engine, without
official support in SDL 1.3.

On 04/15/2011 10:58 AM, Mason Wheeler wrote:

For SDL 1.2, there’s no need for an official graphics library because
SDL_gfx is already there. And for SDL 1.3, there’s no way to implement an
external graphics library because all of the rendering
logic takes place inside of sdl.dll and is encapsulated strongly enough
that it can’t be done externally.


From: Jeff Schiller
**Subject: [SDL] SDL_graphics needed?

Hi there,

I’ve always been a little curious why SDL doesn’t have an 'official’
library for graphics. Something that supports some drawing capabilities as
well as rotating, zooming, scaling like SDL_gfx (which I
have to build manually on Windows, grr). Are there any plans for it?

Also, have any of you had any experience using cairo with SDL?

Thanks,
Jeff


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


LordHavoc
Author of DarkPlaces Quake1 engine -
http://icculus.org/twilight/darkplaces
Co-designer of Nexuiz - http://alientrap.org/nexuiz
"War does not prove who is right, it proves who is left." - Unknown
"Any sufficiently advanced technology is indistinguishable from a rigged
demo." - James Klass
"A game is a series of interesting choices." - Sid Meier


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

why not just bring the necessary parts of SDL_sysvideo.h into the normal (application-included) headers?
this would remove the biggest stepping stone (that is, SDL_Renderer is a hidden structure).------------------------
EM3 Nathaniel Fries, U.S. Navy

http://natefries.net/