Class UIRenderHelper

java.lang.Object
com.simibubi.create.foundation.gui.UIRenderHelper

public class UIRenderHelper extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    An FBO that has a stencil buffer for use wherever stencil are necessary.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    angledGradient(com.mojang.blaze3d.vertex.PoseStack ms, float angle, int x, int y, int z, int breadth, int length, Color color1, Color color2)
    x and y specify the middle point of the starting edge
    static void
    angledGradient(com.mojang.blaze3d.vertex.PoseStack ms, float angle, int x, int y, int z, int breadth, int length, Couple<Color> c)
     
    static void
    angledGradient(com.mojang.blaze3d.vertex.PoseStack ms, float angle, int x, int y, int breadth, int length, Color color1, Color color2)
     
    static void
    angledGradient(com.mojang.blaze3d.vertex.PoseStack ms, float angle, int x, int y, int breadth, int length, Couple<Color> c)
     
    static void
    breadcrumbArrow(com.mojang.blaze3d.vertex.PoseStack matrixStack, int x, int y, int z, int width, int height, int indent, Color startColor, Color endColor)
     
    static void
    breadcrumbArrow(com.mojang.blaze3d.vertex.PoseStack matrixStack, int x, int y, int z, int width, int height, int indent, Couple<Color> colors)
     
    static void
    drawColoredTexture(com.mojang.blaze3d.vertex.PoseStack ms, Color c, int x, int y, int z, float tex_left, float tex_top, int width, int height, int sheet_width, int sheet_height)
     
    static void
    drawColoredTexture(com.mojang.blaze3d.vertex.PoseStack ms, Color c, int x, int y, int tex_left, int tex_top, int width, int height)
     
    static void
    drawFramebuffer(float alpha)
     
    static void
    flipForGuiRender(com.mojang.blaze3d.vertex.PoseStack poseStack)
     
    static void
     
    static void
    streak(com.mojang.blaze3d.vertex.PoseStack ms, float angle, int x, int y, int breadth, int length)
     
    static void
    streak(com.mojang.blaze3d.vertex.PoseStack ms, float angle, int x, int y, int breadth, int length, int color)
     
    static void
    streak(com.mojang.blaze3d.vertex.PoseStack ms, float angle, int x, int y, int breadth, int length, Color c)
     
    static void
    swapAndBlitColor(com.mojang.blaze3d.pipeline.RenderTarget src, com.mojang.blaze3d.pipeline.RenderTarget dst)
    Switch from src to dst, after copying the contents of src to dst.
    static void
    updateWindowSize(com.mojang.blaze3d.platform.Window mainWindow)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • framebuffer

      public static UIRenderHelper.CustomRenderTarget framebuffer
      An FBO that has a stencil buffer for use wherever stencil are necessary. Forcing the main FBO to have a stencil buffer will cause GL error spam when using fabulous graphics.
  • Constructor Details

    • UIRenderHelper

      public UIRenderHelper()
  • Method Details

    • init

      public static void init()
    • updateWindowSize

      public static void updateWindowSize(com.mojang.blaze3d.platform.Window mainWindow)
    • drawFramebuffer

      public static void drawFramebuffer(float alpha)
    • swapAndBlitColor

      public static void swapAndBlitColor(com.mojang.blaze3d.pipeline.RenderTarget src, com.mojang.blaze3d.pipeline.RenderTarget dst)
      Switch from src to dst, after copying the contents of src to dst.
    • streak

      public static void streak(com.mojang.blaze3d.vertex.PoseStack ms, float angle, int x, int y, int breadth, int length)
    • streak

      public static void streak(com.mojang.blaze3d.vertex.PoseStack ms, float angle, int x, int y, int breadth, int length, int color)
    • streak

      public static void streak(com.mojang.blaze3d.vertex.PoseStack ms, float angle, int x, int y, int breadth, int length, Color c)
    • angledGradient

      public static void angledGradient(@Nonnull com.mojang.blaze3d.vertex.PoseStack ms, float angle, int x, int y, int breadth, int length, Couple<Color> c)
      See Also:
    • angledGradient

      public static void angledGradient(@Nonnull com.mojang.blaze3d.vertex.PoseStack ms, float angle, int x, int y, int z, int breadth, int length, Couple<Color> c)
      See Also:
    • angledGradient

      public static void angledGradient(@Nonnull com.mojang.blaze3d.vertex.PoseStack ms, float angle, int x, int y, int breadth, int length, Color color1, Color color2)
      See Also:
    • angledGradient

      public static void angledGradient(@Nonnull com.mojang.blaze3d.vertex.PoseStack ms, float angle, int x, int y, int z, int breadth, int length, Color color1, Color color2)
      x and y specify the middle point of the starting edge
      Parameters:
      angle - the angle of the gradient in degrees; 0° means from left to right
      color1 - the color at the starting edge
      color2 - the color at the ending edge
      breadth - the total width of the gradient
    • drawColoredTexture

      public static void drawColoredTexture(com.mojang.blaze3d.vertex.PoseStack ms, Color c, int x, int y, int tex_left, int tex_top, int width, int height)
    • drawColoredTexture

      public static void drawColoredTexture(com.mojang.blaze3d.vertex.PoseStack ms, Color c, int x, int y, int z, float tex_left, float tex_top, int width, int height, int sheet_width, int sheet_height)
    • flipForGuiRender

      public static void flipForGuiRender(com.mojang.blaze3d.vertex.PoseStack poseStack)