Texture

fun Texture(agBase: AGTexture, width: Int, height: Int): Texture

Creates a Texture from a texture agBase and its wanted size width, height.


fun Texture(base: TextureBase, left: Int = 0, top: Int = 0, right: Int = base.width, bottom: Int = base.height): Texture


fun Texture(frameBuffer: AGFrameBuffer): Texture

Creates a Texture from a frame buffer frameBuffer with the right size of the frameBuffer.