aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/utils/RenderUtils.java
diff options
context:
space:
mode:
authorsyeyoung <42869671+cyoung06@users.noreply.github.com>2020-11-26 15:09:22 +0900
committersyeyoung <42869671+cyoung06@users.noreply.github.com>2020-11-26 15:09:22 +0900
commitdad6bd4f55ac53435d59e84035a531d787886ac6 (patch)
tree14ee8e216fcd5aed1d4403317e907c00b55e2504 /src/main/java/kr/syeyoung/dungeonsguide/utils/RenderUtils.java
parent4d5276d8523e5c4771bdde386c9a538ec544d4c5 (diff)
downloadSkyblock-Dungeons-Guide-dad6bd4f55ac53435d59e84035a531d787886ac6.tar.gz
Skyblock-Dungeons-Guide-dad6bd4f55ac53435d59e84035a531d787886ac6.tar.bz2
Skyblock-Dungeons-Guide-dad6bd4f55ac53435d59e84035a531d787886ac6.zip
value edit stuff
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/utils/RenderUtils.java')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/utils/RenderUtils.java71
1 files changed, 1 insertions, 70 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/utils/RenderUtils.java b/src/main/java/kr/syeyoung/dungeonsguide/utils/RenderUtils.java
index bc741e04..c985cf42 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/utils/RenderUtils.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/utils/RenderUtils.java
@@ -111,7 +111,7 @@ public class RenderUtils {
GL11.glDisable(GL11.GL_DEPTH_TEST);
GL11.glDepthMask(false);
- GL11.glColor3ub((byte)c.getRed(), (byte)c.getGreen(), (byte)c.getBlue());
+ GL11.glColor4ub((byte)c.getRed(), (byte)c.getGreen(), (byte)c.getBlue(), (byte)c.getAlpha());
GL11.glTranslated(blockpos.getX(), blockpos.getY(), blockpos.getZ());
@@ -163,75 +163,6 @@ public class RenderUtils {
//...
}
- public static void highlightBlock2(BlockPos blockpos, Color c, float partialTicks) {
-
- RenderManager renderManager = Minecraft.getMinecraft().getRenderManager();
-
- Vector3f renderPos = getRenderPos(blockpos.getX(), blockpos.getY(), blockpos.getZ(), partialTicks);
-
-
- GL11.glPushMatrix();
- GlStateManager.pushAttrib();
- GL11.glTranslatef(renderPos.x, renderPos.y, renderPos.z);
- GL11.glRotatef(-renderManager.playerViewY, 0.0f, 1.0f, 0.0f);
- GL11.glRotatef(renderManager.playerViewX, 1.0f, 0.0f, 0.0f);
- GL11.glDisable(GL11.GL_LIGHTING);
- GL11.glDepthMask(false);
- GL11.glDisable(GL11.GL_DEPTH_TEST);
- GL11.glEnable(GL11.GL_BLEND);
- GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
- GlStateManager.disableTexture2D();
-
- GL11.glColor4ub((byte)c.getRed(), (byte)c.getGreen(), (byte)c.getBlue(), (byte)c.getAlpha());
-
- GL11.glBegin(GL11.GL_QUADS);
- GL11.glVertex3d(0, 0, 0);
- GL11.glVertex3d(0, 0, 1);
- GL11.glVertex3d(0, 1, 1);
- GL11.glVertex3d(0, 1, 0); // TOP LEFT / BOTTOM LEFT / TOP RIGHT/ BOTTOM RIGHT
-
- GL11.glVertex3d(1, 0, 1);
- GL11.glVertex3d(1, 0, 0);
- GL11.glVertex3d(1, 1, 0);
- GL11.glVertex3d(1, 1, 1);
-
- GL11.glVertex3d(0, 1, 1);
- GL11.glVertex3d(0, 0, 1);
- GL11.glVertex3d(1, 0, 1);
- GL11.glVertex3d(1, 1, 1); // TOP LEFT / BOTTOM LEFT / TOP RIGHT/ BOTTOM RIGHT
-
- GL11.glVertex3d(0, 0, 0);
- GL11.glVertex3d(0, 1, 0);
- GL11.glVertex3d(1, 1, 0);
- GL11.glVertex3d(1, 0, 0);
-
- GL11.glVertex3d(0,1,0);
- GL11.glVertex3d(0,1,1);
- GL11.glVertex3d(1,1,1);
- GL11.glVertex3d(1,1,0);
-
- GL11.glVertex3d(0,0,1);
- GL11.glVertex3d(0,0,0);
- GL11.glVertex3d(1,0,0);
- GL11.glVertex3d(1,0,1);
-
-
-
- GL11.glEnd();
-
-
- GL11.glEnable(GL11.GL_DEPTH_TEST);
- GL11.glDepthMask(true);
- GlStateManager.enableTexture2D();
- GlStateManager.disableBlend();
- GlStateManager.enableLighting();
- GlStateManager.popMatrix();
- GlStateManager.popAttrib();
-
-
-//...
-
- }
public static void drawTextAtWorld(String text, float x, float y, float z, int color, float scale, boolean increase, boolean renderBlackBox, float partialTicks) {
float lScale = scale;