glSDL

Torsten Giebl wrote:

Hello !

glSDL is really great. I tested it on MacOSX and there is
it the only way for me to get the FPS i wanted.

What is the last glSDL version ? Where can i download it ?

The latest glSDL version is there (pre patched tarball with other patches) :
http://icps.u-strasbg.fr/~marchesin/sdl/SDL12-experimental.tgz
It usually tracks the SDL cvs with a variable delay.

That said, I didn’t see problem reports about it recently, so there is
little incentive to do new glSDL versions. I actually hope that the code
is getting stable enough to the point that it can be merged into SDL.

Or has the latest SDL CVS version glSDL integrated ?
Not yet. Sam ? :slight_smile:

Stephane

[…]

Or has the latest SDL CVS version glSDL integrated ?
Not yet. Sam ? :slight_smile:

Well, I just noticed some site that claims glSDL is in CVS - but I
haven’t checked. Is there something missing in the ChangeLog…?

confused

//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.nethttp://www.reologica.se —On Monday 22 August 2005 22.49, Stephane Marchesin wrote:

Hello !> On Monday 22 August 2005 22.49, Stephane Marchesin wrote:

[…]

Or has the latest SDL CVS version glSDL integrated ?

Not yet. Sam ? :slight_smile:

Well, I just noticed some site that claims glSDL is in CVS - but I
haven’t checked. Is there something missing in the ChangeLog…?

If it is not integrated please Sam integrate it, even
when it is beta quality. So many people here on the list
are waiting for it and on some plattforms like Mac OSX it
is the only way to get good performance.

CU

David Olofson wrote:> On Monday 22 August 2005 22.49, Stephane Marchesin wrote:

[…]

Or has the latest SDL CVS version glSDL integrated ?

Not yet. Sam ? :slight_smile:

Well, I just noticed some site that claims glSDL is in CVS - but I
haven’t checked. Is there something missing in the ChangeLog…?

confused

A quick peek in at cvsweb reveals nothing glSDL-related :
http://www.libsdl.org/cgi/cvsweb.cgi/SDL12/src/video/

Stephane

Is that a branch of SDL 1.3 ?
Any schedule or roadmap for glSDL being available in SDL HEAD ?
Look forward to …

Thanks

“Stephane Marchesin” <stephane.marchesin at wanadoo.fr>> The latest glSDL version is there (pre patched tarball with other patches)

:
http://icps.u-strasbg.fr/~marchesin/sdl/SDL12-experimental.tgz
It usually tracks the SDL cvs with a variable delay.

RocWood wrote:

Is that a branch of SDL 1.3 ?

Nope, it’s based on SDL 1.2. When development starts focusing on 1.3,
I’ll follow 1.3, if I still have pending patches.

Any schedule or roadmap for glSDL being available in SDL HEAD ?
Look forward to …

That’s not my call.

Stephane

Hi,

I’ve compiled & installed glSDL (in /usr/local).
When I set SDL_VIDEODRIVER to “glSDL” and launch the demo “testsprite”, I get the following error:

Couldn’t initialize SDL: No available video device

As for the “parallax4” demo, it simply crashes and here is the GDB report:

<<<
(gdb) r
Starting program: /home/clement/src/private/glSDL-0.8/parallax4
[Thread debugging using libthread_db enabled]
Requesting glSDL.
Requesting double buffered display.
??? Display size: 320x240.
Number of layers: 7.
??? Alpha: 0.
??? Planets: On.
[New Thread 0x7f81f5c236e0 (LWP 12202)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f81f5c236e0 (LWP 12202)]
0x00007f81f5324a1e in SDL_GL_GetProcAddress () from /usr/lib/libSDL-1.2.so.0

I’ve noticed that by default, “SDL_VIDEODRIVER” is simply not set, and if I set it to the null? string:

“export SDL_VIDEODRIVER=”

I get the same crash, so I may be missing something in the usage of glSDL …

Any idea David ?

thanks

Hi,

I’ve compiled & installed glSDL (in /usr/local).

How did you do that, exactly? :slight_smile:

The glSDL versions available at olofson.net are all "application side"
wrappers, so there is nothing to install. You just #include "glSDL.h"
instead of SDL.h in your code, add glSDL.c to your project (Makefile
or whatever) and recompile.

When I set SDL_VIDEODRIVER to “glSDL” and launch the
demo “testsprite”, I get the following error:

