SFML (R) - The OpenGL Accelerated Alternative to SDL (R)

SFML ® - The OpenGL Accelerated Alternative to SDL ®…

Hi,

I made several games with SDL and for the most part they were good games.

SDL has one fatal flaw that I could not overlook anymore: 1.2 is too slow…

I started looking for a new library…and found this:
S.F.M.L. ®
(Simple Fast Multimedia Library)
Web site: http://www.sfml-dev.org
Technology: OpenGL blitting
Status: Beta 1.4 + SVN
License: FREE
Key highlights: Super fast OpenGL blitting of text and images with real
time rotation, scaling, hue change, flipping

I been working with this for about a week now and am making a space
shooter game called: LastDefense 100%[TM]…
You can see my progress here:
http://www.silentheroproductions.com/LastDefense100PerceT.htm

I’ve built and ran my current demo using SFML on Windows XP / Vista and
Linux so far with zero problems

Just thought I’d let everyone know about this…

JeZ+Lee
SLNTHERO at aol.com
Silent Hero Productions ®
Video Game Design Studio
www.SilentHeroProductions.com

I made several games with SDL and for the most part they were good games.
SDL has one fatal flaw that I could not overlook anymore: 1.2 is too
slow…

We released this http://www.mysterystudio.com/wildwestwendy.php in 2005. We
move a LOT of sprites on the screen at the same time using the software
renderer. SDL is not slow, it depends on how you use it, and believe me, if
we did that in 2005, you can do a lot today with 2009 hardware and some
ingenuity.

–Gabriel

Hmm… I like this part (from the SFML page): "You can see it as a modern,
object-oriented alternative to SDL."
As if SDL isn’t modern…?

Well, however much I enjoy C++ more than C, I appreciate the SDL API. SDL
1.2 isn’t slow at all. It’s just what you do with it. You can write a
sprite lib on top of it that uses C++ and OpenGL and whatever else, and then
you have all the speed and flexibility of SFML. In fact, maybe I’ll just
write a backend for SFML that uses SDL 1.3? Anyway, SDL 1.3 should take
care of the hardware acceleration concerns. What SDL lacks in “modern”,
SFML lacks in “mature” and “stable”, not to mention “original” and
"three-letter acronym" :wink:

Jonny DOn Fri, Feb 6, 2009 at 1:24 PM, Jesse P. wrote:

SFML ® - The OpenGL Accelerated Alternative to SDL ®…

Hi,

I made several games with SDL and for the most part they were good games.

SDL has one fatal flaw that I could not overlook anymore: 1.2 is too
slow…

I started looking for a new library…and found this:
S.F.M.L. ®
(Simple Fast Multimedia Library)
Web site: http://www.sfml-dev.org
Technology: OpenGL blitting
Status: Beta 1.4 + SVN
License: FREE
Key highlights: Super fast OpenGL blitting of text and images with real
time rotation, scaling, hue change, flipping

I been working with this for about a week now and am making a space shooter
game called: LastDefense 100%[TM]…
You can see my progress here:
http://www.silentheroproductions.com/LastDefense100PerceT.htm

I’ve built and ran my current demo using SFML on Windows XP / Vista and
Linux so far with zero problems

Just thought I’d let everyone know about this…

JeZ+Lee
SLNTHERO at aol.com
Silent Hero Productions ®
Video Game Design Studio
www.SilentHeroProductions.com


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

SDL has one fatal flaw that I could not overlook anymore: 1.2 is too slow…

Technology: OpenGL blitting

Note that SDL 1.3 uses OpenGL for blitting too.On Fri, Feb 6, 2009 at 1:24 PM, Jesse P. wrote:


http://pphaneuf.livejournal.com/

Is that implemented now?>----- Original Message ----

From: Pierre Phaneuf
Subject: Re: [SDL] SFML ® - The OpenGL Accelerated Alternative to SDL ®…

