Class ToucanShaderQuads

java.lang.Object
com.jvn.toucanlib.neoforge.client.ToucanShaderQuads

public final class ToucanShaderQuads extends Object
Helpers for drawing position-only GUI quads with a shader.
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    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.
    static void
    drawFullscreen(net.minecraft.client.gui.GuiGraphics graphics, net.minecraft.client.renderer.ShaderInstance shader, int width, int height)
    Draws a full-screen quad covering 0,0,width,height.
    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.
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 covering 0,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.