Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void renderCircle(TileEntityClasher te, double x, double y, double z, float f)
- {
- Minecraft.getMinecraft().getTextureManager().bindTexture(new ResourceLocation("thaumcraftextras:textures/gui/circle.png"));
- double d1 = 0.0001D;
- OpenGlHelper.setActiveTexture(OpenGlHelper.lightmapTexUnit);
- GL11.glDisable(GL11.GL_TEXTURE_2D);
- OpenGlHelper.setActiveTexture(OpenGlHelper.defaultTexUnit);
- GL11.glEnable(GL11.GL_TEXTURE_2D);
- Tessellator t = Tessellator.instance;
- GL11.glPushMatrix();
- GL11.glTranslated(x, y + 1, z);
- GL11.glRotated(90D, 1D, 0D, 0D);
- GL11.glScaled(2D, 2D, 2D);
- GL11.glPushMatrix();
- yRotation += f*speed;
- if (yRotation <= 360) {
- yRotation -= 360;
- }
- GL11.glTranslated(0.5D, 0, 0.5D);
- GL11.glRotatef(yRotation, 0F, 0F, 1F);
- GL11.glTranslated(-0.5D, 0, -0.5D);
- t.startDrawingQuads();
- vertex(te, t, d1);
- t.draw();
- GL11.glPopMatrix();
- GL11.glPopMatrix();
- }
- public void vertex(TileEntityClasher te, Tessellator t, double d1)
- {
- t.setColorOpaque_I(Color.cyan.getRGB());
- t.addVertexWithUV(0, 0 + 1.0D, 0 - d1, 1.0D, 0.0D);
- t.addVertexWithUV(0 + 1.0D, 0 + 1.0D, 0 - d1, 0.0D, 0.0D);
- t.addVertexWithUV(0 + 1.0D, 0 + 0.0D, 0 - d1, 0.0D, 1.0D);
- t.addVertexWithUV(0, 0 + 0.05D, 0 - d1, 1.0D, 1.0D);
- }
Advertisement
Add Comment
Please, Sign In to add comment