Beispiel #1
0
        public GFTextureCoord(H3DTextureCoord Coord, H3DTextureMapper Mapper, string TextureName, byte UnitIndex)
        {
            Name = TextureName;

            this.UnitIndex = UnitIndex;

            MappingType = (GFTextureMappingType)Coord.MappingType;

            Scale       = Coord.Scale;
            Rotation    = Coord.Rotation;
            Translation = Coord.Translation;

            WrapU = (GFTextureWrap)Mapper.WrapU;
            WrapV = (GFTextureWrap)Mapper.WrapV;

            MagFilter = (GFMagFilter)Mapper.MagFilter;
            MinFilter = (GFMinFilter)Mapper.MinFilter;

            MinLOD = Mapper.MinLOD;
        }
Beispiel #2
0
        public GFTextureCoord(BinaryReader Reader)
        {
            Name = new GFHashName(Reader).Name;

            UnitIndex = Reader.ReadByte();

            MappingType = (GFTextureMappingType)Reader.ReadByte();

            Scale       = Reader.ReadVector2();
            Rotation    = Reader.ReadSingle();
            Translation = Reader.ReadVector2();

            WrapU = (GFTextureWrap)Reader.ReadUInt32();
            WrapV = (GFTextureWrap)Reader.ReadUInt32();

            MagFilter = (GFMagFilter)Reader.ReadUInt32(); //Not sure
            MinFilter = (GFMinFilter)Reader.ReadUInt32(); //Not sure

            MinLOD = Reader.ReadUInt32();                 //Not sure
        }