mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-18 22:44:04 +09:00
make quickslots work with dynamic items
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
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 {
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user