Multiple windows and strectched blits

Hello, this is my first post on here. I think the SDL library is very
good, mainly because it’s relatively unbloated and simple, but I’ve got
a couple of questions to ask (All based on CVS at the time of posting):

  1. Why doesn’t SDL support multiple windows? I feel that this is the one
    thing letting SDL down…
  2. When will stretched blits be available in the ‘public’ API? I am
    aware of SDL_SoftStretch, but the header file says that it isn’t
    supposed to be used…
  3. While looking around the source files to work out how the packed
    pixel formats work, I came across the function SDL_CreateRGBSurfaceFrom,
    and observed how it calls SDL_CreateRGBSurface and then assigns the
    user-provided pointer to the pixels member of the surface without first
    deallocating the original memory. Is this a memory leak I see before me?

Anyway, keep up the good work :).

Chris E.
-------------- next part --------------
A non-text attachment was scrubbed…
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20040322/5528c805/attachment.pgp

Hello everyone,

I need a table or list of all of the constants in the keys array
generated by SDL_GetKeyState();

Anyone got a link to such a list?–
best regards

ionas

yeah look in sdl_keysym.h, its all there (:> ----- Original Message -----

From: jonashartmann@gmx.de (Jonas Hartmann)
To:
Sent: Monday, March 22, 2004 10:14 AM
Subject: [SDL] “KEY_” constants

Hello everyone,

I need a table or list of all of the constants in the keys array
generated by SDL_GetKeyState();

Anyone got a link to such a list?


best regards

ionas

SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Check in SDL_keysym.h

// Alexander BussmanOn Monday 22 March 2004 19.14, Jonas Hartmann wrote:

Hello everyone,

I need a table or list of all of the constants in the keys array
generated by SDL_GetKeyState();

Anyone got a link to such a list?

thank you both!

Alan Wolfe (2004-03-22 20:49):

yeah look in sdl_keysym.h, its all there (:

Check in SDL_keysym.h
// Alexander Bussman–
liebe Gr??e

ionas

Hello everyone,

I need a table or list of all of the constants in the keys array
generated by SDL_GetKeyState();

Anyone got a link to such a list?

There are no constants stored in that array. All information you need
to use it can be found here:
http://sdldoc.csn.ul.ie/sdlgetkeystate.php

Bye,

MaxAm 22.03.2004 um 19:14 schrieb Jonas Hartmann:

  1. Why doesn’t SDL support multiple windows? I feel that this is the one
    thing letting SDL down…

It’s very difficult to do, with a unified API for multiple windows and
multi-head support. Nobody has had time to do the requisite rearchitecture.

  1. When will stretched blits be available in the ‘public’ API? I am
    aware of SDL_SoftStretch, but the header file says that it isn’t
    supposed to be used…

It’s not thread-safe. The reason stretched blits aren’t supported is
because the combinatorial explosion of blitters when combining stretching,
the 3 or 4 necessary stretching algorithms, and the existing blitter set.

  1. While looking around the source files to work out how the packed
    pixel formats work, I came across the function SDL_CreateRGBSurfaceFrom,
    and observed how it calls SDL_CreateRGBSurface and then assigns the
    user-provided pointer to the pixels member of the surface without first
    deallocating the original memory. Is this a memory leak I see before me?

No, it calls SDL_CreateRGBSurface with zero dimensions, which doesn’t
allocate any memory for the pixels member.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment