Which memory are images loaded into?

How to define image loading functions use videomemory? For example
HW-accelerated alpha-blending?

Juhana Lehtiniemi wrote:

How to define image loading functions use videomemory? For example
HW-accelerated alpha-blending?

SDL does not support hardware-accelerated alpha-blending on any target at
the moment, so you should use software surfaces for that. Also try RLE.

Hi!
You (Matthias) surely didn’t really read the docs, did ya? As SDL supports
OpenGL, it supports hardware alpha blending, because alpha functions are
part of the GL-Rendering-Pipe, taking place right before the rasterization
step.
So, Juhana should probably go use SDL_OPENGL for VideoMode … Remember to
set the GL_ATTRIBUTES before calling SDL_SetVideoMode(…);

St0fF 64

At 20:32 28.01.2002 +0100, you wrote:>Juhana Lehtiniemi wrote:

How to define image loading functions use videomemory? For example
HW-accelerated alpha-blending?

SDL does not support hardware-accelerated alpha-blending on any target at
the moment, so you should use software surfaces for that. Also try RLE.


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

St0fF 64 wrote:

You (Matthias) surely didn’t really read the docs, did ya?

Of course I don’t read the docs. I only write them

Big SORRY! (I’m a newbie, learning it by myself)
Then it’s the OpenGL-Stuff (supporting alpha-blending for years) you didn’t
know about.
St0fF.

At 10:48 30.01.2002 +0100, you wrote:>St0fF 64 <@Stefan_Hubner> wrote:

You (Matthias) surely didn’t really read the docs, did ya?

Of course I don’t read the docs. I only write them


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

St0fF 64 wrote:

Then it’s the OpenGL-Stuff (supporting alpha-blending for years) you didn’t
know about.

Yup, never heard of that OpenGL thing before.

What, you write blind-folded ? :wink:

Um, off topic…On Wednesday 30. January 2002 10:48, Mattias Engdeg?rd wrote:

St0fF 64 wrote:

You (Matthias) surely didn’t really read the docs, did ya?

Of course I don’t read the docs. I only write them


Trick


Linux User #229006 * http://counter.li.org

“There is no magic” - Nakor, magic user

[ Please don’t mail me privately about things of general interest without
also sending to the list. CC:ed to sdl-list ]

Juhana Lehtiniemi wrote:

If I open an image with IMG_Load, does it use software or hardware
surface?

software

How can I make sure(read: define) that it would use video
memory, not memorybuffer.

by converting it to a hardware surface yourself

And some guy wrote that I could use opengl
alpha blending for hardware acceleration… does this affect to other
drawing speeds, ie. slow down blitting…?

you cannot use SDL’s 2d blitting to the screen and opengl at the same time