Batch

interface Batch : Disposable

Author

Colton Daily

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun begin(projectionMatrix: Mat4? = null)
Link copied to clipboard
abstract fun dispose()
Link copied to clipboard
abstract fun draw(texture: Texture, spriteVertices: FloatArray, offset: Int = 0, count: Int = spriteVertices.size)
open fun draw(texture: Texture, x: Float, y: Float, originX: Float = 0.0f, originY: Float = 0.0f, width: Float = texture.width.toFloat(), height: Float = texture.height.toFloat(), scaleX: Float = 1.0f, scaleY: Float = 1.0f, rotation: Angle = Angle.ZERO, colorBits: Float = this.colorBits, flipX: Boolean = false, flipY: Boolean = false)
abstract fun draw(slice: TextureSlice, x: Float, y: Float, originX: Float = 0.0f, originY: Float = 0.0f, width: Float = slice.width.toFloat(), height: Float = slice.height.toFloat(), scaleX: Float = 1.0f, scaleY: Float = 1.0f, rotation: Angle = Angle.ZERO, colorBits: Float = this.colorBits, flipX: Boolean = false, flipY: Boolean = false)
abstract fun draw(texture: Texture, x: Float, y: Float, originX: Float = 0.0f, originY: Float = 0.0f, width: Float = texture.width.toFloat(), height: Float = texture.height.toFloat(), scaleX: Float = 1.0f, scaleY: Float = 1.0f, rotation: Angle = Angle.ZERO, srcX: Int = 0, srcY: Int = 0, srcWidth: Int = texture.width, srcHeight: Int = texture.height, colorBits: Float = this.colorBits, flipX: Boolean = false, flipY: Boolean = false)
abstract fun draw(slice: TextureSlice, x: Float, y: Float, originX: Float = 0.0f, originY: Float = 0.0f, width: Float = slice.width.toFloat(), height: Float = slice.height.toFloat(), scaleX: Float = 1.0f, scaleY: Float = 1.0f, rotation: Angle = Angle.ZERO, colorBits: Float = this.colorBits, srcX: Int = slice.x, srcY: Int = slice.y, srcWidth: Int = slice.width, srcHeight: Int = slice.height, flipX: Boolean = false, flipY: Boolean = false)
Link copied to clipboard
abstract fun end()
Link copied to clipboard
abstract fun flush()
Link copied to clipboard
abstract fun setBlendFunction(src: BlendFactor, dst: BlendFactor)
Link copied to clipboard
abstract fun setBlendFunctionSeparate(srcFuncColor: BlendFactor, dstFuncColor: BlendFactor, srcFuncAlpha: BlendFactor, dstFuncAlpha: BlendFactor)
Link copied to clipboard
Link copied to clipboard
abstract fun useDefaultShader()

Properties

Link copied to clipboard
abstract var color: Color
Link copied to clipboard
abstract var colorBits: Float
Link copied to clipboard
abstract val drawing: Boolean
Link copied to clipboard
abstract var projectionMatrix: Mat4
Link copied to clipboard
abstract var shader: ShaderProgram<*, *>
Link copied to clipboard
abstract var transformMatrix: Mat4

Inheritors

Link copied to clipboard
Link copied to clipboard