Package com.mojang.minecraft.model

Examples of com.mojang.minecraft.model.TexturedQuad


      this.vertices[3] = var18;
      this.vertices[4] = var13;
      this.vertices[5] = var15;
      this.vertices[6] = var21;
      this.vertices[7] = var14;
      this.quads[0] = new TexturedQuad(new Vertex[]{var15, var11, var12, var21}, this.u + var6 + var4, this.v + var6, this.u + var6 + var4 + var6, this.v + var6 + var5);
      this.quads[1] = new TexturedQuad(new Vertex[]{var20, var13, var14, var18}, this.u, this.v + var6, this.u + var6, this.v + var6 + var5);
      this.quads[2] = new TexturedQuad(new Vertex[]{var15, var13, var20, var11}, this.u + var6, this.v, this.u + var6 + var4, this.v + var6);
      this.quads[3] = new TexturedQuad(new Vertex[]{var12, var18, var14, var21}, this.u + var6 + var4, this.v, this.u + var6 + var4 + var4, this.v + var6);
      this.quads[4] = new TexturedQuad(new Vertex[]{var11, var20, var18, var12}, this.u + var6, this.v + var6, this.u + var6 + var4, this.v + var6 + var5);
      this.quads[5] = new TexturedQuad(new Vertex[]{var13, var15, var21, var14}, this.u + var6 + var4 + var6, this.v + var6, this.u + var6 + var4 + var6 + var4, this.v + var6 + var5);
      if(this.mirror) {
         for(int var16 = 0; var16 < this.quads.length; ++var16) {
            TexturedQuad var17;
            Vertex[] var19 = new Vertex[(var17 = this.quads[var16]).vertices.length];

            for(var4 = 0; var4 < var17.vertices.length; ++var4) {
               var19[var4] = var17.vertices[var17.vertices.length - var4 - 1];
            }
View Full Code Here


      this.list = GL11.glGenLists(1);
      GL11.glNewList(this.list, 4864);
      GL11.glBegin(7);

      for(int var2 = 0; var2 < this.quads.length; ++var2) {
         TexturedQuad var10000 = this.quads[var2];
         float var3 = var1;
         TexturedQuad var4 = var10000;
         Vec3D var5 = var10000.vertices[1].vector.subtract(var4.vertices[0].vector).normalize();
         Vec3D var6 = var4.vertices[1].vector.subtract(var4.vertices[2].vector).normalize();
         GL11.glNormal3f((var5 = (new Vec3D(var5.y * var6.z - var5.z * var6.y, var5.z * var6.x - var5.x * var6.z, var5.x * var6.y - var5.y * var6.x)).normalize()).x, var5.y, var5.z);

         for(int var7 = 0; var7 < 4; ++var7) {
View Full Code Here

    Vertex[] vertexes3 = new Vertex[] {vertex6, vertex5, vertex1, vertex2};
    Vertex[] vertexes4 = new Vertex[] {vertex3, vertex4, vertex8, vertex7};
    Vertex[] vertexes5 = new Vertex[] {vertex2, vertex1, vertex4, vertex3};
    Vertex[] vertexes6 = new Vertex[] {vertex5, vertex6, vertex7, vertex8};

    model.quads[0] = new TexturedQuad(vertexes1, u1, v1, u2, v2);
    model.quads[1] = new TexturedQuad(vertexes2, u1, v1, u2, v2);
    model.quads[2] = new TexturedQuad(vertexes3, u1, v1, u2, v2);
    model.quads[3] = new TexturedQuad(vertexes4, u1, v1, u2, v2);
    model.quads[4] = new TexturedQuad(vertexes5, u1, v1, u2, v2);
    model.quads[5] = new TexturedQuad(vertexes6, u1, v1, u2, v2);
  }
View Full Code Here

TOP

Related Classes of com.mojang.minecraft.model.TexturedQuad

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.