Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2014-05

OpenGL

4 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Chavoux Luyt

Hi Lazarati

I have two questions:
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.
3. Ultimately I would like to be able to write and use a game engine based on OpenGL (in Pascal if possible) including sound etc.

Thanks
Chavoux
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20140528/0bdee917/attachment.html>

Reply by email

Dmitry Boyarintsev
to Chavoux Luyt
Chavoux Luyt wrote
I have two questions:

Here're two answers:

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.

http://wiki.freepascal.org/OpenGL

2. I know there are (or have been) various OpenGL Lazarus components (e.g.

Show quoted text 5 lines
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.

http://wiki.freepascal.org/Game_Engine
http://wiki.freepascal.org/FPC_and_SDL
Install the one you find the easiest tutorial for.

3. Ultimately I would like to be able to write and use a game engine based on OpenGL (in Pascal if possible) including sound etc.

http://wiki.freepascal.org/Audio_libraries

thanks,
Dmitry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20140528/d1e7fe39/attachment.html>

Reply by email

leledumbo
to Chavoux Luyt: Hi Lazarati I have two questions: 1. Have there ever been a Free Pascal implementation of…
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.

Show quoted text 5 lines
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 .

Reply by email

Philippe
to Chavoux Luyt: Hi Lazarati I have two questions: 1. Have there ever been a Free Pascal implementation of…

I am using FREEGLUT under LAZARUS/FPC. No problem. Not very complicate!!

If it fits to your purpose, I do not have a big
experience, bug I may help you to start, even in french if better!

Em

Chavoux Luyt wrote
Hi Lazarati I have

two questions:

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.

3. Ultimately I would like to be able to write and use a game

engine based on OpenGL (in Pascal if possible) including sound etc.

Show quoted text 7 lines
Thanks Chavoux --

Reply by email