PlainTextureProgram

A Shader program which blits axis-aligned rectangular area of a Texture. There are no transformation matrices - the API uses to -1 to 1 coordinates for the destination and 0..1 for the texture's coordinates.

Functions

Link copied to clipboard
fun blit(left: Float, top: Float, right: Float, bottom: Float, textureID: Int, tLeft: Float, tTop: Float, tRight: Float, tBottom: Float)

The coordinates are not transformed (no view or model matrices).

Link copied to clipboard
fun blitAll(textureID: Int)

Blits the texture to entire area of the destination. This is identical to (but faster than) :