Examples of Tessellator


Examples of net.minecraft.client.renderer.Tessellator

    double minU = icon.getMinU();
    double maxU = icon.getMaxU();
    double minV = icon.getMinV();
    double maxV = icon.getMaxV();

    Tessellator tessellator = Tessellator.instance;
    tessellator.startDrawingQuads();
    tessellator.addVertexWithUV(x + 0, y + height, this.zLevel, minU, minV + (maxV - minV) * height / 16F);
    tessellator.addVertexWithUV(x + width, y + height, this.zLevel, minU + (maxU - minU) * width / 16F, minV + (maxV - minV) * height / 16F);
    tessellator.addVertexWithUV(x + width, y + 0, this.zLevel, minU + (maxU - minU) * width / 16F, minV);
    tessellator.addVertexWithUV(x + 0, y + 0, this.zLevel, minU, minV);
    tessellator.draw();
  }
View Full Code Here

Examples of net.minecraft.client.renderer.Tessellator

    renderTextureAsBlock(renderer, item.getIconIndex(), translateX, translateY, translateZ);
  }

  public static void renderTextureAsBlock(RenderBlocks renderer, IIcon texture, double translateX, double translateY, double translateZ) {

    Tessellator tessellator = Tessellator.instance;
    Block block = Blocks.stone;

    if (texture == null) {
      return;
    }
    renderer.setRenderBoundsFromBlock(block);
    GL11.glTranslated(translateX, translateY, translateZ);
    tessellator.startDrawingQuads();

    tessellator.setNormal(0.0F, -1.0F, 0.0F);
    renderer.renderFaceYNeg(block, 0.0D, 0.0D, 0.0D, texture);

    tessellator.setNormal(0.0F, 1.0F, 0.0F);
    renderer.renderFaceYPos(block, 0.0D, 0.0D, 0.0D, texture);

    tessellator.setNormal(0.0F, 0.0F, -1.0F);
    renderer.renderFaceZNeg(block, 0.0D, 0.0D, 0.0D, texture);

    tessellator.setNormal(0.0F, 0.0F, 1.0F);
    renderer.renderFaceZPos(block, 0.0D, 0.0D, 0.0D, texture);

    tessellator.setNormal(-1.0F, 0.0F, 0.0F);
    renderer.renderFaceXNeg(block, 0.0D, 0.0D, 0.0D, texture);

    tessellator.setNormal(1.0F, 0.0F, 0.0F);
    renderer.renderFaceXPos(block, 0.0D, 0.0D, 0.0D, texture);

    tessellator.draw();
  }
View Full Code Here

Examples of net.minecraft.client.renderer.Tessellator

    Tessellator.instance.draw();
  }

  public static void renderIcon(double x, double y, double z, IIcon icon, int width, int height) {

    Tessellator tessellator = Tessellator.instance;
    tessellator.startDrawingQuads();
    tessellator.addVertexWithUV(x, y + height, z, icon.getMinU(), icon.getMaxV());
    tessellator.addVertexWithUV(x + width, y + height, z, icon.getMaxU(), icon.getMaxV());
    tessellator.addVertexWithUV(x + width, y, z, icon.getMaxU(), icon.getMinV());
    tessellator.addVertexWithUV(x, y, z, icon.getMinU(), icon.getMinV());
    tessellator.draw();
  }
View Full Code Here