On Fri, Feb 6, 2009 at 1:24 PM, Jesse P. wrote:

SDL has one fatal flaw that I could not overlook anymore: 1.2 is too slow…

Technology: OpenGL blitting

Note that SDL 1.3 uses OpenGL for blitting too.

Hmm… I like this part (from the SFML page): "You can see it as a modern,
object-oriented alternative to SDL."
As if SDL isn’t modern…?

SDL 1.2 is a bit old school, admittedly, although I’d probably
classify it as “in-between” (it tries to cater to old school games,
and tries to remap that to modern APIs). SDL_Flip, in 2009? Whoa. :slight_smile:

Well, however much I enjoy C++ more than C, I appreciate the SDL API. SDL
1.2 isn’t slow at all. It’s just what you do with it. You can write a
sprite lib on top of it that uses C++ and OpenGL and whatever else, and then
you have all the speed and flexibility of SFML. In fact, maybe I’ll just
write a backend for SFML that uses SDL 1.3? Anyway, SDL 1.3 should take
care of the hardware acceleration concerns. What SDL lacks in “modern”,
SFML lacks in “mature” and “stable”, not to mention “original” and
"three-letter acronym" :wink:

On X11, SDL 1.2 is slow, but then, so is everything else (lack of
access to anything accelerated at all, except for non-alpha opaque
blits (XCopyArea), and even then, not quite reliably). :wink:

And that’s hardly new:
http://lists.libsdl.org/pipermail/sdl-libsdl.org/1999-December/004463.htmlOn Fri, Feb 6, 2009 at 2:16 PM, Jonathan Dearborn wrote:


http://pphaneuf.livejournal.com/

Is SDL 1.3 actually stable now? It’s been a long time since I checked…

Is SDL 1.3 actually stable now? It’s been a long time since I checked…

Yeah, there are 2 things I’m waiting for before I change over. 1 is the OpenGL backend and the other is multi-window support. Both of them have to be stable and working properly on Windows. When they’re ready, I’ll convert all my SDL stuff over to 1.3 and it’ll simplify my codebase considerably.>From: Edward Byard <e_byard at yahoo.co.uk>

Subject: Re: [SDL] SFML ® - The OpenGL Accelerated Alternative to SDL ®…

I tried downloading the Demo, but it didnt run on my machine. :frowning:

,AM— Em fri, 6/2/09, Jesse P. escreveu:

De: Jesse P.
Assunto: [SDL] SFML ® - The OpenGL Accelerated Alternative to SDL ®…
Para: “A list for developers using the SDL library. (includes SDL-announce)”
Data: Sexta-feira, 6 de Fevereiro de 2009, 16:24
SFML ® - The OpenGL Accelerated Alternative to SDL ®…

Hi,

I made several games with SDL and for the most part they
were good games.

SDL has one fatal flaw that I could not overlook anymore:
1.2 is too slow…

I started looking for a new library…and found this:
S.F.M.L. ®
(Simple Fast Multimedia Library)
Web site: http://www.sfml-dev.org
Technology: OpenGL blitting
Status: Beta 1.4 + SVN
License: FREE
Key highlights: Super fast OpenGL blitting of text and
images with real time rotation, scaling, hue change,
flipping

I been working with this for about a week now and am making
a space shooter game called: LastDefense 100%[TM]…
You can see my progress here:
http://www.silentheroproductions.com/LastDefense100PerceT.htm

I’ve built and ran my current demo using SFML on
Windows XP / Vista and Linux so far with zero problems

Just thought I’d let everyone know about this…

JeZ+Lee
SLNTHERO at aol.com
Silent Hero Productions ®
Video Game Design Studio
www.SilentHeroProductions.com


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

  Veja quais s?o os assuntos do momento no Yahoo! +Buscados

http://br.maisbuscados.yahoo.com

