com.github.mathiewz.slick.geom.TexCoordGenerator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of modernized-slick Show documentation
Show all versions of modernized-slick Show documentation
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