Esempio n. 1
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);
        }