DGL
https://delphigl.com/forum/

My OpenGL template - need to verify
https://delphigl.com/forum/viewtopic.php?f=19&t=11598
Seite 1 von 1

Autor:  SpaM [ So Jul 16, 2017 08:02 ]
Betreff des Beitrags:  My OpenGL template - need to verify

Dear OpenGL community,

I would like to show you my OpenGL template (file MyOpenGL.pas). I would be grateful if someone could verify it - mainly managing opengl functions before, while and after rendering. I want to add some another functions I fight with:
1) draw bitmap texture to 2D screen and to 3D space
2) draw texts in various fonts to 2D screen and to 3D space
3) + some more structures for 3D objects like sphere, tube etc ...
4) 3ds file loading with texture support

If someone take a look on it and help me a little, it will be great. Of course, anyone can use this template. It is simply designed for fast opengl drawing. Drawings can be managed manually or cyclic by internal timer (you can set fps to 0 or to 1 to 100). My template have callback procedure which "inform" you that you can draw now. You can contol camera like in space or like as human (with defined up vector) in various directions. I have some structures for various objects you can prepare before and than simply translate / rotate as you wish. After you render all 3D stuff, you can switch to ortho camera layer and draw to 2D screen. I think that everyone can easily understand how to work with this template.

Simple example is in file.

Dateianhänge:
Dateikommentar: Template file with example
MyOpenGL template.zip [228.46 KiB]
1013-mal heruntergeladen

Seite 1 von 1 Alle Zeiten sind UTC + 1 Stunde
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/