aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuuxel <6596629+Juuxel@users.noreply.github.com>2020-12-14 17:49:55 +0200
committerJuuxel <6596629+Juuxel@users.noreply.github.com>2020-12-14 17:49:55 +0200
commit11f9e3eb07daadb24d11d87a984a3f54cc51139d (patch)
treec07ea485c03b2df6ad1f57704c41a2fe28d84372
parentb9265894f3dddc0e7df8c420c867e82078e78f99 (diff)
downloadLibGui-11f9e3eb07daadb24d11d87a984a3f54cc51139d.tar.gz
LibGui-11f9e3eb07daadb24d11d87a984a3f54cc51139d.tar.bz2
LibGui-11f9e3eb07daadb24d11d87a984a3f54cc51139d.zip
Remove ScreenDrawing.maskedRect
It's unused and scissors should be used instead.
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/client/ScreenDrawing.java14
1 files changed, 0 insertions, 14 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 6e571cb..dda1bdd 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
@@ -214,20 +214,6 @@ public class ScreenDrawing {
RenderSystem.disableBlend();
}
- public static void maskedRect(MatrixStack matrices, Identifier mask, Identifier texture, int left, int top, int width, int height) {
-
-
- texturedRect(matrices, left, top, width, height, mask, 0, 0, 1, 1, 0xFFFFFFFF); //TODO: 7 Z
-
- RenderSystem.enableDepthTest();
- RenderSystem.depthFunc(GL11.GL_EQUAL);
-
- texturedRect(matrices, left, top, width, height, texture, 0, 0, 1, 1, 0xFFFFFFFF); //, 7);
-
- RenderSystem.depthFunc(GL11.GL_LESS);
- RenderSystem.disableDepthTest();
- }
-
/**
* Draws a rectangle for a Fluid, because fluids are tough.
*/