コード例 #1
0
        public IndirectTexturing(EndianBinaryReader reader)
        {
            HasLookup      = reader.ReadBoolean();
            IndTexStageNum = reader.ReadByte();
            reader.SkipInt16();

            TevOrders = new IndirectTevOrder[8];
            for (int i = 0; i < 4; i++)
            {
                TevOrders[i] = new IndirectTevOrder(reader);
            }

            Matrices = new IndirectTexMatrix[3];
            for (int i = 0; i < 3; i++)
            {
                Matrices[i] = new IndirectTexMatrix(reader);
            }

            Scales = new IndirectTexScale[4];
            for (int i = 0; i < 4; i++)
            {
                Scales[i] = new IndirectTexScale(reader);
            }

            TevStages = new IndirectTevStage[16];
            for (int i = 0; i < 16; i++)
            {
                TevStages[i] = new IndirectTevStage(reader);
            }
        }
コード例 #2
0
        public IndirectTexturing()
        {
            HasLookup      = false;
            IndTexStageNum = 0;

            TevOrders = new IndirectTevOrder[4];
            for (int i = 0; i < 4; i++)
            {
                TevOrders[i] = new IndirectTevOrder();
            }

            Matrices = new IndirectTexMatrix[3];
            for (int i = 0; i < 3; i++)
            {
                Matrices[i] = new IndirectTexMatrix();
            }

            Scales = new IndirectTexScale[4];
            for (int i = 0; i < 3; i++)
            {
                Scales[i] = new IndirectTexScale();
            }

            TevStages = new IndirectTevStage[16];
            for (int i = 0; i < 3; i++)
            {
                TevStages[i] = new IndirectTevStage();
            }
        }