コード例 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public override object Clone()
        {
            var tmp = new WebGLRenderTarget(this.Width, this.Height);

            tmp.WrapS = this.WrapS;
            tmp.WrapT = this.WrapT;

            tmp.MagFilter = this.MagFilter;
            tmp.MinFilter = this.MinFilter;

            tmp.Anisotropy = this.Anisotropy;

            tmp.Offset.Copy(this.Offset);
            tmp.Repeat.Copy(this.Repeat);

            tmp.Format = this.Format;
            tmp.Type   = this.Type;

            tmp.DepthBuffer   = this.DepthBuffer;
            tmp.StencilBuffer = this.StencilBuffer;

            tmp.GenerateMipmaps = this.GenerateMipmaps;

            tmp.ShareDepthFrom = this.ShareDepthFrom;

            return(tmp);
        }
コード例 #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="other"></param>
 protected WebGLRenderTarget(WebGLRenderTarget other)
 {
     throw new NotImplementedException();
 }