15 lines
342 B
Kotlin
15 lines
342 B
Kotlin
package net.shadowfacts.shadowui.util
|
|
|
|
import net.minecraft.client.gui.DrawableHelper
|
|
import net.shadowfacts.shadowui.geometry.Rect
|
|
|
|
/**
|
|
* @author shadowfacts
|
|
*/
|
|
object RenderHelper {
|
|
|
|
fun fill(rect: Rect, color: Color) {
|
|
DrawableHelper.fill(rect.left.toInt(), rect.top.toInt(), rect.right.toInt(), rect.bottom.toInt(), color.argb)
|
|
}
|
|
|
|
} |