Beispiel #1
0
        public TexturePtr loadImage(String name, String group, Image img, TextureType texType = TextureType.TEX_TYPE_2D, int numMipmaps = -1, float gamma = 1.0f, bool isAlpha = false, PixelFormat desiredFormat = PixelFormat.PF_UNKNOWN, bool hwGamma = false)
        {
            TexturePtr ptr = getObject(TextureManager_loadImage(name, group, img.Ptr, texType, numMipmaps, gamma, isAlpha, desiredFormat, hwGamma, ProcessWrapperObjectCallback));

            OgreExceptionManager.fireAnyException();
            return(ptr);
        }
        public bool hasNamedConstant(String name)
        {
            var ret = GpuProgramParameters_hasNamedConstant(ptr, name);

            OgreExceptionManager.fireAnyException();
            return(ret);
        }
Beispiel #3
0
        public Quaternion getCustomParameter(int index)
        {
            var result = SubEntity_getCustomParameter(subEntity, new IntPtr(index));

            OgreExceptionManager.fireAnyException();
            return(result);
        }
Beispiel #4
0
        public OgreDataStreamPtr openResource(String resourceName, String groupName, bool searchGroupsIfNotFound)
        {
            IntPtr ptr = ResourceGroupManager_openResource(resourceName, groupName, searchGroupsIfNotFound, OgreDataStream.ProcessWrapperObjectCallback);

            OgreExceptionManager.fireAnyException();
            return(OgreDataStream.getObject(ptr));
        }
Beispiel #5
0
        public TexturePtr createManual(String name, String group, TextureType texType, uint width, uint height, uint depth, int num_mips, PixelFormat format, TextureUsage usage, ManagedManualResourceLoader resourceLoader, bool hwGammaCorrection, uint fsaa, String fsaaHint = "")
        {
            IntPtr     resourceLoaderPtr = resourceLoader != null ? resourceLoader.Ptr : IntPtr.Zero;
            TexturePtr ptr = getObject(TextureManager_createManual(name, group, texType, width, height, depth, num_mips, format, usage, resourceLoaderPtr, hwGammaCorrection, fsaa, fsaaHint, ProcessWrapperObjectCallback));

            OgreExceptionManager.fireAnyException();
            return(ptr);
        }
 public void setConstant(UIntPtr index, Vector2 vec)
 {
     GpuProgramParameters_setConstant5(ptr, index, vec);
     OgreExceptionManager.fireAnyException();
 }
 public void addSharedParameters(GpuSharedParametersPtr sharedParams)
 {
     GpuProgramParameters_addSharedParameters(ptr, sharedParams.HeapSharedPtr);
     OgreExceptionManager.fireAnyException();
 }
 public unsafe void setNamedConstant(String name, double *val, UIntPtr count)
 {
     GpuProgramParameters_setNamedConstant9(ptr, name, val, count);
     OgreExceptionManager.fireAnyException();
 }
 public void setConstant(UIntPtr index, float val)
 {
     GpuProgramParameters_setConstant1(ptr, index, val);
     OgreExceptionManager.fireAnyException();
 }
 public void setNamedConstant(String name, Vector2 vec)
 {
     GpuProgramParameters_setNamedConstant5(ptr, name, vec);
     OgreExceptionManager.fireAnyException();
 }
 public void setNamedConstant(String name, Color colour)
 {
     GpuProgramParameters_setNamedConstant6(ptr, name, colour);
     OgreExceptionManager.fireAnyException();
 }
 public void setConstant(UIntPtr index, Color colour)
 {
     GpuProgramParameters_setConstant6(ptr, index, colour);
     OgreExceptionManager.fireAnyException();
 }
 public void setNamedConstant(String name, int val)
 {
     GpuProgramParameters_setNamedConstant2(ptr, name, val);
     OgreExceptionManager.fireAnyException();
 }
Beispiel #14
0
 public void loadPlugin(String pluginName)
 {
     Root_loadPlugin(ogreRoot, pluginName);
     OgreExceptionManager.fireAnyException();
 }
 public void setNamedAutoConstantReal(String name, AutoConstantType acType, float rData)
 {
     GpuProgramParameters_setNamedAutoConstantReal(ptr, name, acType, rData);
     OgreExceptionManager.fireAnyException();
 }
 public void setNamedAutoConstant(String name, AutoConstantType acType, ulong extraInfo1, ulong extraInfo2)
 {
     GpuProgramParameters_setNamedAutoConstant3(ptr, name, acType, new UIntPtr(extraInfo1), new UIntPtr(extraInfo2));
     OgreExceptionManager.fireAnyException();
 }
 public void setNamedAutoConstant(String name, AutoConstantType acType)
 {
     GpuProgramParameters_setNamedAutoConstant1(ptr, name, acType);
     OgreExceptionManager.fireAnyException();
 }
 public unsafe void setConstant(UIntPtr index, double *val, UIntPtr count)
 {
     GpuProgramParameters_setConstant9(ptr, index, val, count);
     OgreExceptionManager.fireAnyException();
 }
Beispiel #19
0
 static Root()
 {
     OgreExceptionManager.initializeOgreExceptionManager();
 }
 public void addSharedParameters(String sharedParamsName)
 {
     GpuProgramParameters_addSharedParametersName(ptr, sharedParamsName);
     OgreExceptionManager.fireAnyException();
 }