public static void UnregisterFunctions()
        {
            _getRenderCallback           = null;
            _createRenderer              = null;
            _notifyDestroyRenderer       = null;
            _setRendererSurfaceSize      = null;
            _setRendererAntialiasingMode = null;
            _setRendererTessMode         = null;
            _setRendererTessQuality      = null;
            _setRendererFlags            = null;
            _updateRenderer              = null;
            _waitUpdateRenderer          = null;
            _bindRenderingEvent          = null;
            _unbindRenderingEvent        = null;
            _hitTest          = null;
            _mouseButtonDown  = null;
            _mouseButtonUp    = null;
            _mouseDoubleClick = null;
            _mouseMove        = null;
            _mouseWheel       = null;
            _keyDown          = null;
            _keyUp            = null;
            _char             = null;
            _activate         = null;
            _deactivate       = null;

            TextureSource.UnregisterFunctions();
        }
        public static void RegisterFunctions(Library lib)
        {
            _getRenderCallback           = lib.Find <GetRenderCallbackDelegate>("Noesis_GetRenderCallback");
            _createRenderer              = lib.Find <CreateRendererDelegate>("Noesis_CreateRenderer");
            _notifyDestroyRenderer       = lib.Find <NotifyDestroyRendererDelegate>("Noesis_NotifyDestroyRenderer");
            _setRendererSurfaceSize      = lib.Find <SetRendererSurfaceSizeDelegate>("Noesis_RendererSurfaceSize");
            _setRendererAntialiasingMode = lib.Find <SetRendererAntialiasingModeDelegate>("Noesis_RendererAntialiasingMode");
            _setRendererTessMode         = lib.Find <SetRendererTessModeDelegate>("Noesis_RendererTessMode");
            _setRendererTessQuality      = lib.Find <SetRendererTessQualityDelegate>("Noesis_RendererTessQuality");
            _setRendererFlags            = lib.Find <SetRendererFlagsDelegate>("Noesis_RendererFlags");
            _updateRenderer              = lib.Find <UpdateRendererDelegate>("Noesis_UpdateRenderer");
            _waitUpdateRenderer          = lib.Find <WaitUpdateRendererDelegate>("Noesis_WaitUpdateRenderer");
            _bindRenderingEvent          = lib.Find <BindRenderingEventDelegate>("Noesis_BindRenderingEvent");
            _unbindRenderingEvent        = lib.Find <UnbindRenderingEventDelegate>("Noesis_UnbindRenderingEvent");
            _hitTest          = lib.Find <HitTestDelegate>("Noesis_HitTest");
            _mouseButtonDown  = lib.Find <MouseButtonDownDelegate>("Noesis_MouseButtonDown");
            _mouseButtonUp    = lib.Find <MouseButtonUpDelegate>("Noesis_MouseButtonUp");
            _mouseDoubleClick = lib.Find <MouseDoubleClickDelegate>("Noesis_MouseDoubleClick");
            _mouseMove        = lib.Find <MouseMoveDelegate>("Noesis_MouseMove");
            _mouseWheel       = lib.Find <MouseWheelDelegate>("Noesis_MouseWheel");
            _touchDown        = lib.Find <TouchDownDelegate>("Noesis_TouchDown");
            _touchMove        = lib.Find <TouchMoveDelegate>("Noesis_TouchMove");
            _touchUp          = lib.Find <TouchUpDelegate>("Noesis_TouchUp");
            _keyDown          = lib.Find <KeyDownDelegate>("Noesis_KeyDown");
            _keyUp            = lib.Find <KeyUpDelegate>("Noesis_KeyUp");
            _char             = lib.Find <CharDelegate>("Noesis_Char");
            _activate         = lib.Find <ActivateDelegate>("Noesis_Activate");
            _deactivate       = lib.Find <DeactivateDelegate>("Noesis_Deactivate");

            TextureSource.RegisterFunctions(lib);
        }
예제 #3
0
 internal static HandleRef getCPtr(TextureSource obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }