2019-06-21 20:22:23 +00:00
|
|
|
package net.shadowfacts.shadowui.util
|
|
|
|
|
|
|
|
import net.minecraft.client.gui.DrawableHelper
|
2019-06-21 23:02:08 +00:00
|
|
|
import net.shadowfacts.shadowui.geometry.Rect
|
2019-06-21 20:22:23 +00:00
|
|
|
|
2019-06-22 14:59:18 +00:00
|
|
|
/**
|
|
|
|
* @author shadowfacts
|
|
|
|
*/
|
2019-06-21 20:22:23 +00:00
|
|
|
object RenderHelper {
|
|
|
|
|
2019-06-21 23:02:08 +00:00
|
|
|
fun fill(rect: Rect, color: Color) {
|
2019-06-21 20:22:23 +00:00
|
|
|
DrawableHelper.fill(rect.left.toInt(), rect.top.toInt(), rect.right.toInt(), rect.bottom.toInt(), color.argb)
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|