Can I mix SDL operations with OpenGL ones?

Hello all!!!

I want to do bitmap blits after rendering my OpenGL scene.

Can I use SDL functions with OpenGL?

Cause I think that if you use OpenGL it has it own buffers to do it all.

What do you think about it?

Thanks

check last week’s messages with the subject [SDL] blitting with SDL/OpenGL

btw i’m programming a simple library to do SDL surfaces blits with openGL
(using textures for that). If you want to check it out, i could send the code
(it already blits whole images, no subrectangles yet though … and it has
problems when scaling too)

:slight_smile:

janOn Monday 11 November 2002 14:46, Gonzalo Aguilar wrote:

Hello all!!!

I want to do bitmap blits after rendering my OpenGL scene.

Can I use SDL functions with OpenGL?

Cause I think that if you use OpenGL it has it own buffers to do it all.

What do you think about it?

Thanks


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

Jan Pfeifer wrote:

check last week’s messages with the subject [SDL] blitting with SDL/OpenGL

btw i’m programming a simple library to do SDL surfaces blits with openGL

I’ll check it now. Thanks.

(using textures for that). If you want to check it out, i could send the code
(it already blits whole images, no subrectangles yet though … and it has
problems when scaling too)

MMMMMmmmm, but textures in my card are …->512->1024 pixels. What
happen if I want
load 2048x2048 texture…

This is the reason why I want to do blits…

I will write you when I really know what exactly I want to do, so you
can send me
your lib, ok?

Thanks for the help.

MMMMMmmmm, but textures in my card are …->512->1024 pixels. What
happen if I want
load 2048x2048 texture…

that is exactly what the library does: divide the sizes that are not 2^n into
multiple 2^n sized tiles. So a 800x600 image will be divided into the
following tiles (something like this):

512x512, 256x512, 32x512
512x128, 256x128, 32x128

(note that some 128 sized tiles are wasted, but this minimal tile size number
is configurable)

the problem with scaling is that these tiles doesn’t “glue” well … maybe if
i use some kind of anti-alias/blending … i haven’t played with this yet
though …>

This is the reason why I want to do blits…

I will write you when I really know what exactly I want to do, so you
can send me
your lib, ok?

Jan Pfeifer wrote:

MMMMMmmmm, but textures in my card are …->512->1024 pixels. What
happen if I want
load 2048x2048 texture…

that is exactly what the library does: divide the sizes that are not 2^n into
multiple 2^n sized tiles. So a 800x600 image will be divided into the
following tiles (something like this):

512x512, 256x512, 32x512
512x128, 256x128, 32x128

(note that some 128 sized tiles are wasted, but this minimal tile size number
is configurable)

the problem with scaling is that these tiles doesn’t “glue” well … maybe if
i use some kind of anti-alias/blending … i haven’t played with this yet
though …

I think I will not need scaling, so your lib will fit perfectly with my
app.

I need to do some testing before including another library, "yours ;-)"
so I’ll
contact you if your library has a good license. If you want, of course.

Thanks for the help.