Beispiel #1
0
        public ResourcePtr load(string name, string group, bool isManual, ManualResourceLoader loader, NameValuePairList loadParams, bool backgroundThread)
        {
            ResourcePtr ret = new ResourcePtr(OgrePINVOKE.ResourceManager_load__SWIG_0(swigCPtr, name, group, isManual, ManualResourceLoader.getCPtr(loader), NameValuePairList.getCPtr(loadParams), backgroundThread), true);

            if (OgrePINVOKE.SWIGPendingException.Pending)
            {
                throw OgrePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public MaterialPtr create(string name, string group, bool isManual, ManualResourceLoader loader)
        {
            MaterialPtr ret = new MaterialPtr(OgrePINVOKE.MaterialManager_create__SWIG_1(swigCPtr, name, group, isManual, ManualResourceLoader.getCPtr(loader)), true);

            if (OgrePINVOKE.SWIGPendingException.Pending)
            {
                throw OgrePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #3
0
        public ResourcePtr load(string name, string group, bool isManual, ManualResourceLoader loader)
        {
            ResourcePtr ret = new ResourcePtr(OgrePINVOKE.ResourceManager_load__SWIG_2(swigCPtr, name, group, isManual, ManualResourceLoader.getCPtr(loader)), true);

            if (OgrePINVOKE.SWIGPendingException.Pending)
            {
                throw OgrePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #4
0
        public ResourcePtr createResource(string name, string group, bool isManual, ManualResourceLoader loader, NameValuePairList createParams)
        {
            ResourcePtr ret = new ResourcePtr(OgrePINVOKE.ResourceManager_createResource__SWIG_0(swigCPtr, name, group, isManual, ManualResourceLoader.getCPtr(loader), NameValuePairList.getCPtr(createParams)), true);

            if (OgrePINVOKE.SWIGPendingException.Pending)
            {
                throw OgrePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #5
0
        public TextureSceneView(SceneViewController controller, CameraMover cameraMover, String name, BackgroundScene background, int zIndexStart, int width, int height)
            : base(controller, cameraMover, name, background, zIndexStart)
        {
            resourceLoader   = new ManualResourceLoader(this);
            this.TextureName = name;
            texture          = TextureManager.getInstance().createManual(name, MyGUIInterface.Instance.CommonResourceGroup.FullName, TextureType.TEX_TYPE_2D, (uint)width, (uint)height, 1, 0, ogreTextureFormat, TextureUsage.TU_RENDERTARGET, resourceLoader, false, 0);

            pixelBuffer          = texture.Value.getBuffer();
            renderTexture        = pixelBuffer.Value.getRenderTarget();
            this.RenderingEnded += TextureSceneView_RenderingEnded;

            rendererWindow       = new ManualWindow(renderTexture);
            this.RendererWindow  = rendererWindow;
            this.ClearEveryFrame = true;

            this.BackColor = new Engine.Color(0, 0, 0, 0);
        }
        public virtual SWIGTYPE_p_Ogre__WorkQueue__RequestID prepare(string resType, string name, string group, bool isManual, ManualResourceLoader loader, NameValuePairList loadParams)
        {
            SWIGTYPE_p_Ogre__WorkQueue__RequestID ret = new SWIGTYPE_p_Ogre__WorkQueue__RequestID(OgrePINVOKE.ResourceBackgroundQueue_prepare__SWIG_1(swigCPtr, resType, name, group, isManual, ManualResourceLoader.getCPtr(loader), NameValuePairList.getCPtr(loadParams)), true);

            if (OgrePINVOKE.SWIGPendingException.Pending)
            {
                throw OgrePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public override HighLevelGpuProgram create(ResourceManager creator, string name, ulong handle, string group, bool isManual, ManualResourceLoader loader)
        {
            global::System.IntPtr cPtr = OgrePINVOKE.UnifiedHighLevelGpuProgramFactory_create(swigCPtr, ResourceManager.getCPtr(creator), name, handle, group, isManual, ManualResourceLoader.getCPtr(loader));
            HighLevelGpuProgram   ret  = (cPtr == global::System.IntPtr.Zero) ? null : new HighLevelGpuProgram(cPtr, false);

            if (OgrePINVOKE.SWIGPendingException.Pending)
            {
                throw OgrePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ManualResourceLoader obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
Beispiel #9
0
        public SWIGTYPE_p_Ogre__SharedPtrT_Ogre__Font_t create(string name, string group, bool isManual, ManualResourceLoader loader)
        {
            SWIGTYPE_p_Ogre__SharedPtrT_Ogre__Font_t ret = new SWIGTYPE_p_Ogre__SharedPtrT_Ogre__Font_t(OgreOverlayPINVOKE.FontManager_create__SWIG_1(swigCPtr, name, group, isManual, ManualResourceLoader.getCPtr(loader)), true);

            if (OgreOverlayPINVOKE.SWIGPendingException.Pending)
            {
                throw OgreOverlayPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #10
0
 public Font(ResourceManager creator, string name, ulong handle, string group, bool isManual, ManualResourceLoader loader) : this(OgreOverlayPINVOKE.new_Font__SWIG_0(ResourceManager.getCPtr(creator), name, handle, group, isManual, ManualResourceLoader.getCPtr(loader)), true)
 {
     if (OgreOverlayPINVOKE.SWIGPendingException.Pending)
     {
         throw OgreOverlayPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public void declareResource(string name, string resourceType, string groupName, ManualResourceLoader loader)
 {
     OgrePINVOKE.ResourceGroupManager_declareResource__SWIG_4(swigCPtr, name, resourceType, groupName, ManualResourceLoader.getCPtr(loader));
     if (OgrePINVOKE.SWIGPendingException.Pending)
     {
         throw OgrePINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #12
0
        public TexturePtr createManual(string name, string group, TextureType texType, uint width, uint height, int numMipmaps, PixelFormat format, int usage, ManualResourceLoader loader)
        {
            TexturePtr ret = new TexturePtr(OgrePINVOKE.TextureManager_createManual__SWIG_9(swigCPtr, name, group, (int)texType, width, height, numMipmaps, (int)format, usage, ManualResourceLoader.getCPtr(loader)), true);

            if (OgrePINVOKE.SWIGPendingException.Pending)
            {
                throw OgrePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #13
0
        public virtual TexturePtr createManual(string name, string group, TextureType texType, uint width, uint height, uint depth, int numMipmaps, PixelFormat format, int usage, ManualResourceLoader loader, bool hwGammaCorrection, uint fsaa, string fsaaHint)
        {
            TexturePtr ret = new TexturePtr(OgrePINVOKE.TextureManager_createManual__SWIG_0(swigCPtr, name, group, (int)texType, width, height, depth, numMipmaps, (int)format, usage, ManualResourceLoader.getCPtr(loader), hwGammaCorrection, fsaa, fsaaHint), true);

            if (OgrePINVOKE.SWIGPendingException.Pending)
            {
                throw OgrePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #14
0
        public SWIGTYPE_p_std__pairT_Ogre__SharedPtrT_Ogre__Resource_t_bool_t createOrRetrieve(string name, string group, bool isManual, ManualResourceLoader loader, NameValuePairList createParams, TextureType texType, int numMipmaps, float gamma)
        {
            SWIGTYPE_p_std__pairT_Ogre__SharedPtrT_Ogre__Resource_t_bool_t ret = new SWIGTYPE_p_std__pairT_Ogre__SharedPtrT_Ogre__Resource_t_bool_t(OgrePINVOKE.TextureManager_createOrRetrieve__SWIG_4(swigCPtr, name, group, isManual, ManualResourceLoader.getCPtr(loader), NameValuePairList.getCPtr(createParams), (int)texType, numMipmaps, gamma), true);

            if (OgrePINVOKE.SWIGPendingException.Pending)
            {
                throw OgrePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public virtual SWIGTYPE_p_Ogre__WorkQueue__RequestID load(string resType, string name, string group, bool isManual, ManualResourceLoader loader)
        {
            SWIGTYPE_p_Ogre__WorkQueue__RequestID ret = new SWIGTYPE_p_Ogre__WorkQueue__RequestID(OgrePINVOKE.ResourceBackgroundQueue_load__SWIG_2(swigCPtr, resType, name, group, isManual, ManualResourceLoader.getCPtr(loader)), true);

            if (OgrePINVOKE.SWIGPendingException.Pending)
            {
                throw OgrePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #16
0
        public virtual Resource createImpl(string name, ulong handle, string group, bool arg3, ManualResourceLoader arg4, NameValuePairList arg5)
        {
            global::System.IntPtr cPtr = OgrePINVOKE.DefaultTextureManager_createImpl(swigCPtr, name, handle, group, arg3, ManualResourceLoader.getCPtr(arg4), NameValuePairList.getCPtr(arg5));
            Resource ret = (cPtr == global::System.IntPtr.Zero) ? null : new Resource(cPtr, false);

            if (OgrePINVOKE.SWIGPendingException.Pending)
            {
                throw OgrePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #17
0
        public SWIGTYPE_p_std__pairT_Ogre__SharedPtrT_Ogre__Resource_t_bool_t createOrRetrieve(string name, string group, bool isManual, ManualResourceLoader loader, NameValuePairList createParams)
        {
            SWIGTYPE_p_std__pairT_Ogre__SharedPtrT_Ogre__Resource_t_bool_t ret = new SWIGTYPE_p_std__pairT_Ogre__SharedPtrT_Ogre__Resource_t_bool_t(OgrePINVOKE.ResourceManager_createOrRetrieve__SWIG_0(swigCPtr, name, group, isManual, ManualResourceLoader.getCPtr(loader), NameValuePairList.getCPtr(createParams)), true);

            if (OgrePINVOKE.SWIGPendingException.Pending)
            {
                throw OgrePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #18
0
        public virtual ResourcePtr create(string name, string group, GpuProgramType gptype, string syntaxCode, bool isManual, ManualResourceLoader loader)
        {
            ResourcePtr ret = new ResourcePtr(OgrePINVOKE.GpuProgramManager_create__SWIG_0(swigCPtr, name, group, (int)gptype, syntaxCode, isManual, ManualResourceLoader.getCPtr(loader)), true);

            if (OgrePINVOKE.SWIGPendingException.Pending)
            {
                throw OgrePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #19
0
 public UnifiedHighLevelGpuProgram(ResourceManager creator, string name, ulong handle, string group, bool isManual, ManualResourceLoader loader) : this(OgrePINVOKE.new_UnifiedHighLevelGpuProgram__SWIG_0(ResourceManager.getCPtr(creator), name, handle, group, isManual, ManualResourceLoader.getCPtr(loader)), true)
 {
     if (OgrePINVOKE.SWIGPendingException.Pending)
     {
         throw OgrePINVOKE.SWIGPendingException.Retrieve();
     }
 }