Forum > OpenGL

Platform independant FPC + OpenGL application .

(1/1)

Wodzu:
Hi guys.

I am playing few months with OpenGL (under Win32) in conjunction with glut library but I would like to abandon the glut. The more I am using it the more I do not like it.

Could someone point me into an example of skeleton OpenGL application without glut which will work on Windows, Linux and Mac?

I would like to see how to construct a main loop, how to work with keyboard and mouse. I know that probably GLScene have something like this but I like to know how everything works from a scratch, not wrapped in some component. But if there is no other choice I browse the GLScene sources...

thanks for your time:)

Ocye:
Very nice tutorials from simple creating OpenGL-context to complex stuff, but only in German: http://wiki.delphigl.com/index.php/Tutorial

Leledumbo:
Lazarus already includes lazopenglcontext package under its components directory. You can use it and all form's event can be used as usual. Just fill OnPaint with what you want to display though OpenGL functions. Take a look at the example, it's very simple.

Wodzu:
Thanks very much!

I will check both things but I think that the package mentioned by Leledumbo is exactly what I want.

Navigation

[0] Message Index

Go to full version