OpenGL / SDL / GUI / Movie :-)

Any way to play a mpeg or even a avi movie within a OpenGL context using
SDL ?

And what do you guys think of HawkNL. A cross-platform network lib. ?
It looks nice and fully featured and has coverage by flipcode and
therefore a lot of users. It uses it’s own threads though. Anyway to
integrate or let it cooexist with SDL ?

I have seen ParaGUI, it looks really good. Although it’s draw functions
are completely based on SDL atm.
Do the SDL blitting ect. Functions also work within a OpenGL context ?

Thnx.
DV

most of that i cant answer, i do know however that you cant use SDL 2d drawing routines when you set GL mode. There are GL techniques and functions to draw 2d but because of how GL works internaly, it cant give you normal access to the video buffer when its initialized.----- Original Message -----
From: Dinand Vanvelzen
To: sdl at libsdl.org
Sent: Sunday, August 25, 2002 1:45 AM
Subject: [SDL] OpenGL / SDL / GUI / Movie :slight_smile:

Any way to play a mpeg or even a avi movie within a OpenGL context using SDL ?

And what do you guys think of HawkNL. A cross-platform network lib. ? It looks nice and fully featured and has coverage by flipcode and therefore a lot of users. It uses it’s own threads though. Anyway to integrate or let it cooexist with SDL ?

I have seen ParaGUI, it looks really good. Although it’s draw functions are completely based on SDL atm.

Do the SDL blitting ect. Functions also work within a OpenGL context ?

Thnx.

DV

— Atrix Wolfe wrote:

most of that i cant answer, i do know however that you cant use SDL
2d drawing routines when you set GL mode. There are GL techniques
and functions to draw 2d but because of how GL works internaly, it
cant give you normal access to the video buffer when its initialized.

Has there been any talk of an invisible framework of 2D drawing
function replacements when you use OpenGL under SDL? For instance,
SDL_Init() would set up functions invisibly using function pointers,
etc. I’ve seen similar trickery done other places.

  • Charles__________________________________________________
    Do You Yahoo!?
    Yahoo! Finance - Get real-time stock quotes
    http://finance.yahoo.com

Well GL isnt setup until you set the video mode with the flag SDL_OPENGL,
but as far as what your saying, i have heard nothing. I would be inclined
to doubt that anyone would make a “wrapper” for the GL API to do 2d drawing
with the conventional SDL 2d drawing function names because 2d SDL code and
the code to do 2d blits in GL are night and day as far as function
parameters and how they operate. But who knows! It would be pretty cool if
they pulled that off so that it was “seamless” in that you didnt know it was
gl doing the blitting.> ----- Original Message -----

From: kattkieru@yahoo.com (Charles Wardlaw)
To:
Sent: Sunday, August 25, 2002 6:33 AM
Subject: Re: [SDL] OpenGL / SDL / GUI / Movie :slight_smile:

— Atrix Wolfe wrote:

most of that i cant answer, i do know however that you cant use SDL
2d drawing routines when you set GL mode. There are GL techniques
and functions to draw 2d but because of how GL works internaly, it
cant give you normal access to the video buffer when its initialized.

Has there been any talk of an invisible framework of 2D drawing
function replacements when you use OpenGL under SDL? For instance,
SDL_Init() would set up functions invisibly using function pointers,
etc. I’ve seen similar trickery done other places.

  • Charles

Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com


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

Seems you are new to the list, please check out glSDL by David
Olofson at http://olofson.net/mixed.html. It does everything you
said.

Regards,
.paul.On Sun, Aug 25, 2002 at 06:54:41AM -0700, Atrix Wolfe wrote:

Well GL isnt setup until you set the video mode with the flag SDL_OPENGL,
but as far as what your saying, i have heard nothing. I would be inclined
to doubt that anyone would make a “wrapper” for the GL API to do 2d drawing
with the conventional SDL 2d drawing function names because 2d SDL code and
the code to do 2d blits in GL are night and day as far as function
parameters and how they operate. But who knows! It would be pretty cool if
they pulled that off so that it was “seamless” in that you didnt know it was
gl doing the blitting.

----- Original Message -----
From: “Charles Wardlaw”
To:
Sent: Sunday, August 25, 2002 6:33 AM
Subject: Re: [SDL] OpenGL / SDL / GUI / Movie :slight_smile:

— Atrix Wolfe wrote:

most of that i cant answer, i do know however that you cant use SDL
2d drawing routines when you set GL mode. There are GL techniques
and functions to draw 2d but because of how GL works internaly, it
cant give you normal access to the video buffer when its initialized.

Has there been any talk of an invisible framework of 2D drawing
function replacements when you use OpenGL under SDL? For instance,
SDL_Init() would set up functions invisibly using function pointers,
etc. I’ve seen similar trickery done other places.

  • Charles

Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com


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


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

[…]

Has there been any talk of an invisible framework of 2D drawing
function replacements when you use OpenGL under SDL? For instance,
SDL_Init() would set up functions invisibly using function pointers,
etc.

Well, although it’s outside the scope, you could use glSDL for that. Someone (either (gl)SDL or the application) would have to deal with OpenGL state management, though, or any (gl)SDL calls will screw up subsequent OpenGL rendering.

I’ve seen similar trickery done other places.

Yeah. There’s a simple example in my smoothscroll demo as well…

//David

.---------------------------------------
| David Olofson
| Programmer

david.olofson at reologica.se
Address:
REOLOGICA Instruments AB
Scheelev?gen 30
223 63 LUND
Sweden
---------------------------------------
Phone: 046-12 77 60
Fax: 046-12 50 57
Mobil:
E-mail: david.olofson at reologica.se
WWW: http://www.reologica.se

`-----> We Make Rheology RealOn Sun, 25/08/2002 06:33:45 , Charles Wardlaw wrote:

aaaaaaaah, seems like Mr. Olofson is back. It’s nice to have your long
posts & propaganda messages about glSDL back :slight_smile:

WB to the list, whereever you’ve been :slight_smile:

-Ga?tan.On Mon, 2002-08-26 at 14:34, David Olofson wrote:

On Sun, 25/08/2002 06:33:45 , Charles Wardlaw wrote:
[…] you could use glSDL for that. […]

I’ve seen similar trickery done other places.
Yeah. There’s a simple example in my smoothscroll demo as well…

http://avifile.sf.netOn Sun, Aug 25, 2002 at 10:45:11AM +0200, Dinand Vanvelzen wrote:

Any way to play a mpeg or even a avi movie within a OpenGL context using
SDL ?


http://decopter.sf.net - free unrealistic helicopter simulator