Skip to content
Select language:English

AuRea 1.0.2

expect class AuCanvas(width: Int, height: Int)

A canvas for drawing.

Constructors

expect constructor(width: Int, height: Int)

Functions

expect fun buildTexture(): AuTexture

Builds a texture from the canvas.

expect fun drawBitmap(bitmap: AuBitmap, x: Float, y: Float)

Draws a bitmap at the specified position.

expect fun drawPath(path: AuPath, paint: AuPaint)

Draws a path with the given paint.

expect fun drawString(line: String, x: Float, y: Float, paint: AuPaint)

Draws a string with the given paint at the specified position.