public static RenderTextureCube Create(TextureManager manager,D3d.Format format, int size, bool mipmap,int multisample )
        {
            RenderTextureCube newTexture = new RenderTextureCube();
            if ( newTexture.Initialize( manager,format,size,mipmap,multisample ) )
                return newTexture;

            return null;
        }
        public static RenderTextureCube Create(TextureManager manager, D3d.Format format, int size, bool mipmap, int multisample)
        {
            RenderTextureCube newTexture = new RenderTextureCube();

            if (newTexture.Initialize(manager, format, size, mipmap, multisample))
            {
                return(newTexture);
            }

            return(null);
        }
Exemple #3
0
        public RenderTextureCube CreateRenderTextureCube(D3d.Format format, int size, bool mipmap, int multisample)
        {
            int height = 128;
            int depth  = 128;

            if (ModifyParameters(D3d.ResourceType.CubeTexture, format, false, mipmap, true, ref size, ref height, ref depth))
            {
                RenderTextureCube newTexture = RenderTextureCube.Create(this, format, size, mipmap, multisample);
                if (newTexture != null)
                {
                    textures.Add(newTexture);
                    textureTargets.Add(newTexture);
                    return(newTexture);
                }
            }

            return(null);
        }