SDL_FreeSurface and parachuting

Hi,
why won’t SDL allow me to free a surface with SDL_FreeSurface(); at one
point of the code while it does let me at the end of the code?
i first thought about unlocking the surfaces with SDL_UnlockSurface();
but doesn’t work either goes parachuting :wink:
Thanks in advance
Joseba

Is there a way to rotate images in SDL? If not doesn
anybody have any ideas about how to do this?

Herbert=====
Game Programming Groups
VS Entertainment(Houston game dev group, looking for members)
IGP(Internet game programming group, looking for members also)
Ask me for details…


Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions!
http://auctions.yahoo.com

Check out SDL_rotozoom on the libraries page or try OpenGL.

HTH,
JakobOn Mon, Feb 04, 2002 at 11:20:15AM -0800, Red wrote:

Is there a way to rotate images in SDL? If not doesn
anybody have any ideas about how to do this?


Im Ausblick auf den bevorstehenden Winter habe ich mir eine
hochwertige Elektroheizung zugelegt (Thunderbird 1,4 GHZ)."
Sven Arnhold in tuc.comp

— Jakob Kosowski wrote:

Is there a way to rotate images in SDL? If not
doesn
anybody have any ideas about how to do this?

Check out SDL_rotozoom on the libraries page or try
OpenGL.

The problem I have with opengl is that I don’t know
how to set a transparent color.

Herbert> On Mon, Feb 04, 2002 at 11:20:15AM -0800, Red wrote:

HTH,
Jakob


Im Ausblick auf den bevorstehenden Winter habe ich
mir eine
hochwertige Elektroheizung zugelegt (Thunderbird 1,4
GHZ)."
Sven Arnhold in
tuc.comp


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

=====
Game Programming Groups
VS Entertainment(Houston game dev group, looking for members)
IGP(Internet game programming group, looking for members also)
Ask me for details…


Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions!
http://auctions.yahoo.com

If this is your only problem, then just sit back and read some stuff, like
the red book or so.
You set colors like this in OGL:
glColor3*(); - ok, this is 3 values for RGB - what if we need RGBA, 4 values?
… just use " glColor4*(); " … wow, easy, isn’t it?
St0fF.

At 12:51 04.02.2002 -0800, you wrote:>— Jakob Kosowski wrote:

On Mon, Feb 04, 2002 at 11:20:15AM -0800, Red wrote:

Is there a way to rotate images in SDL? If not
doesn
anybody have any ideas about how to do this?

Check out SDL_rotozoom on the libraries page or try
OpenGL.

The problem I have with opengl is that I don’t know
how to set a transparent color.

Herbert

HTH,
Jakob


Im Ausblick auf den bevorstehenden Winter habe ich
mir eine
hochwertige Elektroheizung zugelegt (Thunderbird 1,4
GHZ)."
Sven Arnhold in
tuc.comp


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

=====
Game Programming Groups
VS Entertainment(Houston game dev group, looking for members)
IGP(Internet game programming group, looking for members also)
Ask me for details…


Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions!
http://auctions.yahoo.com


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

— Jakob Kosowski wrote:

Is there a way to rotate images in SDL? If not

doesn

anybody have any ideas about how to do this?

Check out SDL_rotozoom on the libraries page or try
OpenGL.

The problem I have with opengl is that I don’t know
how to set a transparent color.

Kobo Deluxe uses alpha blending for all kinds of transparency, in both
SDL 2D and OpenGL modes. The reason for that is that it’s simple, and
that the scaled modes need it anyway, for antialiazing.

//David Olofson — Programmer, Reologica Instruments AB

.- M A I A -------------------------------------------------.
| Multimedia Application Integration Architecture |
| A Free/Open Source Plugin API for Professional Multimedia |
----------------------------> http://www.linuxdj.com/maia -' .- David Olofson -------------------------------------------. | Audio Hacker - Open Source Advocate - Singer - Songwriter |-------------------------------------> http://olofson.net -'On Monday 04 February 2002 21:51, Red wrote:

On Mon, Feb 04, 2002 at 11:20:15AM -0800, Red wrote:

This is very vague - show the code (as small as possible) and we might be
able to make some sense of this question :-)On Mon, Feb 04, 2002 at 01:23:19PM -0300, joseba wrote:

why won’t SDL allow me to free a surface with SDL_FreeSurface(); at one
point of the code while it does let me at the end of the code?
i first thought about unlocking the surfaces with SDL_UnlockSurface();
but doesn’t work either goes parachuting :wink:


Mike.
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20020205/970d928e/attachment.pgp