Dennis, 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: http://wiki.freepascal.org/OpenGL_Tutorial 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;
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal