/// <summary>
        ///
        /// </summary>
        /// <param name="internalFormat"></param>
        /// <param name="width"></param>
        /// <param name="height"></param>
        /// <param name="format"></param>
        /// <param name="type"></param>
        /// <param name="dataProvider"></param>
        /// <param name="mipmapLevelCount"></param>
        /// <param name="border"></param>
        public CubemapTexImage2D(uint internalFormat, int width, int height, uint format, uint type, CubemapDataProvider dataProvider, int mipmapLevelCount = 1, bool border = false)
            : base(TextureTarget.TextureCubeMap, internalFormat, mipmapLevelCount, border)
        {
            if (dataProvider == null)
            {
                throw new ArgumentNullException("dataProvider");
            }

            this.width        = width; this.height = height;
            this.format       = format;
            this.type         = type;
            this.dataProvider = dataProvider;
        }
Esempio n. 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="internalformat"></param>
        /// <param name="width"></param>
        /// <param name="height"></param>
        /// <param name="border"></param>
        /// <param name="format"></param>
        /// <param name="type"></param>
        /// <param name="dataProvider"></param>
        public CubemapTexImage2D(uint internalformat, int width, int height, int border, uint format, uint type, CubemapDataProvider dataProvider)
        {
            if (dataProvider == null)
            {
                throw new ArgumentNullException("dataProvider");
            }

            this.internalFormat = internalformat;
            this.width          = width; this.height = height;
            this.border         = border;
            this.format         = format;
            this.type           = type;
            this.dataProvider   = dataProvider;
        }