createTexture

abstract fun createTexture(name: String, width: Int, height: Int, pixels: IntArray): Texture

Creates a texture filled with the given color.


abstract fun createTexture(name: String, width: Int, height: Int, color: Color = Color.TRANSPARENT): Texture

Creates a texture filled with the given color.