[Lazarus] opengl

Andrea Mauri andrea.mauri.75 at gmail.com
Wed Mar 19 18:47:24 CET 2008


I am a newbie, so I am not sure I am writing something stupid or not.
But what about GtkGLExt (http://www.k-3d.org/gtkglext/Main_Page) can be 
used in some way with lazarus?
Best regards,
Andrea

Mattias Gaertner ha scritto:
> On Wed, 05 Mar 2008 10:53:01 +0100
> Andrea Mauri <andrea.mauri.75 at gmail.com> wrote:
>
>   
>> I will try Envy in order to install the right drivers for my graphics
>> card. Anyway I have two more questions:
>> 1. TOpenGLControl works properly on my PC (ATI Radeon™ HD 2400 PRO) 
>> using GTK but not GTK2, it could be a problem of graphics card
>> drivers? Why if I have not installed the correct drivers
>> TOpenGLControl works using GTK?
>> 2. I have another PC with Ubuntu and I have the same behaviour, 
>> TOpenGLControl  works using GTK but not GTK2, how can I check what is
>> my graphics card?
>>     
>
> The gtk1 implementation uses get_xvisualinfo to retrieve an unspecific
> visual. The gtk2 implementation uses glXChooseVisual, which takes a
> filter. The default filter is to search for a double buffered, RGBA
> visual with stencil buffer. Maybe mesa does not provide such a visual.
> I added an exception, when no such visual was found.
>
> Either the defaults must be changed or a fall back mechanism is needed.
>
>
> Mattias
>
> _______________________________________________
> Lazarus mailing list
> Lazarus at lazarus.freepascal.org
> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
>   




More information about the Lazarus mailing list