[Lazarus] OpenGL

leledumbo leledumbo_cool at yahoo.co.id
Thu May 29 09:40:32 CEST 2014


> 1. Have there ever been a Free Pascal implementation of OpenGL? I would
like to learn OpenGL and was wondering if I will be forced to use C++/C or
if there are other options.
> 2. I know there are (or have been) various OpenGL Lazarus components (e.g.
> GLScene, NX etc) and game engines? (JEDI SDL != OpenGL?). Which would you
> advice me to install/use for learning OpenGL and why? I am not asking for
> a flame-war, so please state when it is just your opinion or else give a
> reason.

Based on your 2nd question, you should've known that OpenGL is perfectly
accessible from Pascal.
nxPascal does use OpenGL as backend, Kambi VRML also utilizes OpenGL for
portability, and others as well (some also supports DirectX though).

If you just want to learn OpenGL, I don't think we have Pascal specific
complete tutorial as OpenGL is just an API and is language independent,
though designed with C interface. So OpenGL own tutorial and reference
(which is written with C in mind) should be applicable, provided you
understand C and know how to convert C constructs to Pascal.

I don't suggest using game engine, as it will be too complicated for
learning purpose. Pure OpenGL with GLFW frontend (I also don't suggest GLUT)
is good for learning. At least using pure OpenGL can get you understand the
rendering pipeline, matrices (projection, rotation, etc), coloring, shading,
picking (for input and feedback), etc.



--
View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-OpenGL-tp4037158p4037165.html
Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com.




More information about the Lazarus mailing list