Examples of net.minecraft.client.renderer.Tessellator

      fluidSheet = 0;
      colorMult = 0x3F3F3F;
    }
    GL11.glPushMatrix();

    Tessellator tessellator = Tessellator.instance;

    float iconMinX = icon.getMinU();
    float iconMaxX = icon.getMaxU();
    float iconMinY = icon.getMinV();
    float iconMaxY = icon.getMaxV();

    float maskMinX = mask.getMinU();
    float maskMaxX = mask.getMaxU();
    float maskMinY = mask.getMinV();
    float maskMaxY = mask.getMaxV();

    float fluidMinX = fluidIcon.getMinU();
    float fluidMaxX = fluidIcon.getMaxU();
    float fluidMinY = fluidIcon.getMinV();
    float fluidMaxY = fluidIcon.getMaxV();

    if (isFloaty && canFlip) {
      iconMaxY = icon.getMinV();
      iconMinY = icon.getMaxV();

      maskMaxY = mask.getMinV();
      maskMinY = mask.getMaxV();

      fluidMaxY = fluidIcon.getMinV();
      fluidMinY = fluidIcon.getMaxV();
    }
    GL11.glEnable(GL11.GL_BLEND);
    GL11.glEnable(GL11.GL_ALPHA_TEST);
    OpenGlHelper.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA, GL11.GL_ONE, GL11.GL_ZERO);
    int texture = GL11.glGetInteger(GL11.GL_TEXTURE_BINDING_2D);

    if (type == ItemRenderType.INVENTORY) {
      GL11.glDisable(GL11.GL_LIGHTING);

      tessellator.startDrawingQuads();
      tessellator.addVertexWithUV(0, 16, 0, iconMinX, iconMaxY);
      tessellator.addVertexWithUV(16, 16, 0, iconMaxX, iconMaxY);
      tessellator.addVertexWithUV(16, 0, 0, iconMaxX, iconMinY);
      tessellator.addVertexWithUV(0, 0, 0, iconMinX, iconMinY);
      tessellator.draw();

      if (hasFluid) {
        tessellator.startDrawingQuads();
        tessellator.addVertexWithUV(0, 16, 0.001, maskMinX, maskMaxY);
        tessellator.addVertexWithUV(16, 16, 0.001, maskMaxX, maskMaxY);
        tessellator.addVertexWithUV(16, 0, 0.001, maskMaxX, maskMinY);
        tessellator.addVertexWithUV(0, 0, 0.001, maskMinX, maskMinY);
        tessellator.draw();

        GL11.glEnable(GL11.GL_CULL_FACE);
        GL11.glDepthFunc(GL11.GL_EQUAL);
        GL11.glDepthMask(false);
        GL11.glMatrixMode(GL11.GL_TEXTURE);
        bindTexture(RenderHelper.engine(), fluidSheet);
        OpenGlHelper.glBlendFunc(GL11.GL_ONE, GL11.GL_ZERO, GL11.GL_ONE, GL11.GL_ZERO);

        tessellator.startDrawingQuads();
        tessellator.setColorOpaque_I(colorMult);
        tessellator.addVertexWithUV(0, 16, 0.001, fluidMinX, fluidMaxY);
        tessellator.addVertexWithUV(16, 16, 0.001, fluidMaxX, fluidMaxY);
        tessellator.addVertexWithUV(16, 0, 0.001, fluidMaxX, fluidMinY);
        tessellator.addVertexWithUV(0, 0, 0.001, fluidMinX, fluidMinY);
        tessellator.draw();

        GL11.glMatrixMode(GL11.GL_MODELVIEW);
        GL11.glDepthMask(true);
        GL11.glDepthFunc(GL11.GL_LEQUAL);
      }

      GL11.glEnable(GL11.GL_LIGHTING);
    } else {
      GL11.glEnable(GL12.GL_RESCALE_NORMAL);

      if (type == ItemRenderType.ENTITY) {
        GL11.glTranslatef(0.5f, 4 / -16f, 0);
        GL11.glRotatef(180, 0, 1, 0);
      }
      ItemRenderer.renderItemIn2D(tessellator, iconMaxX, iconMinY, iconMinX, iconMaxY, icon.getIconWidth(), icon.getIconHeight(), 0.0625F);

      if (hasFluid) {
        tessellator.startDrawingQuads();
        tessellator.setNormal(0, 0, 1);
        tessellator.addVertexWithUV(0, 0, 0.001, maskMaxX, maskMaxY);
        tessellator.addVertexWithUV(1, 0, 0.001, maskMinX, maskMaxY);
        tessellator.addVertexWithUV(1, 1, 0.001, maskMinX, maskMinY);
        tessellator.addVertexWithUV(0, 1, 0.001, maskMaxX, maskMinY);
        tessellator.draw();
        tessellator.startDrawingQuads();
        tessellator.setNormal(0, 0, -1);
        tessellator.addVertexWithUV(0, 1, -0.0635, maskMinX, maskMinY);
        tessellator.addVertexWithUV(1, 1, -0.0635, maskMaxX, maskMinY);
        tessellator.addVertexWithUV(1, 0, -0.0635, maskMaxX, maskMaxY);
        tessellator.addVertexWithUV(0, 0, -0.0635, maskMinX, maskMaxY);
        tessellator.draw();

        GL11.glEnable(GL11.GL_CULL_FACE);
        GL11.glDepthFunc(GL11.GL_EQUAL);
        GL11.glDepthMask(false);
        bindTexture(RenderHelper.engine(), fluidSheet);
        OpenGlHelper.glBlendFunc(GL11.GL_ONE, GL11.GL_ZERO, GL11.GL_ONE, GL11.GL_ZERO);

        tessellator.startDrawingQuads();
        tessellator.setNormal(0, 0, 1);
        tessellator.setColorOpaque_I(colorMult);
        tessellator.addVertexWithUV(0, 0, 0.001, fluidMaxX, fluidMaxY);
        tessellator.addVertexWithUV(1, 0, 0.001, fluidMinX, fluidMaxY);
        tessellator.addVertexWithUV(1, 1, 0.001, fluidMinX, fluidMinY);
        tessellator.addVertexWithUV(0, 1, 0.001, fluidMaxX, fluidMinY);
        tessellator.draw();

        tessellator.startDrawingQuads();
        tessellator.setNormal(0, 0, -1);
        tessellator.setColorOpaque_I(colorMult);
        tessellator.addVertexWithUV(0, 1, -0.0635, fluidMinX, fluidMinY);
        tessellator.addVertexWithUV(1, 1, -0.0635, fluidMaxX, fluidMinY);
        tessellator.addVertexWithUV(1, 0, -0.0635, fluidMaxX, fluidMaxY);
        tessellator.addVertexWithUV(0, 0, -0.0635, fluidMinX, fluidMaxY);
        tessellator.draw();

        GL11.glDepthMask(true);
        GL11.glDepthFunc(GL11.GL_LEQUAL);
      }
      GL11.glDisable(GL12.GL_RESCALE_NORMAL);
View Full Code Here

Examples of net.minecraft.client.renderer.Tessellator

      GL11.glTranslatef(0F, 10F, 0F);
  }

  @SideOnly(Side.CLIENT)
  private static void renderHeart(int x, int y, boolean full) {
    Tessellator tess = Tessellator.instance;
    float size = 1 / 16F;

    float startX = full ? 0 : 9 * size;
    float endX = full ? 9 * size : 1;
    float startY = 0;
    float endY = 9 * size;

    tess.startDrawingQuads();
    tess.addVertexWithUV(x, y + 9, 0, startX, endY);
    tess.addVertexWithUV(x + (full ? 9 : 7), y + 9, 0, endX, endY);
    tess.addVertexWithUV(x + (full ? 9 : 7), y, 0, endX, startY);
    tess.addVertexWithUV(x, y, 0, startX, startY);
    tess.draw();
  }
