aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorJuuz <6596629+Juuxel@users.noreply.github.com>2023-02-02 18:34:50 +0200
committerJuuz <6596629+Juuxel@users.noreply.github.com>2023-02-02 18:34:50 +0200
commit308e85498dddd78c5a9b41e555c235aecb86dc67 (patch)
tree5a4bd94ae24ba2b63ce5c8f6c0065c879a5b9ed8 /src/main
parent6b80460d7e3566d8e102ce799aa562adcd9b926d (diff)
downloadLibGui-308e85498dddd78c5a9b41e555c235aecb86dc67.tar.gz
LibGui-308e85498dddd78c5a9b41e555c235aecb86dc67.tar.bz2
LibGui-308e85498dddd78c5a9b41e555c235aecb86dc67.zip
Remove commented-out code in ScreenDrawing
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/client/ScreenDrawing.java38
1 files changed, 0 insertions, 38 deletions
diff --git a/src/main/java/io/github/cottonmc/cotton/gui/client/ScreenDrawing.java b/src/main/java/io/github/cottonmc/cotton/gui/client/ScreenDrawing.java
index 19171c9..7af67f1 100644
--- a/src/main/java/io/github/cottonmc/cotton/gui/client/ScreenDrawing.java
+++ b/src/main/java/io/github/cottonmc/cotton/gui/client/ScreenDrawing.java
@@ -198,44 +198,6 @@ public class ScreenDrawing {
}
/**
- * Draws a rectangle for a Fluid, because fluids are tough.
- */
- /*
- public static void rect(Fluid fluid, int left, int top, int width, int height, float u1, float v1, float u2, float v2, int color) {
- Identifier fluidTexture = fluid.getStill();
-
- TextureAtlasSprite tas = Minecraft.getMinecraft().getTextureMapBlocks().getAtlasSprite(fluidTexture.toString());
- Minecraft.getMinecraft().getTextureManager().bindTexture(TextureMap.LOCATION_BLOCKS_TEXTURE);
-
- if (width <= 0) width = 1;
- if (height <= 0) height = 1;
-
- float a = (color >> 24 & 255) / 255.0F;
- float r = (color >> 16 & 255) / 255.0F;
- float g = (color >> 8 & 255) / 255.0F;
- float b = (color & 255) / 255.0F;
- Tessellator tessellator = Tessellator.getInstance();
- BufferBuilder buffer = tessellator.getBufferBuilder();
- GlStateManager.enableBlend();
- //GlStateManager.disableTexture2D();
- GlStateManager.blendFuncSeparate(GlStateManager.SourceFactor.SRC_ALPHA, GlStateManager.DestFactor.ONE_MINUS_SRC_ALPHA, GlStateManager.SourceFactor.ONE, GlStateManager.DestFactor.ZERO);
- GlStateManager.color4f(r, g, b, a);
- buffer.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX); //I thought GL_QUADS was deprecated but okay, sure.
- buffer.pos(left, top + height, 0.0D).tex(tas.getInterpolatedU(u1), tas.getInterpolatedV(v2)).endVertex();
- buffer.pos(left + width, top + height, 0.0D).tex(tas.getInterpolatedU(u2), tas.getInterpolatedV(v2)).endVertex();
- buffer.pos(left + width, top, 0.0D).tex(tas.getInterpolatedU(u2), tas.getInterpolatedV(v1)).endVertex();
- buffer.pos(left, top, 0.0D).tex(tas.getInterpolatedU(u1), tas.getInterpolatedV(v1)).endVertex();
- tessellator.draw();
- //GlStateManager.enableTexture2D();
- GlStateManager.disableBlend();
- }*/
-
- /*
- public static void rect(Fluid fluid, int left, int top, int width, int height, int color) {
- rect(fluid, left, top, width, height, 0, 0, 16, 16, color);
- }*/
-
- /**
* Draws a beveled, round rectangle that is substantially similar to default Minecraft UI panels.
*
* @param matrices the rendering matrix stack