Ejemplo n.º 1
0
        // Constructor
        internal PK3FileImage(PK3Reader datareader, string filepathname, bool asflat)
        {
            // Initialize
            this.datareader = datareader;
            _c_filepathname = filepathname; // this is used to call SetName later
            this.isFlat     = asflat;       //mxd

            if (asflat)
            {
                probableformat = ImageDataFormat.DOOMFLAT;
                this.scale.x   = General.Map.Config.DefaultFlatScale;
                this.scale.y   = General.Map.Config.DefaultFlatScale;
            }
            else
            {
                probableformat = ImageDataFormat.DOOMPICTURE;
                this.scale.x   = General.Map.Config.DefaultTextureScale;
                this.scale.y   = General.Map.Config.DefaultTextureScale;
            }

            SetName(filepathname);

            // We have no destructor
            GC.SuppressFinalize(this);
        }
Ejemplo n.º 2
0
        // Constructor
        internal PK3FileImage(PK3Reader datareader, string name, string filepathname, bool asflat)
        {
            // Initialize
            this.datareader   = datareader;
            this.filepathname = filepathname;
            SetName(name);

            if (asflat)
            {
                bIsFlat        = true;
                probableformat = ImageDataFormat.DOOMFLAT;
                this.scale.x   = General.Map.Config.DefaultFlatScale;
                this.scale.y   = General.Map.Config.DefaultFlatScale;
            }
            else
            {
                probableformat = ImageDataFormat.DOOMPICTURE;
                this.scale.x   = General.Map.Config.DefaultTextureScale;
                this.scale.y   = General.Map.Config.DefaultTextureScale;
            }

            // We have no destructor
            GC.SuppressFinalize(this);
        }