List of usage examples for org.lwjgl.opengl GL11 glTranslated
public static native void glTranslated(@NativeType("GLdouble") double x, @NativeType("GLdouble") double y, @NativeType("GLdouble") double z);
From source file:game.level.entities.mobs.enemies.Lich.java
License:Open Source License
private void RenderCrystal(int i, int j) { GL11.glTranslated(Math.cos((YawRotate + j) / 180 * Math.PI) * i, Math.sin((YawRotate + j) / 180f * Math.PI) * i, 0); GL11.glRotatef(YawRotate, 0, 0, 1);/*from ww w .j av a 2s . com*/ GL11.glBegin(GL11.GL_TRIANGLES); GL11.glColor3f(0, 0, 1); GL11.glVertex3f(+0.1f, -0.1f, -0.1f); GL11.glVertex3f(-0.1f, -0.1f, -0.1f); GL11.glColor3f(1, 1, 1); GL11.glVertex3f(0, 0, -1f); GL11.glColor3f(0, 0, 1); GL11.glVertex3f(-0.1f, -0.1f, -0.1f); GL11.glVertex3f(0, +0.1f, -0.1f); GL11.glColor3f(1, 1, 1); GL11.glVertex3f(0, 0, -1f); GL11.glColor3f(0, 0, 1); GL11.glVertex3f(0, +0.1f, -0.1f); GL11.glVertex3f(+0.1f, -0.1f, -0.1f); GL11.glColor3f(1, 1, 1); GL11.glVertex3f(0, 0, -1f); GL11.glEnd(); GL11.glRotatef(-YawRotate, 0, 0, 1); GL11.glTranslated(-Math.cos((YawRotate + j) / 180 * Math.PI) * i, -Math.sin((YawRotate + j) / 180f * Math.PI) * i, 0); YawRotate += 8; }
From source file:gravestone.models.block.memorials.ModelBigPedestal.java
License:LGPL
public static void shiftModel() { GL11.glTranslated(0, -1, 0); }
From source file:gravestone.models.block.memorials.ModelBigPedestal.java
License:LGPL
public static void unshiftModel() { GL11.glTranslated(0, 1, 0); }
From source file:gravestone.models.block.memorials.ModelCreeperStatueMemorial.java
License:LGPL
@Override public void renderAll() { this.setRotationAngles(0.0625F, 0.0625F, 0.0625F, 0.0625F, 0.0625F, 0.0625F); GL11.glTranslated(0, -0.8, 0); renderCreeper();//from ww w . j ava2 s . co m GL11.glTranslated(0, -0.19, 0); pedestal.renderAll(); }
From source file:gravestone.models.block.memorials.ModelCreeperStatueMemorial.java
License:LGPL
private void renderCreeperCharging() { float tickModifier = (float) (Minecraft.getSystemTime() % 3000L) / 3000.0F * 48.0F; float scale = 1.2F; float f4 = 0.5F; GL11.glTranslated(0, -0.5, 0); GL11.glScalef(scale, scale, scale);/*from ww w.j a va2 s . co m*/ TileEntityGSMemorialRenderer.instance.bindTextureByName(Resources.CREEPER_AURA); GL11.glEnable(GL11.GL_BLEND); GL11.glDepthMask(true); GL11.glBlendFunc(GL11.GL_SRC_COLOR, GL11.GL_ONE); GL11.glMatrixMode(GL11.GL_TEXTURE); for (int var21 = 0; var21 < 3; ++var21) { GL11.glLoadIdentity(); float var23 = tickModifier * (0.001F + (float) var21 * 0.0015F) * 15; GL11.glTranslatef(0, var23, 0); renderCreeper(); } GL11.glMatrixMode(GL11.GL_TEXTURE); GL11.glLoadIdentity(); GL11.glMatrixMode(GL11.GL_MODELVIEW); GL11.glEnable(GL11.GL_LIGHTING); GL11.glDisable(GL11.GL_BLEND); GL11.glDepthFunc(GL11.GL_LEQUAL); GL11.glBlendFunc(GL11.GL_ONE, GL11.GL_ONE); GL11.glTranslated(0, -0.19, 0); }
From source file:gravestone.models.block.memorials.ModelHangedSkeleton.java
License:LGPL
public void renderAll() { float f5 = 0.0625F; this.bipedBody.render(f5); this.bipedRightLeg.render(f5); this.bipedLeftLeg.render(f5); if (this.isInStocks) { this.rightArm.render(f5); this.leftArm.render(f5); this.rightArm2.render(f5); this.leftArm2.render(f5); } else {//from ww w .j a v a 2 s. co m this.bipedRightArm.render(f5); this.bipedLeftArm.render(f5); } Minecraft.getMinecraft().renderEngine .bindTexture(isWitherSkeleton ? Resources.WITHER_SKULL_CANDLE : Resources.SKELETON_SKULL_CANDLE); GL11.glPushMatrix(); GL11.glRotated(20, 1, 0, 0); GL11.glTranslated(0, -1.5, 0); skull.renderAll(); GL11.glPopMatrix(); }
From source file:gravestone.models.block.memorials.ModelSmallPedestal.java
License:LGPL
public static void shiftModel() { GL11.glTranslated(0, -0.5, 0); }
From source file:gravestone.models.block.memorials.ModelSmallPedestal.java
License:LGPL
public static void unshiftModel() { GL11.glTranslated(0, 0.5, 0); }
From source file:gravestone.models.block.ModelPileOfBones.java
License:LGPL
public void renderAll(boolean haveSkull) { float f5 = 0.0625F; bone1.render(f5);/* ww w. j a v a2s . c o m*/ bone2.render(f5); bone3.render(f5); bone4.render(f5); bone5.render(f5); bone6.render(f5); bone7.render(f5); bone8.render(f5); if (haveSkull) { Minecraft.getMinecraft().renderEngine.bindTexture(Resources.SKELETON_SKULL_CANDLE); GL11.glPushMatrix(); GL11.glTranslated(0.4, 0, 0.5); GL11.glRotated(45, 0, 1, 0); skull.renderAll(); GL11.glPopMatrix(); } }
From source file:gravestone.models.block.ModelSkullCandle.java
License:LGPL
public void renderAll() { skull.renderAll();//from w w w .j a v a 2 s .c o m TileEntityGSMemorialRenderer.instance.bindTextureByName(Resources.CANDLE); GL11.glPushMatrix(); GL11.glTranslated(0, -0.34, -0.07); candle.renderAll(); GL11.glPopMatrix(); }