private IntPtr OnCallbackIntPtr(CSN_INTPTR_METHOD method, IntPtr arg1, int arg2) { switch (method) { case CSN_INTPTR_METHOD.GET_MATERIAL: return GetMaterial(arg2).Raw; case CSN_INTPTR_METHOD.GET_PARENT: return Parent.Raw; case CSN_INTPTR_METHOD.GET_TRIANGLE_SELECTOR: return TriangleSelector.Raw; } return IntPtr.Zero; }
static extern IntPtr CSN_PINTPTR_METHODS(IntPtr csn, CSN_INTPTR_METHOD method, IntPtr arg1, int arg2);