Many thanks for sharing your code. But I wonder that yours as well as many other OpenGL toolkits is based on dglOpenGL instead of TOpenGLContext which is part of the FCL.
adds a lot of unnecessary dependency and incompatibility. For instance, if I want to adopt one your font classes I cannot just add it. I'd rather have to read and understand the code in order to replicate it for my project.
And having a project that is "not multiplatform" contradicts the idea of Freepascal, IMHO.
Please don't read the text as an insulting. To me it's a pity that a lot of work is done for nothing.
Interesting code marcov.
I just talking about OpenGL GUI in MailList and I dont know your system can help it ot not.
Can you explain more or maybe check MailList?
The font support is based on signed distance fonts. The test project is not multiplatform (so windows only, win64 should be ok), though many units are relatively platform independent.Hi marcov, this link is invalid now.
http://www.stack.nl/~marcov/standaloneglv3.zip
(exe and source)
Here it downloads, but I have to explicitely allow it, since it contains an EXEYou're right, on the job the rules prevented the download. Thanks !
I never saw '<' or '>' in Lazarus sourececode.Those are used when defining generics (https://wiki.freepascal.org/Generics).
Does this only work in Delphi ?No, generics are also part of Free Pascal. Note that mode delphi and mode objfpc work slightly different wrt to generics.
Nearly all my code is $mode delphi. But usually it is specified in the source.
http://www.stack.nl/~marcov/standaloneglv3.zip
(exe and source)
The download works. There has been new development since then, but I don't have something I can package separately.Thanks ! I'm on the job and download ist blocked here.
Compile Project, Mode: Release, Target: /media/projects/fpc/standaloneglv3/standalonegltest: Exit code 1, Errors: 4
generics.defaults.pas(2786,31) Error: Generics without specialization cannot be used as a type for a variable
generics.defaults.pas(2784,45) Error: function header doesn't match any method of this class "class Default(TExtendedHashFactoryClass):<erroneous type>;"
generics.defaults.pas(2779,45) Error: Found declaration: class Default:TExtendedEqualityComparer$1.IExtendedEqualityComparer$1<GENERICS.DEFAULTS.TExtendedEqualityComparer$1.T>; Static;
generics.defaults.pas(810,20) Error: Found declaration: class Default(TExtendedHashFactoryClass):TExtendedEqualityComparer$1.IExtendedEqualityComparer$1<GENERICS.DEFAULTS.TExtendedEqualityComparer$1.T>; Static;
Code: [Select]generics.defaults.pas
This and other such files are already in folderAh yes, good hint. Thank you PeterX.
Example code that doesn't run with the actual Lazarus release version ( currently 3.8 )This and other such files are already in folderAh yes, good hint. Thank you PeterX.
That helped with getting through compiling all the generics related code.
I think I originally generated my fontmaps with bmfont (http://bitsquid.blogspot.com/2010/04/distance-field-based-rendering-of.html). At some point I also used Hiero, a Java thingy.Thanks for this link, I'll try that.
I must say this page still existsI think I originally generated my fontmaps with bmfont (http://bitsquid.blogspot.com/2010/04/distance-field-based-rendering-of.html). At some point I also used Hiero, a Java thingy.Thanks for this link, I'll try that.
https://web.archive.org/web/20140821105038/http://www.bitsquid.se/files/distance_field.exe.7z