public final class RenderUtil
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
bindTexture(net.minecraft.util.ResourceLocation location)
Bind the texture at the specified location to be used for quad rendering.
|
static void |
drawQuad()
Draw a full one-by-one quad.
|
static void |
drawQuad(float u0,
float v0,
float u1,
float v1)
Draw a full one-by-one quad with the specified texture coordinates.
|
static void |
drawQuad(float x,
float y,
float w,
float h,
float u0,
float v0,
float u1,
float v1)
Draw an arbitrarily sized quad with the specified texture coordinates.
|
static void |
drawUntexturedQuad(float x,
float y,
float w,
float h)
Draw a full one-by-one, untextured quad.
|
public static void bindTexture(net.minecraft.util.ResourceLocation location)
location - the location of the texture to bind.public static void drawUntexturedQuad(float x,
float y,
float w,
float h)
x - the x position of the quad.y - the y position of the quad.w - the width of the quad.h - the height of the quad.public static void drawQuad(float x,
float y,
float w,
float h,
float u0,
float v0,
float u1,
float v1)
x - the x position of the quad.y - the y position of the quad.w - the width of the quad.h - the height of the quad.u0 - lower u texture coordinate.v0 - lower v texture coordinate.u1 - upper u texture coordinate.v1 - upper v texture coordinate.public static void drawQuad(float u0,
float v0,
float u1,
float v1)
u0 - lower u texture coordinate.v0 - lower v texture coordinate.u1 - upper u texture coordinate.v1 - upper v texture coordinate.public static void drawQuad()