[Lazarus] opengl

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Feb 29 20:49:56 CET 2008


On Fri, 29 Feb 2008 16:41:58 +0100
Andrea Mauri <andrea.mauri.75 at gmail.com> wrote:

> 
> > It works here under gtk2.
> >   
> I am not able to use TOpenGLControl on GTK2, I can place it on a
> form, I can compile it but it doesn't run. After pressing F9 the
> project is compiled successfully then launched and immediately the
> "Execution Stopped" message is showed up.
> I have also seen in the OpenGLContext unit these lines:
> [...]
>   Author: Mattias Gaertner
> 
>   Abstract:
>     TOpenGLControl is a LCL control with an opengl context.
>     It works under the following platforms:
>       - gtk with glx    : full
> *      - gtk2 with glx   : started, not yet working*
>       - carbon with agl : full
>       - windows with wgl: full
> }                   

I changed this to full.
             
 
> > I know of a refresh problem when maximizing, but otherwise it
> > should work. What problems do you have?  
> When I put a TOpenGLControl on a form (windows) I obtain this:

What lazarus version are you using? 32 or 64 bit? What fpc version?
Can you try the svn version or at least the daily snapshot?
I didn't try the control under windows recently, so maybe some win32
devel broke it unknowingly. I will try to find a windows machine to
test.

 
> And this when I run my project:
> 
> I didn't see the same behaviour using GTK, using GTK it seems to work 
> properly.

You need a recent lazarus 0.9.25 version to use the openglcontrol
under gtk2.


Mattias



More information about the Lazarus mailing list