Class ToucanShaderQuads
java.lang.Object
com.jvn.toucanlib.neoforge.client.ToucanShaderQuads
Helpers for drawing position-only GUI quads with a shader.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voiddrawBlendedFullscreen(net.minecraft.client.gui.GuiGraphics graphics, net.minecraft.client.renderer.ShaderInstance shader, int width, int height) Draws a blended full-screen quad with the supplied shader and default blend function.static voiddrawBlendedRect(net.minecraft.client.gui.GuiGraphics graphics, net.minecraft.client.renderer.ShaderInstance shader, int left, int top, int right, int bottom) Draws a blended rectangle quad with the supplied shader and default blend function.static voiddrawFullscreen(net.minecraft.client.gui.GuiGraphics graphics, net.minecraft.client.renderer.ShaderInstance shader, int width, int height) Draws a full-screen quad covering0,0,width,height.static voiddrawRect(net.minecraft.client.gui.GuiGraphics graphics, net.minecraft.client.renderer.ShaderInstance shader, float left, float top, float right, float bottom) Draws a rectangle quad with the supplied shader.static voiddrawRect(net.minecraft.client.gui.GuiGraphics graphics, net.minecraft.client.renderer.ShaderInstance shader, int left, int top, int right, int bottom) Draws a rectangle quad with the supplied shader.
-
Method Details
-
drawFullscreen
public static void drawFullscreen(net.minecraft.client.gui.GuiGraphics graphics, net.minecraft.client.renderer.ShaderInstance shader, int width, int height) Draws a full-screen quad covering0,0,width,height. -
drawRect
public static void drawRect(net.minecraft.client.gui.GuiGraphics graphics, net.minecraft.client.renderer.ShaderInstance shader, int left, int top, int right, int bottom) Draws a rectangle quad with the supplied shader. -
drawRect
public static void drawRect(net.minecraft.client.gui.GuiGraphics graphics, net.minecraft.client.renderer.ShaderInstance shader, float left, float top, float right, float bottom) Draws a rectangle quad with the supplied shader. -
drawBlendedRect
public static void drawBlendedRect(net.minecraft.client.gui.GuiGraphics graphics, net.minecraft.client.renderer.ShaderInstance shader, int left, int top, int right, int bottom) Draws a blended rectangle quad with the supplied shader and default blend function. -
drawBlendedFullscreen
public static void drawBlendedFullscreen(net.minecraft.client.gui.GuiGraphics graphics, net.minecraft.client.renderer.ShaderInstance shader, int width, int height) Draws a blended full-screen quad with the supplied shader and default blend function.
-