Ejemplo n.º 1
0
 /// <summary>
 /// Generate texture coordinates for the elements defined in this vertex array.
 /// </summary>
 /// <param name="vertexArrayTexGen">
 /// A <see cref="IVertexArrayTexGen"/> used for generating texture coordinates.
 /// </param>
 public void GenerateTexCoords(GraphicsContext ctx, IVertexArrayTexGen vertexArrayTexGen)
 {
     // Interface initialization (i.e. stats and other information)
     vertexArrayTexGen.Initialize(this);
     // Process texture coords as usual
     GenerateTexCoords(ctx, position => vertexArrayTexGen.Generate(position));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Generate texture coordinates for the elements defined in this vertex array.
 /// </summary>
 /// <param name="vertexArrayTexGen">
 /// A <see cref="IVertexArrayTexGen"/> used for generating texture coordinates.
 /// </param>
 public void GenerateTexCoords(IVertexArrayTexGen vertexArrayTexGen)
 {
     // Interface initialization (i.e. stats and other information)
     vertexArrayTexGen.Initialize(this);
     // Process texture coords as usual
     GenerateTexCoords(delegate(Vertex3f position) {
         return(vertexArrayTexGen.Generate(position));
     });
 }