Examples of bindTexture()


Examples of net.minecraft.client.renderer.texture.TextureManager.bindTexture()

      Fluid fluid = liquid.getFluid();
      IIcon icon = fluid.getStillIcon();

      if(icon != null)
      {
        textureManager.bindTexture(TextureMap.locationBlocksTexture);

                double u = icon.getInterpolatedU(3.0);
                double u2 = icon.getInterpolatedU(13.0);
                double v = icon.getInterpolatedV(1.0);
                double v2 = icon.getInterpolatedV(15.0);
View Full Code Here

Examples of net.minecraft.client.renderer.texture.TextureManager.bindTexture()

      {
        TextureGroup curTexGroup = itr.next();
        curTexGroup.loadTexture();
        GL11.glCallList(displayListArray[i]);
        if(!defaultTexture.equals(""))
          renderEngine.bindTexture(new ResourceLocation("", defaultTexture)); //TODO : Check. Not sure about this one
      }
    }
  }

  private void compileDisplayList(float worldScale)
View Full Code Here

Examples of net.minecraft.client.renderer.texture.TextureManager.bindTexture()

  public void loadTexture(int defaultTexture)
  {
    if(!texture.equals(""))
    {
      TextureManager renderengine = RenderManager.instance.renderEngine;
      renderengine.bindTexture(new ResourceLocation("", texture)); //TODO : Check. Not sure about this one
    }
    else if(defaultTexture > -1)
    {
      RenderManager.instance.renderEngine.bindTexture(new ResourceLocation("", ""));
    }
View Full Code Here

Examples of net.minecraft.client.renderer.texture.TextureManager.bindTexture()

    {
      GunType gunType = ((ItemGun)item).type;
      ModelGun model = gunType.model;
     
      GL11.glRotatef(-90F, 0F, 0F, 1F);
      texturemanager.bindTexture(FlansModResourceHandler.getTexture(gunType));
      ClientProxy.gunRenderer.renderGun(stack, gunType, 1F / 16F, model, leftHand ? mecha.leftAnimations : mecha.rightAnimations, 0F);
    }
    else
    {
          IIcon icon = stack.getIconIndex();
View Full Code Here

Examples of net.minecraft.client.renderer.texture.TextureManager.bindTexture()

          {
              GL11.glPopMatrix();
              return;
          }
 
          texturemanager.bindTexture(texturemanager.getResourceLocation(stack.getItemSpriteNumber()));
          Tessellator tessellator = Tessellator.instance;
          float f = icon.getMinU();
          float f1 = icon.getMaxU();
          float f2 = icon.getMinV();
          float f3 = icon.getMaxV();
View Full Code Here

Examples of net.minecraft.client.renderer.texture.TextureManager.bindTexture()

 
          if (stack.hasEffect(par3))
          {
              GL11.glDepthFunc(GL11.GL_EQUAL);
              GL11.glDisable(GL11.GL_LIGHTING);
              texturemanager.bindTexture(RES_ITEM_GLINT);
              GL11.glEnable(GL11.GL_BLEND);
              GL11.glBlendFunc(GL11.GL_SRC_COLOR, GL11.GL_ONE);
              float f7 = 0.76F;
              GL11.glColor4f(0.5F * f7, 0.25F * f7, 0.8F * f7, 1.0F);
              GL11.glMatrixMode(GL11.GL_TEXTURE);
View Full Code Here

Examples of net.minecraft.client.renderer.texture.TextureManager.bindTexture()

    Item item = stack.getItem();
    if (!(item instanceof ItemArmor)) return -1;
   
    ItemArmor itemarmor = (ItemArmor)item;
    TextureManager textureManager = Minecraft.getMinecraft().getTextureManager();
    textureManager.bindTexture(RenderBiped.getArmorResource(entity, stack, slot, null));
   
    ModelBiped modelBiped = ForgeHooksClient.getArmorModel(entity, stack, slot, null);
    setRenderPassModel(modelBiped);
    if (modelBiped != null) {
      modelBiped.onGround = mainModel.onGround;
View Full Code Here

Examples of net.minecraft.client.renderer.texture.TextureManager.bindTexture()

    GL11.glEnable(GL12.GL_RESCALE_NORMAL);
    GL11.glTranslatef(-0.5F, -0.5F, 1 / 32.0F);
   
    int passes = item.getRenderPasses(stack.getItemDamage());
    for (int pass = 0; pass < passes; pass++) {
      textureManager.bindTexture(((stack.getItemSpriteNumber() == 0) ? TextureMap.locationBlocksTexture : TextureMap.locationItemsTexture));
      IIcon icon = item.getIcon(stack, pass);
      float minU = icon.getMinU();
      float maxU = icon.getMaxU();
      float minV = icon.getMinV();
      float maxV = icon.getMaxV();
View Full Code Here

Examples of net.minecraft.client.renderer.texture.TextureManager.bindTexture()

    }
   
    if (stack.hasEffect(0)) {
      GL11.glDepthFunc(GL11.GL_EQUAL);
      GL11.glDisable(GL11.GL_LIGHTING);
      textureManager.bindTexture(glint);
      GL11.glEnable(GL11.GL_BLEND);
      GL11.glBlendFunc(GL11.GL_SRC_COLOR, GL11.GL_ONE);
      float f7 = 0.76F;
      GL11.glColor4f(0.5F * f7, 0.25F * f7, 0.8F * f7, 1.0F);
      GL11.glMatrixMode(GL11.GL_TEXTURE);
View Full Code Here

Examples of net.minecraft.client.renderer.texture.TextureManager.bindTexture()

  }

  private void bindTexture(ResourceLocation p_147499_1_) {
    TextureManager texturemanager = TileEntityRendererDispatcher.instance.field_147553_e;
    if(texturemanager != null) {
      texturemanager.bindTexture(p_147499_1_);
    }
  }

  @Override
  @SideOnly(Side.CLIENT)
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.