Ejemplo n.º 1
0
 public ImageTextureCtr(EndianBinaryReader er)
     : base(er)
 {
     TextureImageOffset = (UInt32)er.BaseStream.Position + er.ReadUInt32();
     long curpos = er.BaseStream.Position;
     er.BaseStream.Position = TextureImageOffset;
     TextureImage = new PixelBasedImageCtr(er);
     er.BaseStream.Position = curpos;
 }
Ejemplo n.º 2
0
        public ImageTextureCtr(EndianBinaryReader er)
            : base(er)
        {
            TextureImageOffset = (UInt32)er.BaseStream.Position + er.ReadUInt32();
            long curpos = er.BaseStream.Position;

            er.BaseStream.Position = TextureImageOffset;
            TextureImage           = new PixelBasedImageCtr(er);
            er.BaseStream.Position = curpos;
        }
Ejemplo n.º 3
0
 public ImageTextureCtr(String Name, Bitmap Tex, Textures.ImageFormat Format)
     : base()
 {
     Type         = 0x20000011;
     this.Name    = Name;
     Width        = (uint)Tex.Width;
     Height       = (uint)Tex.Height;
     HWFormat     = Format;
     GLFormat     = GLFormats[(int)Format];
     GLType       = GLTypes[(int)Format];
     NrLevels     = 1;
     TextureImage = new PixelBasedImageCtr(Tex, Format);
 }
Ejemplo n.º 4
0
 public ImageTextureCtr(String Name, Bitmap Tex, Textures.ImageFormat Format)
     : base()
 {
     Type = 0x20000011;
     this.Name = Name;
     Width = (uint)Tex.Width;
     Height = (uint)Tex.Height;
     HWFormat = Format;
     GLFormat = GLFormats[(int)Format];
     GLType = GLTypes[(int)Format];
     NrLevels = 1;
     TextureImage = new PixelBasedImageCtr(Tex, Format);
 }