public final class RenderContext
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
drawArrow2D(Vector3 center,
double tipX,
double tipY,
double prongX,
double prongY,
float width,
boolean withTail) |
void |
drawArrow2D(Vector3 center,
Plane bounds,
Facing facing,
float lineWidth,
ColorCache color,
boolean withTail) |
void |
drawColoredBox(Box box,
ColorCache color) |
void |
drawColoredCircle(Vector3 center,
Circle circle,
ColorCache color) |
void |
drawColoredPlane(Vector3 center,
Plane plane,
ColorCache color) |
void |
drawColoredPlaneTest(Vector3 center,
Plane plane,
ColorCache color) |
void |
drawLine(double startX,
double startY,
double startZ,
double endX,
double endY,
double endZ,
float width) |
void |
drawLine(Vector3 start,
double endX,
double endY,
double endZ,
float width) |
void |
drawLine(Vector3 start,
Vector3 end,
float width) |
void |
drawOutline(Vector3 center,
Shape2D shape,
float width,
ColorCache color) |
void |
drawOutline(Vector3 center,
Shape3D shape,
float width,
ColorCache color) |
void |
drawOutline(Vector3 center,
VectorSuppliers.VectorSupplier2D vectors,
float width,
ColorCache color) |
void |
drawOutline(Vector3 center,
VectorSuppliers.VectorSupplier3D vectors,
float width,
ColorCache color) |
void |
drawTexturedPlane(Vector3 center,
Plane plane,
ResourceLocationAPI<?> texture,
Vector4 uv,
ColorCache mask) |
void |
drawTexturedPlane(Vector3 center,
Plane plane,
TextureWrapper texture) |
void |
drawTooltip(java.util.Collection<TextAPI<?>> text,
double x,
double y) |
void |
drawTooltip(java.util.Collection<TextAPI<?>> text,
double x,
double y,
double maxWidth) |
void |
finishGradient(VertexWrapper buffer) |
void |
finishLine(GLAPI gl) |
void |
finishTexture(VertexWrapper buffer) |
static RenderContext |
get(MinecraftAPI<?> mc) |
double |
getHeightRatio() |
double |
getScaledFontHeight() |
double |
getScaledMouseX() |
double |
getScaledMouseY() |
double |
getScaledStringWidth(java.lang.String str) |
VertexWrapper |
initQuads(boolean textured) |
boolean |
isNotBounded(Vector3 pos) |
boolean |
isWide() |
void |
prepareGradient(ColorCache bgColor) |
GLAPI |
prepareLine(java.util.function.Function<GLAPI,java.lang.Integer> mode,
float width) |
GLAPI |
prepareLine(java.util.function.Function<GLAPI,java.lang.Integer> mode,
float width,
ColorCache color) |
void |
prepareTexture(ColorCache bgColor) |
void |
scissorScaled(double left,
double bottom,
double width,
double height) |
java.util.List<java.lang.String> |
splitLines(java.lang.String text,
double width) |
java.lang.String |
trimStringScaled(java.lang.String text,
double width) |
void |
updateResolution(double screenWidth,
double screenHeight,
double displayWidth,
double displayHeight) |
void |
updateResolution(MinecraftWindow window) |
double |
withDisplayScaledX(double x) |
double |
withDisplayScaledY(double y) |
double |
withScaledZ(double z) |
double |
withScreenScaledX(double x) |
double |
withScreenScaledY(double y) |
public static RenderContext get(MinecraftAPI<?> mc)
public void drawArrow2D(Vector3 center, Plane bounds, Facing facing, float lineWidth, ColorCache color, boolean withTail)
public void drawArrow2D(Vector3 center, double tipX, double tipY, double prongX, double prongY, float width, boolean withTail)
public void drawColoredBox(Box box, ColorCache color)
public void drawColoredCircle(Vector3 center, Circle circle, ColorCache color)
public void drawColoredPlane(Vector3 center, Plane plane, ColorCache color)
public void drawColoredPlaneTest(Vector3 center, Plane plane, ColorCache color)
public void drawLine(Vector3 start, double endX, double endY, double endZ, float width)
public void drawLine(double startX,
double startY,
double startZ,
double endX,
double endY,
double endZ,
float width)
public void drawOutline(Vector3 center, Shape2D shape, float width, ColorCache color)
public void drawOutline(Vector3 center, VectorSuppliers.VectorSupplier2D vectors, float width, ColorCache color)
public void drawOutline(Vector3 center, Shape3D shape, float width, ColorCache color)
public void drawOutline(Vector3 center, VectorSuppliers.VectorSupplier3D vectors, float width, ColorCache color)
public void drawTexturedPlane(Vector3 center, Plane plane, TextureWrapper texture)
public void drawTexturedPlane(Vector3 center, Plane plane, ResourceLocationAPI<?> texture, Vector4 uv, ColorCache mask)
public void drawTooltip(java.util.Collection<TextAPI<?>> text, double x, double y)
public void drawTooltip(java.util.Collection<TextAPI<?>> text, double x, double y, double maxWidth)
public void finishGradient(VertexWrapper buffer)
public void finishLine(GLAPI gl)
public void finishTexture(VertexWrapper buffer)
public double getScaledMouseX()
public double getScaledMouseY()
public double getHeightRatio()
public double getScaledFontHeight()
public double getScaledStringWidth(java.lang.String str)
public VertexWrapper initQuads(boolean textured)
public boolean isNotBounded(Vector3 pos)
public boolean isWide()
public void prepareGradient(ColorCache bgColor)
public GLAPI prepareLine(java.util.function.Function<GLAPI,java.lang.Integer> mode, float width)
public GLAPI prepareLine(java.util.function.Function<GLAPI,java.lang.Integer> mode, float width, ColorCache color)
public void prepareTexture(ColorCache bgColor)
public void scissorScaled(double left,
double bottom,
double width,
double height)
public java.lang.String trimStringScaled(java.lang.String text,
double width)
public java.util.List<java.lang.String> splitLines(java.lang.String text,
double width)
public void updateResolution(MinecraftWindow window)
public void updateResolution(double screenWidth,
double screenHeight,
double displayWidth,
double displayHeight)
public double withDisplayScaledX(double x)
public double withDisplayScaledY(double y)
public double withScaledZ(double z)
public double withScreenScaledX(double x)
public double withScreenScaledY(double y)