Blitting sdl surfaces with opengl

How can I blit an SDL_Surface using opengl functions?–
Roger D. Vargas
ICQ: 117641572
Linux User: 180787

  • Much to learn you still have *
    Master Yoda, AOTC


Este mensaje ha sido analizado por MailScanner
en busca de virus y otros contenidos peligrosos,
y se considera que est? limpio.

http://www.libsdl.org/opengl/index.php

It’s right on the homepage.On Fri, 2003-08-22 at 16:02, Roger D. Vargas wrote:

How can I blit an SDL_Surface using opengl functions?


Roger D. Vargas
ICQ: 117641572
Linux User: 180787

  • Much to learn you still have *
    Master Yoda, AOTC


Jimmy <@Jimmy>
Jimmy’s World.org
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20030822/f6ac057f/attachment.pgp

How can I blit an SDL_Surface using opengl functions?

Look at test/testgl.c in the SDL source distribution. You will find code
to set up a 2D mode compatible with normal SDL and code to convert an
SDL software surface to an OpenGL texture map. There is also sample code
in that testgl.c to draw the texture on the screen.

Pretty much everything you need to know is encoded in that one piece of
code.

	Bob PendletonOn Fri, 2003-08-22 at 15:02, Roger D. Vargas wrote:


Roger D. Vargas
ICQ: 117641572
Linux User: 180787

  • Much to learn you still have *
    Master Yoda, AOTC

    ±----------------------------------+

Hi!
I’ve tried to show SDL_Surface on the OGL screen. They have wrote in
docs that you can do this passing flag SDL_OPENGLBLIT and then using
SDL_UpdateRects.
But it is not working in me… I saw only black screen…

Roger D. Vargas wrote:> How can I blit an SDL_Surface using opengl functions?