Texture
Author
Colton Daily
Constructors
Functions
Link copied to clipboard
Binds this texture to the given texture unit. Sets the currently active texture via GL.activeTexture
Properties
Link copied to clipboard
Sets the TexMagFilter for this texture for magnification. This will bind the texture if the texture has been loaded.
Link copied to clipboard
Sets the TexMinFilter for this texture for minification. This will bind the texture if the texture has been loaded.
Extensions
Link copied to clipboard
Link copied to clipboard
fun Texture.sliceWithBorder(context: Context, sliceWidth: Int, sliceHeight: Int, border: Int = 1, mipmaps: Boolean = false): List<TextureSlice>
Slice up the texture in a list of TextureSlice with the given size with an added border. This can be used to prevent atlas bleeding.
Link copied to clipboard