示例#1
0
 public ColorRGBA(asStream stream)
 {
     R = stream.GetFloat();
     G = stream.GetFloat();
     B = stream.GetFloat();
     A = stream.GetFloat();
 }
示例#2
0
        public override void Load(asStream stream)
        {
            Vertex = stream.GetShort();

            Normals = new Vector3()
            {
                X = stream.GetFloat(),
                Y = stream.GetFloat(),
                Z = stream.GetFloat()
            };

            SMap = stream.GetFloat();
            TMap = stream.GetFloat();

            Color = stream.GetInt();
        }
示例#3
0
        public override void Load(asStream stream)
        {
            Name = stream.GetString(32);

            Emission = new ColorRGBA(stream);

            Ambient = new ColorRGBA(stream);
            Diffuse = new ColorRGBA(stream);

            Specular = new ColorRGBA(stream);

            Shininess = stream.GetFloat();

            Reserved = stream.GetShort();
        }
示例#4
0
        public override void Load(asStream stream)
        {
            Name = stream.GetString(32);

            Friction   = stream.GetFloat();
            Elasticity = stream.GetFloat();
            Drag       = stream.GetFloat();

            BumpHeight = stream.GetFloat();
            BumpWidth  = stream.GetFloat();

            SinkDepth = stream.GetFloat();
            PtxRate   = stream.GetFloat();

            Type  = stream.GetInt();
            Sound = stream.GetInt();

            Velocity = new Vector2(stream);
            PtxColor = new ColorRGB(stream);
        }
示例#5
0
 public Vector3(asStream stream)
 {
     X = stream.GetFloat();
     Y = stream.GetFloat();
     Z = stream.GetFloat();
 }