0

I have a C# gui with a c++ windows dll that does opengl stuff. I want to run this under Linux with Mono, and am planning making the c++ dll into a true cross platform dll / .so with native Unix opengl initialization.

Instead of learning QT or WxWidgets, I want to continue to use the C# gui. How do I use the windows form HWNDs that I currently pass to windows opengl glw and also pass them to Linux opengl glx and convert to Window object?

1 Answer 1

2

How do I use the windows form HWNDs that I currently pass to windows opengl glw and also pass them to Linux opengl glx and convert to Window object?

Uh, you don't/can't.

You'll have to implement two code paths, one covering GLX and one covering Windows GDI. Conceptually wgl and GLX are similar (wgl has been designed following GLX). But the internal data structures are very different.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.