There have been OpenGL-driven 2D graphics APIs for SDL in the past. I
guess SFML also gives you the OpenGL context to work with? What about
audio / joysticks / etc.?On Fri, Feb 6, 2009 at 1:24 PM, Jesse P. wrote:

SFML ® - The OpenGL Accelerated Alternative to SDL ®…

SDL has one fatal flaw that I could not overlook anymore: 1.2 is too slow…

I started looking for a new library…and found this:
S.F.M.L. ®
Key highlights: Super fast OpenGL blitting of text and images with real time
rotation, scaling, hue change, flipping


http://codebad.com/

Is SDL 1.3 actually stable now? It’s been a long time since I checked…

Yeah, there are 2 things I’m waiting for before I change over. 1 is the OpenGL backend and the other is multi-window support. Both of them have to be stable and working properly on Windows. When they’re ready, I’ll convert all my SDL stuff over to 1.3 and it’ll simplify my codebase considerably.

Yep, both of these are in and should be stable in the current SDL snapshot:
http://www.libsdl.org/tmp/SDL-1.3.zip

Take a look at test/testsprite2.c for an example of using the new accelerated API.

Please let me know if you have any problems! :slight_smile:

See ya,
-Sam Lantinga, Founder and President, Galaxy Gameworks LLC> >From: Edward Byard <e_byard at yahoo.co.uk>

Subject: Re: [SDL] SFML ® - The OpenGL Accelerated Alternative to SDL ®…

Is that implemented now?

Yep.> >----- Original Message ----

From: Pierre Phaneuf
Subject: Re: [SDL] SFML ® - The OpenGL Accelerated Alternative to SDL ®…

On Fri, Feb 6, 2009 at 1:24 PM, Jesse P. wrote:

SDL has one fatal flaw that I could not overlook anymore: 1.2 is too slow…

Technology: OpenGL blitting

Note that SDL 1.3 uses OpenGL for blitting too.


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

-Sam Lantinga, Founder and President, Galaxy Gameworks LLC

Yeah, there are 2 things I’m waiting for before I change over. 1 is the OpenGL backend and the other is multi-window support. Both of them have to be stable and working properly on Windows. When they’re ready, I’ll convert all my SDL stuff over to 1.3 and it’ll simplify my codebase considerably.

Yep, both of these are in and should be stable in the current SDL snapshot:
http://www.libsdl.org/tmp/SDL-1.3.zip
Really? That’s wonderful!

Please let me know if you have any problems! :slight_smile:
First problem: I went looking through the SDL_Video.h documentation at http://www.libsdl.org/tmp/SDL-1.3-docs/SDL__video_8h.html, and I couldn’t find the code to create a new SDL_Window and have its display area be an existing Windows handle, instead of having it create a brand new form. That’s the one other thing I need.>----- Original Message ----
From: Sam Lantinga
Subject: Re: [SDL] SFML ® - The OpenGL Accelerated Alternative to SDL ®…

First problem: I went looking through the SDL_Video.h documentation at http://www.libsdl.org/tmp/SDL-1.3-docs/SDL__video_8h.html, and I couldn’t find the code to create a new SDL_Window and have its display area be an existing Windows handle, instead of having it create a brand new form. That’s the one other thing I need.

Yeah, this is on the TODO list. I’ll try to get on this today.

See ya!
-Sam Lantinga, Founder and President, Galaxy Gameworks LLC

First problem: I went looking through the SDL_Video.h documentation at http://www.libsdl.org/tmp/SDL-1.3-docs/SDL__video_8h.html, and I couldn’t find the code to create a new SDL_Window and have its display area be an existing Windows handle, instead of having it create a brand new form. That’s the one other thing I need.

Yeah, this is on the TODO list. I’ll try to get on this today.

Great! I’ll be looking forward to it!>----- Original Message ----

From: Sam Lantinga
Subject: Re: [SDL] SFML ® - The OpenGL Accelerated Alternative to SDL ®…