Couldn’t initialize SDL: No available video device

The SDL_VIDEODRIVER environment variable is not supported by glSDL
wrapper! You need to pass the option “-gl” to the included testsprite
to run in in “OpenGL mode”.

There is an unofficial true backend version of glSDL that does
support the SDL_VIDEODRIVER variable. Maybe you’re looking at the
wrong documentation…? All there is for the wrapper version (IIRC)
is the README included with the source.

As for the “parallax4” demo, it simply crashes and here is the GDB
report:

<<<
(gdb) r
Starting program: /home/clement/src/private/glSDL-0.8/parallax4
[Thread debugging using libthread_db enabled]
Requesting glSDL.
Requesting double buffered display.
??? Display size: 320x240.
Number of layers: 7.
??? Alpha: 0.
??? Planets: On.
[New Thread 0x7f81f5c236e0 (LWP 12202)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f81f5c236e0 (LWP 12202)]
0x00007f81f5324a1e in SDL_GL_GetProcAddress ()
from /usr/lib/libSDL-1.2.so.0

Can’t tell for sure from this, but it seems like SDL cannot find the
OpenGL library or something…

I would assume you get the same thing with “./testsprite -gl”,
considering this.

I’ve noticed that by default, “SDL_VIDEODRIVER” is simply not set,
and if I set it to the null? string:

“export SDL_VIDEODRIVER=”

I get the same crash, so I may be missing something in the usage of
glSDL …

The test programs included with glSDL use the flag SDL_GLSDL (glSDL
extension) for SDL_SetVideoMode(). SDL_VIDEODRIVER is not supported,
but is rather handled by SDL as usual, which doesn’t work, as the SDL
library doesn’t know what “glSDL” is.

Any idea David ?

Start by checking if you can OpenGL working with the SDL demos
included with the SDL, or some other SDL/OpenGL programs.On Tuesday 12 May 2009, julien CLEMENT wrote:


//David Olofson - Programmer, Composer, Open Source Advocate

.------- http://olofson.net - Games, SDL examples -------.
| http://zeespace.net - 2.5D rendering engine |
| http://audiality.org - Music/audio engine |
| http://eel.olofson.net - Real time scripting |
’-- http://www.reologica.se - Rheology instrumentation --’

— En date de?: Mar 12.5.09, David Olofson a ?crit?:de: David Olofson
Objet: Re: [SDL] glSDL
?: sdl at lists.libsdl.org
Date: Mardi 12 Mai 2009, 13h04

On Tuesday 12 May 2009, julien CLEMENT wrote:

Hi,

I’ve compiled & installed glSDL (in /usr/local).

How did you do that, exactly? :slight_smile:

sudo make install

The glSDL versions available at olofson.net are all "application side"
wrappers, so there is nothing to install. You just #include "glSDL.h"
instead of SDL.h in your code, add glSDL.c to your project (Makefile
or whatever) and recompile.

understood.

When I set SDL_VIDEODRIVER to “glSDL” and launch the
demo “testsprite”, I get the following error:

Couldn’t initialize SDL: No available video device

The SDL_VIDEODRIVER environment variable is not supported by glSDL
wrapper! You need to pass the option “-gl” to the included testsprite
to run in in “OpenGL mode”.

There is an unofficial true backend version of glSDL that does
support the SDL_VIDEODRIVER variable. Maybe you’re looking at the
wrong documentation…? All there is for the wrapper version (IIRC)
is the README included with the source.

http://icps.u-strasbg.fr/~marchesin/sdl/glsdl.html
Maybe there is a naming collision with your project ?

As for the “parallax4” demo, it simply crashes and here is the GDB
report:

<<<
(gdb) r
Starting program: /home/clement/src/private/glSDL-0.8/parallax4
[Thread debugging using libthread_db enabled]
Requesting glSDL.
Requesting double buffered display.
??? Display size: 320x240.
Number of layers: 7.
??? Alpha: 0.
??? Planets: On.
[New Thread 0x7f81f5c236e0 (LWP 12202)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f81f5c236e0 (LWP 12202)]
0x00007f81f5324a1e in SDL_GL_GetProcAddress ()
from /usr/lib/libSDL-1.2.so.0

Can’t tell for sure from this, but it seems like SDL cannot find the
OpenGL library or something…

I would assume you get the same thing with “./testsprite -gl”,
considering this.

