Hello,
I have and OpenGL-based modelling application. Can I reuse my gl code in dgkernel?
Thank you
Reusing OpenGL program
-
- Posts: 121
- Joined: Mon Apr 04, 2016 4:55 am
Re: Reusing OpenGL program
Hello Josh
Not directly. DGKC is two levels of abstraction above a graphics library. For the long term it would be better to recode your app using entities. If you need something quick you could use IDraw_DG interface. It "draws into an entity", which can be persisted, rendered, etc.
There is also a way of converting your gl code for rendering into a mesh. See the code snipped and discussion around in this thread
You could also access and customize the renderer code using Technology concept, but it is DirectX-based and we still have not reactivated this functionality after v6 release.
Regards
Not directly. DGKC is two levels of abstraction above a graphics library. For the long term it would be better to recode your app using entities. If you need something quick you could use IDraw_DG interface. It "draws into an entity", which can be persisted, rendered, etc.
There is also a way of converting your gl code for rendering into a mesh. See the code snipped and discussion around in this thread
You could also access and customize the renderer code using Technology concept, but it is DirectX-based and we still have not reactivated this functionality after v6 release.
Regards