[SDL] glSDL and OpenGL at the same time
Olivier Delannoy
olivier.delannoy at gmail.com
Sat Aug 27 08:54:36 PDT 2005
On 8/26/05, David Olofson <david at olofson.net> wrote:
> On Friday 26 August 2005 13.30, Olivier Delannoy wrote:
> > I am interesting in using CEGUI as a gui toolkit for all of my
> > application. This library relies on OpenGL. I would like to know if
> > it is possible to use an OpenGL programming at the same time as
> > glSDL. glSDL relies on OpenGL, CEGUI too and so it should be
> > possible to make them work at the same time. In a more generic
> > context might it be possible to use glSDL and OpenGL at the same
> > time in an application.
>
> It's possible, but not officially supported, mainly for two reasons,
> the second one being the more important one:
>
> 1. Adding the requirement of nice cooperation with other
> OpenGL code impacts the optimization possibilities of
> the glSDL backend, and may require SDL API extensions.
> Whatever glSDL does, it would have to consider the side
> effects on any other, unknown code, that shares the
> OpenGL context.
>
> 2. glSDL is an SDL backend that brings hardware acceleration
> to the SDL *2D* API on a wide range of platforms. It is
> not intended to be used by applications that will not
> run at all without OpenGL, as these are better off using
> OpenGL directly anyway.
>
>
> That is, if you want to use CEGUI, you'll need OpenGL anyway. So, why
> not just use OpenGL directly for your own rendering as well? It's a
> more powerful API, and you could probably gain some performance over
> glSDL.
>
The aim is to use only one Gui toolkit for both 2d and 3d application.
> //David Olofson - Programmer, Composer, Open Source Advocate
>
> .- Audiality -----------------------------------------------.
> | Free/Open Source audio engine for games and multimedia. |
> | MIDI, modular synthesis, real time effects, scripting,... |
> `-----------------------------------> http://audiality.org -'
> --- http://olofson.net --- http://www.reologica.se ---
>
> _______________________________________________
> SDL mailing list
> SDL at libsdl.org
> http://www.libsdl.org/mailman/listinfo/sdl
>
More information about the SDL
mailing list