Ryan Joseph wrote:
> I’m trying to learn some basics of Windows and porting some OpenGL
> code. The first step is getting an OpenGL context prepared but I’m
> already stuck here.
> 

I would recommend our Castle Game Engine
http://castle-engine.sourceforge.net/ . It can be used together with
Lazarus form (as TCastleControl, descendant from Lazarus TOpenGLControl).

Or you can use CastleWindow unit, which gives you a window with OpenGL
context, without any Lazarus/LCL dependencies. It includes TCastleWindow
class, which is kind of "modern and object-oriented GLUT". It works on
Linux, Windows, Mac OS X, Android, iOS...

You can use there high-level Castle Game Engine features for 2D and 3D
rendering, but you can also write your own direct OpenGL calls in
TCastlewindow.OnRender, OnOpen, OnClose and such callbacks.

Regards,
Michalis
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to