All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.mathiewz.slick.geom.TexCoordGenerator Maven / Gradle / Ivy

Go to download

The main purpose of this libraryis to modernize and maintain the slick2D library.

The newest version!
package com.github.mathiewz.slick.geom;

/**
 * A class capable of generating texture coordiantes based on
 * rendering positions of verticies. This allows custom texturing
 * of geometric shapes
 *
 * @author kevin
 */
public interface TexCoordGenerator {
    /**
     * Get the texture coordinate for a given render position
     *
     * @param x
     *            The x coordinate of the vertex being rendered
     * @param y
     *            The y coordinate of the vertex being rendered
     * @return The texture coordinate to apply
     */
    public Vector2f getCoordFor(float x, float y);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy