GTK-SDL app over DirectFB

Hi all,

I need to draw SDL video within GTK application
which runs over DirectFB.
Over X, I could able to draw within GTK application
by using SDL_WINDOWID environment variable.
Over DirectFB, I could able to draw within the same
DirectFB screen but outside GTK application…! i.e,
It is running in a seperate window in one screen. we
could able to move GTK application without
disturbing SDL app.
I checked in
SDL/src/video/directfb/SDL_DirectFB_video.c . In
this, there is no implementation for SDL_WINDOWID.

Any suggestion to draw SDL app within GTK app over
DFB…!
Please help me to do this…!

Thanks,
Karunakaran A.

Hello !

Any suggestion to draw SDL app within GTK app over
DFB…!
Please help me to do this…!

I would use SDL as a composing engine,
blit everything you need and then blit
the final surface with a function like
draw_image or something like that
to your GTK window. I don’t know what
the name of the GTK function is,
but normally every GUI Toolkit
has a function to blit a pixelarray
to the screen.

CU