mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-11 02:54:04 +09:00
37 lines
599 B
Kotlin
37 lines
599 B
Kotlin
package net.torvald.terrarum.modulebasegame.icongen
|
|
|
|
import com.badlogic.gdx.graphics.Color
|
|
import com.badlogic.gdx.graphics.Pixmap
|
|
import com.badlogic.gdx.graphics.Texture
|
|
|
|
/**
|
|
* Created by minjaesong on 2020-02-11.
|
|
*/
|
|
object Rasteriser {
|
|
|
|
operator fun invoke(size: Int, accessories: IcongenOverlays, colour: Color,
|
|
mesh: IconGenMesh): Texture {
|
|
|
|
val retPixmap = Pixmap(size, size, Pixmap.Format.RGBA8888)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
val ret = Texture(retPixmap)
|
|
retPixmap.dispose()
|
|
return ret
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// dummy class plz del
|
|
class IcongenOverlays {
|
|
|
|
}
|
|
|