View Full Code Here

Examples of net.minecraft.client.renderer.Tessellator

        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);
        Tessellator tessellator = Tessellator.instance;
        int yOffset = 0;
       
        GL11.glDisable(GL11.GL_TEXTURE_2D);
        tessellator.startDrawingQuads();
        int stringMiddle = fontRenderer.getStringWidth(text) / 2;
        tessellator.setColorRGBA_F(0.0F, 0.0F, 0.0F, 0.5F);
        tessellator.addVertex(-stringMiddle - 1, -1 + yOffset, 0.0D);
        tessellator.addVertex(-stringMiddle - 1, 8 + yOffset, 0.0D);
        tessellator.addVertex(stringMiddle + 1, 8 + yOffset, 0.0D);
        tessellator.addVertex(stringMiddle + 1, -1 + yOffset, 0.0D);
        tessellator.draw();
        GL11.glEnable(GL11.GL_TEXTURE_2D);
        GL11.glColor4f(1f, 1f, 1f, 0.5f);
        fontRenderer.drawString(text, -fontRenderer.getStringWidth(text) / 2, yOffset, color);
        GL11.glEnable(GL11.GL_DEPTH_TEST);
        GL11.glDepthMask(true);
View Full Code Here

Examples of net.minecraft.client.renderer.Tessellator

    if(!(block instanceof BlockFluidClassic))
    {
      return false;
    }

    Tessellator tessellator = Tessellator.instance;
    int l = block.colorMultiplier(world, x, y, z);
    float red = (l >> 16 & 255) / 255.0F;
    float green = (l >> 8 & 255) / 255.0F;
    float blue = (l & 255) / 255.0F;

    BlockFluidClassic theFluid = (BlockFluidClassic) block;
    int bMeta = world.getBlockMetadata(x, y, z);

    boolean renderTop = world.getBlockId(x, y - theFluid.densityDir, z) != theFluid.blockID;

    boolean renderBottom = block.shouldSideBeRendered(world, x, y + theFluid.densityDir, z, 0)
        && world.getBlockId(x, y + theFluid.densityDir, z) != theFluid.blockID;

    // bMeta != theFluid.quantaPerBlock - 1 && world.getBlockId(x, y - 1, z)
    // !=
    // theFluid.blockID;

    boolean[] renderSides = new boolean[] { block.shouldSideBeRendered(world, x, y, z - 1, 2), block.shouldSideBeRendered(world, x, y, z + 1, 3),
        block.shouldSideBeRendered(world, x - 1, y, z, 4), block.shouldSideBeRendered(world, x + 1, y, z, 5) };

    if(!renderTop && !renderBottom && !renderSides[0] && !renderSides[1] && !renderSides[2] && !renderSides[3])
    {
      return false;
    }
    else
    {
      boolean rendered = false;
      float f3 = 0.5F;
      float f4 = 1.0F;
      float f5 = 0.8F;
      float f6 = 0.6F;

      double d2, d3, d4, d5;

      float flow11 = getFluidHeightForRender(world, x, y, z, theFluid);

      if(flow11 != 1)
      {

        float flow00 = getFluidHeightForRender(world, x - 1, y, z - 1, theFluid);
        float flow01 = getFluidHeightForRender(world, x - 1, y, z, theFluid);
        float flow02 = getFluidHeightForRender(world, x - 1, y, z + 1, theFluid);
        float flow10 = getFluidHeightForRender(world, x, y, z - 1, theFluid);
        float flow12 = getFluidHeightForRender(world, x, y, z + 1, theFluid);
        float flow20 = getFluidHeightForRender(world, x + 1, y, z - 1, theFluid);
        float flow21 = getFluidHeightForRender(world, x + 1, y, z, theFluid);
        float flow22 = getFluidHeightForRender(world, x + 1, y, z + 1, theFluid);

        d2 = getFluidHeightAverage(new float[] { flow00, flow01, flow10, flow11 });
        d3 = getFluidHeightAverage(new float[] { flow01, flow02, flow11, flow12 });
        d4 = getFluidHeightAverage(new float[] { flow11, flow12, flow21, flow22 });
        d5 = getFluidHeightAverage(new float[] { flow10, flow11, flow20, flow21 });
      }
      else
      {
        d2 = flow11;
        d3 = flow11;
        d4 = flow11;
        d5 = flow11;
      }

      double d6 = 0.0010000000474974513D;
      float f7;
      float f8;

      boolean rises = theFluid.densityDir == 1;

      if(renderer.renderAllFaces || renderTop)
      {
        rendered = true;

        Icon icon = block.getIcon(1, bMeta);
        float flowDir = (float) BlockFluidRoot.getFlowDirection(world, x, y, z);

        if(flowDir > -999.0F)
        {
          icon = block.getIcon(2, bMeta);
        }

        d2 -= d6;
        d3 -= d6;
        d4 -= d6;
        d5 -= d6;
        double d7;
        double d8;
        double d9;
        double d10;
        double d11;
        double d12;
        double d13;
        double d14;

        if(flowDir < -999.0F)
        {
          d8 = icon.getInterpolatedU(0.0D);
          d12 = icon.getInterpolatedV(0.0D);
          d7 = d8;
          d11 = icon.getInterpolatedV(16.0D);
          d10 = icon.getInterpolatedU(16.0D);
          d14 = d11;
          d9 = d10;
          d13 = d12;
        }
        else
        {
          f8 = MathHelper.sin(flowDir) * 0.25F;
          f7 = MathHelper.cos(flowDir) * 0.25F;
          d8 = icon.getInterpolatedU(8.0F + (-f7 - f8) * 16.0F);
          d12 = icon.getInterpolatedV(8.0F + (-f7 + f8) * 16.0F);
          d7 = icon.getInterpolatedU(8.0F + (-f7 + f8) * 16.0F);
          d11 = icon.getInterpolatedV(8.0F + (f7 + f8) * 16.0F);
          d10 = icon.getInterpolatedU(8.0F + (f7 + f8) * 16.0F);
          d14 = icon.getInterpolatedV(8.0F + (f7 - f8) * 16.0F);
          d9 = icon.getInterpolatedU(8.0F + (f7 - f8) * 16.0F);
          d13 = icon.getInterpolatedV(8.0F + (-f7 - f8) * 16.0F);
        }

        tessellator.setBrightness(block.getMixedBrightnessForBlock(world, x, y, z));
        f8 = 1.0F;
        tessellator.setColorOpaque_F(f4 * f8 * red, f4 * f8 * green, f4 * f8 * blue);

        if(!rises)
        {
          tessellator.addVertexWithUV(x + 0, y + d2, z + 0, d8, d12);
          tessellator.addVertexWithUV(x + 0, y + d3, z + 1, d7, d11);
          tessellator.addVertexWithUV(x + 1, y + d4, z + 1, d10, d14);
          tessellator.addVertexWithUV(x + 1, y + d5, z + 0, d9, d13);
        }
        else
        {
          tessellator.addVertexWithUV(x + 1, y + 1 - d5, z + 0, d9, d13);
          tessellator.addVertexWithUV(x + 1, y + 1 - d4, z + 1, d10, d14);
          tessellator.addVertexWithUV(x + 0, y + 1 - d3, z + 1, d7, d11);
          tessellator.addVertexWithUV(x + 0, y + 1 - d2, z + 0, d8, d12);
        }
      }

      if(renderer.renderAllFaces || renderBottom)
      {
        rendered = true;

        tessellator.setBrightness(block.getMixedBrightnessForBlock(world, x, y - 1, z));
        float f10 = 1.0F;

        if(!rises)
        {
          tessellator.setColorOpaque_F(f3 * f10, f3 * f10, f3 * f10);
          renderer.renderFaceYNeg(block, x, y + d6, z, block.getIcon(0, bMeta));
        }
        else
        {
          tessellator.setColorOpaque_F(f4 * f10, f4 * f10, f4 * f10);
          renderer.renderFaceYPos(block, x, y + d6, z, block.getIcon(1, bMeta));
        }
      }

      for(int side = 0; side < 4; ++side)
      {
        int x2 = x;
        int z2 = z;

        switch(side)
        {
        case 0:
          --z2;
          break;
        case 1:
          ++z2;
          break;
        case 2:
          --x2;
          break;
        case 3:
          ++x2;
          break;
        }

        Icon icon1 = block.getIcon(side + 2, bMeta);

        if(renderer.renderAllFaces || renderSides[side])
        {
          rendered = true;

          double d15;
          double d16;
          double d17;
          double d18;
          double d19;
          double d20;

          if(side == 0)
          {
            d15 = d2;
            d17 = d5;
            d16 = x;
            d18 = x + 1;
            d19 = z + d6;
            d20 = z + d6;
          }
          else if(side == 1)
          {
            d15 = d4;
            d17 = d3;
            d16 = x + 1;
            d18 = x;
            d19 = z + 1 - d6;
            d20 = z + 1 - d6;
          }
          else if(side == 2)
          {
            d15 = d3;
            d17 = d2;
            d16 = x + d6;
            d18 = x + d6;
            d19 = z + 1;
            d20 = z;
          }
          else
          {
            d15 = d5;
            d17 = d4;
            d16 = x + 1 - d6;
            d18 = x + 1 - d6;
            d19 = z;
            d20 = z + 1;
          }
          float f11 = icon1.getInterpolatedU(0.0D);
          f8 = icon1.getInterpolatedU(8.0D);
          f7 = icon1.getInterpolatedV((1.0D - d15) * 16.0D * 0.5D);
          float f12 = icon1.getInterpolatedV((1.0D - d17) * 16.0D * 0.5D);
          float f13 = icon1.getInterpolatedV(8.0D);
          tessellator.setBrightness(block.getMixedBrightnessForBlock(world, x2, y, z2));
          float f14 = 1.0F;

          if(side < 2)
          {
            f14 *= f5;
          }
          else
          {
            f14 *= f6;
          }
          tessellator.setColorOpaque_F(f4 * f14 * red, f4 * f14 * green, f4 * f14 * blue);

          if(!rises)
          {
            tessellator.addVertexWithUV(d16, y + d15, d19, f11, f7);
            tessellator.addVertexWithUV(d18, y + d17, d20, f8, f12);
            tessellator.addVertexWithUV(d18, y + 0, d20, f8, f13);
            tessellator.addVertexWithUV(d16, y + 0, d19, f11, f13);
          }
          else
          {
            tessellator.addVertexWithUV(d16, y + 1 - 0, d19, f11, f13);
            tessellator.addVertexWithUV(d18, y + 1 - 0, d20, f8, f13);
            tessellator.addVertexWithUV(d18, y + 1 - d17, d20, f8, f12);
            tessellator.addVertexWithUV(d16, y + 1 - d15, d19, f11, f7);
          }
        }
      }

      renderer.renderMinY = 0;
View Full Code Here

Examples of net.minecraft.client.renderer.Tessellator

    float a = (float)(color >> 24 & 255) / 255.0F;
    float r = (float)(color >> 16 & 255) / 255.0F;
    float g = (float)(color >> 8 & 255) / 255.0F;
    float b = (float)(color & 255) / 255.0F;
    Tessellator tessellator = Tessellator.instance;
    GL11.glEnable(GL11.GL_BLEND);
    GL11.glDisable(GL11.GL_TEXTURE_2D);
    GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
    GL11.glColor4f(r, g, b, a);
    tessellator.startDrawingQuads();
    tessellator.addVertex(x1, y2, 0.0D);
    tessellator.addVertex(x2, y2, 0.0D);
    tessellator.addVertex(x2, y1, 0.0D);
    tessellator.addVertex(x1, y1, 0.0D);
    tessellator.draw();
    GL11.glEnable(GL11.GL_TEXTURE_2D);
    GL11.glDisable(GL11.GL_BLEND);
  }
