[Lazarus] opengl

Andrea Mauri andrea.mauri.75 at gmail.com
Sat Mar 1 00:43:23 CET 2008


32 bit

Mattias Gaertner ha scritto:
> On Fri, 29 Feb 2008 21:49:53 +0100
> Andrea Mauri <andrea.mauri.75 at gmail.com> wrote:
>
>   
>> Sorry, my fault. FPC 2.2. Lazarus svn.
>>     
>
> 32 or 64bit?
>
> Can some windows user try to run the
> lazarus\examples\openglcontrol\openglcontrol_demo.lpi
> ?
>
>
> Mattias
>
>
>
>   
>> andrea
>>
>>
>> Mattias Gaertner ha scritto:
>>     
>>> 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
>>> _______________________________________________
>>> Lazarus mailing list
>>> Lazarus at lazarus.freepascal.org
>>> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
>>>
>>>   
>>>       
>>     
> _______________________________________________
> Lazarus mailing list
> Lazarus at lazarus.freepascal.org
> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
>
>   




More information about the Lazarus mailing list