PDA

View Full Version : dglOpengl hello triangle



Rodrigo Robles
30-04-2017, 04:00 PM
Guys, I'm searching for something like a dglOpengl "hello triangle" app, for Lazarus, with at least opengl 2/3 style, and initializing a linux context (multiplatform would be better), not using TOpenGL. The examples I found are really far from it. Someone has something closer to it?

Rickmeister
02-05-2017, 04:45 PM
Guys, I'm searching for something like a dglOpengl "hello triangle" app, for Lazarus, with at least opengl 2/3 style, and initializing a linux context (multiplatform would be better), not using TOpenGL. The examples I found are really far from it. Someone has something closer to it?

Free Pascal Meets SDL has a 'modern' GL tutorial (using SDL for gl initialization), and if you mix and match a little using delphigl and C/C++ tutorials (gl calls share the same name in Pascal) you might be able to work something out. Don't think I've been able to track down a GL3+ tutorial for Pascal (yet)

Rodrigo Robles
03-05-2017, 01:05 AM
Free Pascal Meets SDL has a 'modern' GL tutorial (using SDL for gl initialization), and if you mix and match a little using delphigl and C/C++ tutorials (gl calls share the same name in Pascal) you might be able to work something out. Don't think I've been able to track down a GL3+ tutorial for Pascal (yet)

Thanks for the tip! I will take a look at this!