SpriteBatch
Draws batched quads using indices.
Author
Colton Daily
Parameters
context
the context
size
the max number of sprites in a single batch. Max of 8191.
Constructors
Types
Functions
Link copied to clipboard
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)
open override fun draw(slice: TextureSlice, x: Float, y: Float, originX: Float, originY: Float, width: Float, height: Float, scaleX: Float, scaleY: Float, rotation: Angle, colorBits: Float, flipX: Boolean, flipY: Boolean)
Link copied to clipboard
Link copied to clipboard
open override fun setBlendFunctionSeparate(srcFuncColor: BlendFactor, dstFuncColor: BlendFactor, srcFuncAlpha: BlendFactor, dstFuncAlpha: BlendFactor)
Link copied to clipboard
Link copied to clipboard