[fpc-pascal] Announcement GLPT

Anthony Walter sysrpl at gmail.com
Tue Sep 25 13:14:47 CEST 2018


If you want to embed OpenGL in your window, then there is already
TOpenGLControl. It's included with Lazarus and is in the components folder.

More here:


This library is not meant for embedding, it is meant as a native toolkit to
create a window and associate an OpenGL context on multiple platforms. The
same as GLUT or SDL, but without the dll / shared library dependency. If
written correctly, it would also provide a bit more ease of use because it
would also expose native Pascal types, rather than standard C types.

Examples of improvements with Pascal types over C types might include:

Pascal sets and enumerations instead of C int bit flags.
Pascal style events instead of C style callbacks.
Pascal style interfaces instead of C style records.

Such as this arbitrary made up code:

Window.Style := [wsBorderless, wsCentered];
Window.OnMouseMove := MouseMoveHandler;
Frame := Window as IFrame;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20180925/a568558b/attachment.html>

More information about the fpc-pascal mailing list