Hi ,guys,
I am making a program on LINUX , with MONO as GUI and OpenGL/X11/C++ as renderer . The connection between them is P/Invoke.
Worrying about effeciency , I decide not to use CSharp wrapper of OpenGL directly.So the structure is like this :
--------------------------------------------------
MONO C# GUI
/ CSharp proxy class
/
P/Invoke {
\
\ C++ interface class
X11/C++ & OpenGL/C++
-------------------------------------------------
The P/Invoke layer just map functions like :
Init(..) , Update(..) , Render(..) , LoadModel(..)
RemoveModel(..)....
NOT the tiny functions like : glColor(..) , glVertex(..)...
Which sounds good.
The only problem is that , I must pass the MONO window handle(or ptr or so so..) to the renderer system .
X11/C++ can create its own window by calling XCreateWindow(..) , but I already have a window ...
Only I know is that , my mono is bases on X11 , which is comptable with my openGL/C++ layer.
So how to do that ?
THX.