SDL <-> DirectFB

Hi,

Two questions-

  1. I am trying to get SDL running over directFB.

The SDL documentation says that the driver can
be specified by setting the SDL_VIDEODRIVER
variable to “directfb”.

When I do this, all my SDL applications complain

SDL_SetError: No available video device
Could not initialize SDL: No available video device.
because
SDL_Init(SDL_INIT_VIDEO|SDL_INIT_AUDIO)==-1

Now, on the other hand, all my directFB programs
work fine. Is there something else I need to do
to hook SDL over directFB?

  1. When running SDL over “x11” driver (rather than “directFB”)
    I note that hardware surfaces (SDL_HWSURFACE) are not supported,
    and double buffering (SDL_DOUBLEBUF) are not supported.

Assuming I managed to get item (1) resolved, i.e.
get SDL to run over directFB, would hardware surfaces
and double buffering become supported?

Thanks for your help,

Bilal_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.

Under X11, hardware surfaces aren’t supported (they might be via DGA but
I’m not sure). Under DirectFB, I know some drivers do hardware surfaces

  • perhaps all of them. Matrox cards seem to have the best support in
    DFB, so they should at least have hardware surfaces in DFB.

– chris (@Christopher_Thielen)On Wed, 2002-06-19 at 19:05, Bilal Khan wrote:

Assuming I managed to get item (1) resolved, i.e.
get SDL to run over directFB, would hardware surfaces
and double buffering become supported?

Yes, SDL must be compiled with directfb support.On Wed, Jun 19, 2002 at 10:05:01PM -0400, Bilal Khan wrote:

  1. I am trying to get SDL running over directFB.

The SDL documentation says that the driver can
be specified by setting the SDL_VIDEODRIVER
variable to “directfb”.

When I do this, all my SDL applications complain

SDL_SetError: No available video device
Could not initialize SDL: No available video device.
because
SDL_Init(SDL_INIT_VIDEO|SDL_INIT_AUDIO)==-1

Now, on the other hand, all my directFB programs
work fine. Is there something else I need to do
to hook SDL over directFB?


Joseph Carter The guy with a rocket launcher

where am I and what am I doing in this handbasket?

-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 273 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20020620/090815c8/attachment.pgp

Quoting Bilal Khan (grouptheory at hotmail.com):

Hi,

Two questions-

  1. I am trying to get SDL running over directFB.

Did the SDL configure script say “Checking for DirectFB… yes”?

  1. When running SDL over “x11” driver (rather than “directFB”)
    I note that hardware surfaces (SDL_HWSURFACE) are not supported,
    and double buffering (SDL_DOUBLEBUF) are not supported.

Assuming I managed to get item (1) resolved, i.e.
get SDL to run over directFB, would hardware surfaces
and double buffering become supported?

The DirectFB SDL backend always does hardware surfaces, even
if the application doesn’t require it :wink:

Double buffered surfaces are also always supported.–
Best regards,
Denis Oliver Kropp

.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/ |
"------------------------------------------"

                        Convergence GmbH