Ejemplo n.º 1
0
 static VertNormTexPos()
 {
     _vertexDeclaration = new VertexDeclaration (
         new VertexElement (
             0,
             VertexElementFormat.Vector3,
             VertexElementUsage.Normal,
             0),
         new VertexElement (
             12,
             VertexElementFormat.Vector2,
             VertexElementUsage.TextureCoordinate,
             0),
         new VertexElement (
             20,
             VertexElementFormat.Vector3,
             VertexElementUsage.Position,
             0));
 }
Ejemplo n.º 2
0
 static VertPosTexCol()
 {
     _vertexDeclaration = new VertexDeclaration (
         new VertexElement (
             0,
             VertexElementFormat.Vector3,
             VertexElementUsage.Position,
             0),
         new VertexElement (
             12,
             VertexElementFormat.Vector2,
             VertexElementUsage.TextureCoordinate,
             0),
         new VertexElement (
             20,
             VertexElementFormat.Colour,
             VertexElementUsage.Colour,
             0));
 }
Ejemplo n.º 3
0
 static VertPos()
 {
     _vertexDeclaration = new VertexDeclaration (
         new VertexElement (
             0,
             VertexElementFormat.Vector3,
             VertexElementUsage.Position,
             0));
 }
Ejemplo n.º 4
0
 static VertPosCol()
 {
     _vertexDeclaration = new VertexDeclaration (
         new VertexElement (
             0,
             VertexElementFormat.Vector3,
             VertexElementUsage.Position,
             0),
         new VertexElement (
             12,
             VertexElementFormat.Colour,
             VertexElementUsage.Colour,
             0)
     );
 }
Ejemplo n.º 5
0
        /// <summary>
        ///
        /// </summary>
        public Boolean Equals(VertexDeclaration other)
        {
            if (other == null)
                return false;

            return other == this;
        }