public static TextureVolume Create(TextureManager manager,D3d.Format format,int width,int height,int depth,bool dynamic, bool mipmap)
        {
            TextureVolume newTexture = new TextureVolume();
            if ( newTexture.Initialize( manager,format,width,height,depth,dynamic,mipmap ) )
                return newTexture;

            return null;
        }
        public static TextureVolume Create(TextureManager manager, D3d.Format format, int width, int height, int depth, bool dynamic, bool mipmap)
        {
            TextureVolume newTexture = new TextureVolume();

            if (newTexture.Initialize(manager, format, width, height, depth, dynamic, mipmap))
            {
                return(newTexture);
            }

            return(null);
        }
Beispiel #3
0
        public TextureVolume CreateTextureVolume(D3d.Format format, int width, int height, int depth, bool dynamic, bool mipmap)
        {
            if (ModifyParameters(D3d.ResourceType.VolumeTexture, format, dynamic, mipmap, false, ref width, ref height, ref depth))
            {
                TextureVolume newTexture = TextureVolume.Create(this, format, width, height, depth, dynamic, mipmap);
                if (newTexture != null)
                {
                    textures.Add(newTexture);
                    return(newTexture);
                }
            }

            return(null);
        }