////////////////////////////////////////////////////////////////////////////////////////////////
 public new static void RegisterFunctions(Library lib)
 {
     _CreateTextureSource            = lib.Find <CreateTextureSourceDelegate>("Noesis_CreateTextureSource");
     _UpdateTextureSource            = lib.Find <UpdateTextureSourceDelegate>("Noesis_UpdateTextureSource");
     _RegisterTextureSourceCallbacks = lib.Find <RegisterTextureSourceCallbacksDelegate>(
         "Noesis_RegisterTextureSourceCallbacks");
 }
Beispiel #2
0
        ////////////////////////////////////////////////////////////////////////////////////////////////
        public static void RegisterFunctions(Library lib)
        {
            // register DependencyProperty
            _RegisterDependencyProperty = lib.Find <RegisterDependencyPropertyDelegate>(
                "Noesis_RegisterDependencyProperty");

            // override PropertyMetadata
            _OverrideMetadata = lib.Find <OverrideMetadataDelegate>("Noesis_OverrideMetadata");
        }
 ////////////////////////////////////////////////////////////////////////////////////////////////
 private void RegisterFunctions(Noesis.Library lib)
 {
     _loadXAML = lib.Find<LoadXAMLDelegate>("Noesis_LoadXAML");
     _tryLoadXAML = lib.Find<LoadXAMLDelegate>("Noesis_TryLoadXAML");
     _initKernel = lib.Find<InitKernelDelegate>("Noesis_Init");
     _shutdownKernel = lib.Find<ShutdownKernelDelegate>("Noesis_Shutdown");
     _tickKernel = lib.Find<TickKernelDelegate>("Noesis_Tick");
     _registerSoftwareKeyboardCallbacks = lib.Find<RegisterSoftwareKeyboardCallbacksDelegate>(
         "Noesis_RegisterSoftwareKeyboardCallbacks");
 }
Beispiel #4
0
        ////////////////////////////////////////////////////////////////////////////////////////////////
        public static void RegisterFunctions(Library lib)
        {
            _registerEnumType             = lib.Find <RegisterEnumTypeDelegate>("Noesis_RegisterEnumType");
            _fillExtendType               = lib.Find <FillExtendTypeDelegate>("Noesis_FillExtendType");
            _instantiateExtend            = lib.Find <InstantiateExtendDelegate>("Noesis_InstantiateExtend");
            _launchPropertyChangedEvent   = lib.Find <LaunchPropertyChangedEventDelegate>("Noesis_LaunchPropertyChangedEvent");
            _launchCollectionChangedEvent = lib.Find <LaunchCollectionChangedEventDelegate>("Noesis_LaunchCollectionChangedEvent");
            _getResourceKeyType           = lib.Find <GetResourceKeyTypeDelegate>("Noesis_GetResourceKeyType");
            _registerReflectionCallbacks  = lib.Find <RegisterReflectionCallbacksDelegate>("Noesis_RegisterReflectionCallbacks");

            DependencyObject.RegisterFunctions(lib);
            DependencyProperty.RegisterFunctions(lib);
            PropertyMetadata.RegisterFunctions(lib);
            UIPropertyMetadata.RegisterFunctions(lib);
            FrameworkPropertyMetadata.RegisterFunctions(lib);
        }
 ////////////////////////////////////////////////////////////////////////////////////////////////
 public new static void RegisterFunctions(Library lib)
 {
     _CreateFrameworkPropertyMetadata = lib.Find <CreateFrameworkPropertyMetadataDelegate>(
         "Noesis_CreateFrameworkPropertyMetadata");
 }
 public static void RegisterFunctions(Library lib)
 {
     _noesisLogInfo    = lib.Find <NoesisLogInfoDelegate>("Noesis_LogInfo");
     _noesisLogWarning = lib.Find <NoesisLogWarningDelegate>("Noesis_LogWarning");
 }
 ////////////////////////////////////////////////////////////////////////////////////////////////
 public static void RegisterFunctions(Library lib)
 {
     _registerErrorCallback    = lib.Find <RegisterErrorCallbackDelegate>("Noesis_RegisterErrorCallback");
     _noesisCppSetPendingError = lib.Find <NoesisCppSetPendingErrorDelegate>("Noesis_CppSetPendingError");
     RegisterCallback();
 }
        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);
        }