drawQuad

fun drawQuad(    tex: TextureCoords,     x: Float = 0.0f,     y: Float = 0.0f,     width: Float = tex.width.toFloat(),     height: Float = tex.height.toFloat(),     m: Matrix = Matrix.IDENTITY,     filtering: Boolean = true,     colorMul: RGBA = Colors.WHITE,     blendMode: BlendMode = BlendMode.NORMAL,     program: Program? = null)


fun drawQuad(    tex: TextureCoords,     x: Float,     y: Float,     width: Float,     height: Float,     m: Matrix = Matrix.IDENTITY,     filtering: Boolean = true,     colorMul: RGBA = Colors.WHITE,     blendMode: BlendMode = BlendMode.NORMAL,     program: Program? = null,     unit: Unit = Unit)

Draws a textured tex quad at x, y and size widthxheight.

It uses m transform matrix, an optional filtering and colorMul, blendMode and program as state for drawing it.

Note: To draw solid quads, you can use Bitmaps.white + AgBitmapTextureManager as texture and the colorMul as quad color.