-
My program is a game written in c++, but I inherited clr, I want to develop some rendering work in c# through silk.net, I don't want to pass gl function pointer from c++ to c#, can silk.net help Do I do this? I know this is theoretically possible. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
All that is needed is that you are able to get the GL proc address. If you can, you can pass that into the |
Beta Was this translation helpful? Give feedback.
All that is needed is that you are able to get the GL proc address. If you can, you can pass that into the
GL.GetApi()
function, there's an overload that contains aFunc<string, nint>
that you link to the available proc address function. As long as the returned value can be cast tonint
then it should work.