I was thinking of games too. But, the way I see it, games are
multimedia applications! All you accomplish by introducing an
artificial distinction between the two is limit the kind of games you
can create with SDL.
For example, Fish Fillets NG use multiple windows and game-controlled
window positioning, Eyetoy, DDR and karaoke games use special input
devices, a Pictionary-like game could use a tablet/pressure-sensitive
pen, flight simulators and other 3D games could use extra monitors for
more views (I think Flight Gear supports this, actually), there’s even
games that use a MIDI keyboard for input. Then you could imagine a game
using several of these devices… Take a general vehicle-based FPS, add
a videowindow for controlling the vehicle, use microphone to talk to
others, and use a DDR mat for summoning magical creatures by tapdancing.
I’m not saying it’s in the scope of SDL to actively support all this,
just that for many games the game / multimedia seperation isn’t so big.
So, some general support would be nice, at least.
Anyway, getting the current desktop resolution is useful for more than
preventing modeswitching. Any game that is running windowed could use
the information to figure out if the window is bigger than the logical
or physical desktop, and based on that switch to fullscreen or maybe add
some window positioning. It could also be used for adding seemless
transitions into a game (fx, grab desktop image, create a fullscreen
window with it, melt).
Olof Bjarnason wrote:> I think so too. And in general, I think SDL2.0 will have to address
this issue - SDL is used as a general low-level multimedia API (after
all the name is Simple Directmedia Library), thus should not assume
"one window" or “one physical screen” etc. Or, SDL could change
direction slightly and go for the low-level games API idea instead.
The question “how do I create multiple windows” is one of the most
frequently asked questions since I joined this list two years ago.
/Olof
On Wed, 16 Feb 2005 05:31:38 +0000, Jon Colverson wrote:
Olof Bjarnason wrote:
On Mon, 14 Feb 2005 21:29:06 +0000, Jon Colverson wrote:
Well, since the programmer almost certainly wants this information to
select a fullscreen mode, I think physical is the one they would want to
know about. I should note that the patch I submitted is broken in this
I think we have a mindset problem here: is there programmer using SDL
to build a game or a general multimedia app…?
Well, I had games in mind. Would a “general multimedia app” want to use
the whole virtual screen? I suppose it might.
–
Jon
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl