和煦樱
我是使用了以下的这段代码实现渲染的...但是图片覆盖在原版的ToolTips之下..这该如何是好  1.7.10-1614核心
GL11.glPushMatrix();
        GL11.glEnable(GL11.GL_BLEND);
        GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
        GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);

        // 绑定你的图像资源
        textureManager.bindTexture(new ResourceLocation("arcticmobs", "textures/guis/arix_icon.png")); // 替换为你的图像路径

        Tessellator tessellator = Tessellator.instance;
        tessellator.startDrawingQuads();

        tessellator.addVertexWithUV(imageX, imageY + imageHeight, 0.0D, 0.0D, 1.0D);
        tessellator.addVertexWithUV(imageX + imageWidth, imageY + imageHeight, 0.0D, 1.0D, 1.0D);
        tessellator.addVertexWithUV(imageX + imageWidth, imageY, 0.0D, 1.0D, 0.0D);
        tessellator.addVertexWithUV(imageX, imageY, 0.0D, 0.0D, 0.0D);

        tessellator.draw();

        GL11.glDisable(GL11.GL_BLEND);
        GL11.glPopMatrix();复制代码

第一页 上一页 下一页 最后一页