12 lines
315 B
Kotlin
12 lines
315 B
Kotlin
package net.shadowfacts.shadowui.util
|
|
|
|
import net.minecraft.client.gui.DrawableHelper
|
|
import net.shadowfacts.shadowui.geometry.UIRect
|
|
|
|
object RenderHelper {
|
|
|
|
fun fill(rect: UIRect, color: Color) {
|
|
DrawableHelper.fill(rect.left.toInt(), rect.top.toInt(), rect.right.toInt(), rect.bottom.toInt(), color.argb)
|
|
}
|
|
|
|
} |