Just wondering, will the multi window support be able to create windows with
the small buttons/bar at the top or will they all be fullsize? I’m working
on some OpenGL stuff(2D CAD but uses 3D perspective for zooming so I doubt
the SDL acceleration wont help me here but it does sound awesome anyway)
with SDL and been toying around with wxWidgets. If the multi window support
could help me with floatable/dockable toolbars, I’d be interested in
possibly doing that rather than the wxWidgets route.

First problem: I went looking through the SDL_Video.h documentation at http://www.libsdl.org/tmp/SDL-1.3-docs/SDL__video_8h.html, and I couldn’t find the code to create a new SDL_Window and have its display area be an existing Windows handle, instead of having it create a brand new form. That’s the one other thing I need.

Yeah, this is on the TODO list. I’ll try to get on this today.

Great! I’ll be looking forward to it!

Yep, I had it implemented using SDL_CreateWindowFrom(), I just needed to test
it out.

Check out test/testnative* in the newest SDL 1.3 snapshot.

The event handling for windows created using SDL_CreateWindowFrom() isn’t
finalized yet. In your case, do you want SDL to handle window events?

See ya!
-Sam Lantinga, Founder and President, Galaxy Gameworks LLC

First problem: I went looking through the SDL_Video.h documentation at http://www.libsdl.org/tmp/SDL-1.3-docs/SDL__video_8h.html, and I couldn’t find the code to create a new SDL_Window and have its display area be an existing Windows handle, instead of having it create a brand new form. That’s the one other thing I need.

Yeah, this is on the TODO list. I’ll try to get on this today.

Great! I’ll be looking forward to it!

Yep, I had it implemented using SDL_CreateWindowFrom(), I just needed to test
it out.

Check out test/testnative* in the newest SDL 1.3 snapshot.

The event handling for windows created using SDL_CreateWindowFrom() isn’t
finalized yet. In your case, do you want SDL to handle window events?

You mean making it automatically size/resize itself to fit the window handle it’s assigned to? Yeah, that would be very convenient.>----- Original Message ----

From: Sam Lantinga
Subject: Re: [SDL] SFML ® - The OpenGL Accelerated Alternative to SDL ®…

A noob’s question: On Windows, SDL works as a wrapper for directX? and on linux for X11? or SDL somehow access the hardware some other way? (not talking about openGL, which has its own libraries)

Cheers,
AM.— Em seg, 9/2/09, Sam Lantinga escreveu:

De: Sam Lantinga
Assunto: Re: [SDL] SFML ® - The OpenGL Accelerated Alternative to SDL ®…
Para: “A list for developers using the SDL library. (includes SDL-announce)”
Data: Segunda-feira, 9 de Fevereiro de 2009, 4:48

First problem: I went looking through the
SDL_Video.h documentation at
http://www.libsdl.org/tmp/SDL-1.3-docs/SDL__video_8h.html,
and I couldn’t find the code to create a new SDL_Window
and have its display area be an existing Windows handle,
instead of having it create a brand new form. That’s
the one other thing I need.

Yeah, this is on the TODO list. I’ll try to
get on this today.

Great! I’ll be looking forward to it!

Yep, I had it implemented using SDL_CreateWindowFrom(), I
just needed to test
it out.

Check out test/testnative* in the newest SDL 1.3 snapshot.

The event handling for windows created using
SDL_CreateWindowFrom() isn’t
finalized yet. In your case, do you want SDL to handle
window events?

See ya!
-Sam Lantinga, Founder and President, Galaxy Gameworks LLC


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

  Veja quais s?o os assuntos do momento no Yahoo! +Buscados

http://br.maisbuscados.yahoo.com

You mean making it automatically size/resize itself to fit the window handle it’s assigned to? Yeah, that would be very convenient.

No, I mean interpreting keyboard and mouse events when the window has focus.

See ya!
-Sam Lantinga, Founder and President, Galaxy Gameworks LLC