Reusing OpenGL program

Technical discussions
Post Reply
Josh Hiddins
Posts: 1
Joined: Wed Apr 21, 2021 11:14 pm

Reusing OpenGL program

Post by Josh Hiddins »

Hello,
I have and OpenGL-based modelling application. Can I reuse my gl code in dgkernel?

Thank you

Prashant Kande
Posts: 121
Joined: Mon Apr 04, 2016 4:55 am

Re: Reusing OpenGL program

Post by Prashant Kande »

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

Post Reply