Quoting Ville Syrj�l� ([EMAIL PROTECTED]):
> I have attached two patches that should allow resizing of GL windows. One
> patch is for DirectFBGL and the other is for Mesa.
> 
> I reset the drawable size and cliprect coordinates in set_drawable_flag().

Nice, commit that ;)

> The Mesa patch will make sure that Mesa resets the viewport according to
> the new drawable size.

I'm not sure if that's right, shouldn't the application define the viewport?

> I also added a listener to resize the depth buffer surface. There's no way
> to know if the dfb_surface_reformat() succeeded in the listener but the
> next dfb_surface_hardware_lock() should fail if the reallocation failed...
> I think :)

That's ok.

> Apart from considerable flashing during resizing seems to work fine. I'm
> not sure what to do about the flashing...

You do resizing using the wm hack, don't you?

It always flashes because 1) there's no synchronization between resizing
and flipping and 2) there are two resizes immediately after each other
(one for each axis).

Resizing via application is much better because 1) the application can make
sure that the window content is correct before the next flip would occur,
2) mouse movements can be compressed causing a single resize only.

I would like to integrate this handling into a window manager core module
which would run in each application.

> I've also ported freeglut to DirectFBGL. freeglut is a full featured GLUT
> implementation and it draws menus and text using OpenGL so it's mostly
> windowing system independent. The window resize stuff is required to make
> freeglut menus behave correctly.
> 
> I was too lazy to generate a patch right now so I dumped the tarball to
> http://www.sci.fi/~syrjala/gl/. Use "./configure --enable-directfb" to
> enable DirectFBGL support.

Didn't know of that yet.

-- 
Best regards,
  Denis Oliver Kropp

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

                            Convergence GmbH


-- 
Info:  To unsubscribe send a mail to [EMAIL PROTECTED] with 
"unsubscribe directfb-dev" as subject.

Reply via email to