Registriert: So Jan 15, 2017 18:52 Beiträge: 14
Programmiersprache: Delphi
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]
1236-mal heruntergeladen
Mitglieder in diesem Forum: 0 Mitglieder und 3 Gäste
Du darfst keine neuen Themen in diesem Forum erstellen. Du darfst keine Antworten zu Themen in diesem Forum erstellen. Du darfst deine Beiträge in diesem Forum nicht ändern. Du darfst deine Beiträge in diesem Forum nicht löschen. Du darfst keine Dateianhänge in diesem Forum erstellen.