TextureBatch

interface TextureBatch

OpenGL is more efficient if you batch operations. Backend.batch lets us create such a batch. Currently, the only operation is the rectangular draw.

This was first used for drawing glyphs of bitmap fonts, and later used by NinePatch.

Functions

Link copied to clipboard
abstract fun draw(srcX: Float, srcY: Float, width: Float, height: Float, destX: Float, destY: Float, destWidth: Float = width, destHeight: Float = height)