Exemplo n.º 1
0
 public VertexInfoColor(Vector4f Vector4f)
 {
     this.R = Vector4f.X;
     this.G = Vector4f.Y;
     this.B = Vector4f.Z;
     this.A = Vector4f.W;
 }
Exemplo n.º 2
0
        public int AddVertex(Vector4f Position)
        {
            WriteLine("# v " + Position.X + " " + Position.Y + " " + Position.Z + " ");

            if (!VerticesIndices.ContainsKey(Position))
            {
                //WriteVerticeLine("v " + Position.X + " " + Position.Y + " " + Position.Z);
                Vertices.Add(Position);
                VerticesIndices[Position] = VertexIndex;
                return VertexIndex++;
            }
            return VerticesIndices[Position];
        }
Exemplo n.º 3
0
 public VertexInfoVector3f(Vector4f Vector4f)
 {
     this.X = Vector4f.X;
     this.Y = Vector4f.Y;
     this.Z = Vector4f.Z;
 }
Exemplo n.º 4
0
 public Vector4f Column(int n)
 {
     return(Vector4f.Create(Row0[n], Row1[n], Row2[n], Row3[n]));
 }