Lazarus
Programming => General => Topic started by: Tommi on September 29, 2021, 11:50:12 am
-
Hi everyone,
I am trying to test beer example in glscene package. I installed GLScene from Online Package Manager and (after some minor modification) I compiled beer example (In attachment).
The proble is that it flickers very strongly.
Could you suggest to me why ?
Thank you
-
Solved:
Lazarus 2.0.12 and GLScene 1.4 are required.
Refer to this istructions during GLScene install:
The progress below:
1.RunTime:
GLCrossPlatform and GLUtils
for line 656 path := ExtractFilePath(ParamStrUTF8(0));
use Unit LazUTF8
for line 904 and same other SetCurrentDirUTF8(path);
use Unit LazFileUtils
GLWindowsFont
for line 299 GetTextMetricsW(DC, tm);
change to GetTextMetricsW(DC, @tm);
compile
2.Install DesignTime
(Taken from here: https://sourceforge.net/p/glscene/discussion/lazarus/thread/1e1108f1c5/#a4e6)
To open examples contained in "GLSceneLCL\Samples\Lazarus" it is usually required to add GLSceneLCL_RunTime under required packages into Projects Analyzer, after that it, is required to remove GLSceneLCL_RunTime from uses into lpr.