Indeed, same error with the -gl switch.

I’ve noticed that by default, “SDL_VIDEODRIVER” is simply not set,
and if I set it to the null? string:

“export SDL_VIDEODRIVER=”

I get the same crash, so I may be missing something in the usage of
glSDL …

The test programs included with glSDL use the flag SDL_GLSDL (glSDL
extension) for SDL_SetVideoMode(). SDL_VIDEODRIVER is not supported,
but is rather handled by SDL as usual, which doesn’t work, as the SDL
library doesn’t know what “glSDL” is.

I’m a bit confused with the name “glSDL”. Is this flag added by your library ?

Any idea David ?

Start by checking if you can OpenGL working with the SDL demos
included with the SDL, or some other SDL/OpenGL programs.

The flag “-gl” works perfectly (little note: it’s not listed in the possible options), as long as I don’t set any SDL_VIDEODRIVER environment variable.
(And it’s very fast with -gl)

Thanks !

//David Olofson - Programmer, Composer, Open Source Advocate

.-------? http://olofson.net - Games, SDL examples? -------.
|? ? ? ? http://zeespace.net - 2.5D rendering engine? ? ???|
|? ? ???http://audiality.org - Music/audio engine? ? ? ? ? |
|? ???http://eel.olofson.net - Real time scripting? ? ? ???|
’–? http://www.reologica.se - Rheology instrumentation? --’


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

[…]

There is an unofficial true backend version of glSDL that does
support the SDL_VIDEODRIVER variable. Maybe you’re looking at the
wrong documentation…? All there is for the wrapper version (IIRC)
is the README included with the source.

http://icps.u-strasbg.fr/~marchesin/sdl/glsdl.html
Maybe there is a naming collision with your project ?

Well, yes and no. :slight_smile:

Stephane’s glSDL is based on my glSDL wrapper code, and was intended
to become an official SDL 1.2 backend; ie the real glSDL, replacing
my original glSDL wrapper hack. However, as it turned out, neither
version ever became official, and both are still used in various
versions in various places.

Here’s one plan:

1. Transform glSDL into that Advanced2D thingy mentioned
   the other day; that is, give it a proper API instead
   of redefining and extending the SDL 2D API.

2. Declare glSDL (all versions) officially abandoned.

3. Suggest that people use Advanced2D or SDL 1.3 instead.

SDL 1.3 has fully accelerated backends for OpenGL as well as Direct3D,
and is going to be the new official SDL. It’s probably already a
better option than either glSDL variant in most cases.

[…]

The test programs included with glSDL use the flag SDL_GLSDL (glSDL
extension) for SDL_SetVideoMode(). SDL_VIDEODRIVER is not supported,
but is rather handled by SDL as usual, which doesn’t work, as the
SDL library doesn’t know what “glSDL” is.

I’m a bit confused with the name “glSDL”. Is this flag added by your
library ?

If you say ‘export SDL_VIDEODRIVER=“glSDL”’, the SDL library will see
an environment variable containing the string “glSDL”, and try to
find a rendering backend by that name - which does not exist, unless
you’re using an SDL library with Stephane’s glSDL patch applied.

The flag SDL_GLSDL, however, is a bit mask defined in glSDL.h, that
you can use in your code to tell (gl)SDL_SetVideoMode() (found in
glSDL.c) to use OpenGL mode, as opposed to passing through to a
standard SDL 2D backend.

Any idea David ?

Start by checking if you can OpenGL working with the SDL demos
included with the SDL, or some other SDL/OpenGL programs.

The flag “-gl” works perfectly (little note: it’s not listed in the
possible options),

Oops…!

I’m afraid that the general rule is that it’s safer to read the code
than the documentation. :wink:

as long as I don’t set any SDL_VIDEODRIVER
environment variable.

Well then; that makes sense to me, at least. :slight_smile:

(And it’s very fast with -gl)

Thanks !

You’re welcome! I hope it can be of some use.On Tuesday 12 May 2009, julien CLEMENT wrote:


//David Olofson - Programmer, Composer, Open Source Advocate

.------- http://olofson.net - Games, SDL examples -------.
| http://zeespace.net - 2.5D rendering engine |
| http://audiality.org - Music/audio engine |
| http://eel.olofson.net - Real time scripting |
’-- http://www.reologica.se - Rheology instrumentation --’