View Full Code Here

Examples of net.minecraft.client.renderer.Tessellator

    GL11.glDisable(GL11.GL_TEXTURE_2D);
    GL11.glEnable(GL11.GL_BLEND);
    GL11.glDisable(GL11.GL_ALPHA_TEST);
    GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
    GL11.glShadeModel(GL11.GL_SMOOTH);
    Tessellator tessellator = Tessellator.instance;
    tessellator.startDrawingQuads();
    tessellator.setColorRGBA_F(r1, g1, b1, a1);
    tessellator.addVertex(x2, y1, zLevel);
    tessellator.addVertex(x1, y1, zLevel);
    tessellator.setColorRGBA_F(r2, g2, b2, a2);
    tessellator.addVertex(x1, y2, zLevel);
    tessellator.addVertex(x2, y2, zLevel);
    tessellator.draw();
    GL11.glShadeModel(GL11.GL_FLAT);
    GL11.glDisable(GL11.GL_BLEND);
    GL11.glEnable(GL11.GL_ALPHA_TEST);
    GL11.glEnable(GL11.GL_TEXTURE_2D);
  }
View Full Code Here

Examples of net.minecraft.client.renderer.Tessellator

  public static void drawTexturedModalRect(int x, int y, int u, int v, int width, int height, float zLevel)
  {
    float xScale = 0.00390625F;
    float yScale = 0.00390625F;
    Tessellator var9 = Tessellator.instance;
    var9.startDrawingQuads();
    var9.addVertexWithUV(x,         y + height, zLevel, u * xScale,           (v + height) * yScale);
    var9.addVertexWithUV(x + width, y + height, zLevel, (u + width) * xScale, (v + height) * yScale);
    var9.addVertexWithUV(x + width, y,          zLevel, (u + width) * xScale, v * yScale);
    var9.addVertexWithUV(x,         y,          zLevel, u * xScale,           v * yScale);
    var9.draw();
  }
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.