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 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.
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"
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
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.
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"
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).
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.
,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
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
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.
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.
Please let me know if you have any problems!
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