//4. function to set callback // stores the address of external callback delegate, but gives to OpenGL the address of the internal one public static void gluTessCallback([In] Glu.GLUtesselator tess, int which, [In] TessCombineCallback_2 func) { unsafe { newTessCombineCallback = func; internalCombCB = new IntTessCombCB(InternalTessCombineCallback); __gluTessCallback(tess, which, internalCombCB); } }
private static extern unsafe void __gluTessCallback(Glu.GLUtesselator tess, int which, IntTessCombCB cb);