Exemplo n.º 1
0
        public virtual void Clear( )
        {
            visframe = 0;
            plane.Clear();
            flags          = 0;
            firstedge      = 0;
            numedges       = 0;
            texturemins[0] = texturemins[1] = -1;
            extents[0]     = extents[1] = 0;
            light_s        = light_t = 0;
            dlight_s       = dlight_t = 0;
            polys          = null;
            texturechain   = null;
            lightmapchain  = null;
            texinfo.Clear();
            dlightframe        = 0;
            dlightbits         = 0;
            lightmaptexturenum = 0;
            for (var i = 0; i < styles.Length; i++)
            {
                styles[i] = 0;
            }

            for (var i = 0; i < cached_light.Length; i++)
            {
                cached_light[i] = 0;
            }

            if (samples != null)
            {
                samples.Clear();
            }
        }
Exemplo n.º 2
0
 public virtual void Clear()
 {
     name                  = "";
     type                  = 0;
     width                 = height = 0;
     upload_width          = upload_height = 0;
     registration_sequence = 0;
     texturechain          = null;
     texnum                = 0;
     sl        = tl = sh = th = 0;
     scrap     = false;
     has_alpha = false;
     paletted  = false;
 }