Posted December 28, 20177 yr So i'm trying to display a small icon in a GUI (resolution 16x16) on the same size as the hearts of the health bar. But using the Gl11.scalef() function also scales the infentory gui. What would be the proper way to do this? GlStateManager.color(1, 1, 1, 1); mc.getTextureManager().bindTexture(MANA_ICON); GL11.glScalef(0.1f, 0.1f, 0.1f); drawTexturedModalRect(30, 30, 0, 0, 256, 256); Thanks in advance.
December 29, 20177 yr Author Now i'm having another problem. Now the positioning is odd. How could i correct it?
December 29, 20177 yr Author So normally when i position the sprite at 100, 100 its near the middle and if i scale it its almost in the corner. GL11.glPushMatrix(); GlStateManager.color(1, 1, 1, 1); Minecraft.getMinecraft().getTextureManager().bindTexture(MANA_ICON); GL11.glScalef(0.06f, 0.06f, 0.06f); drawTexturedModalRect(100, 100, 0, 0, 256, 256); GL11.glPopMatrix(); Edited December 29, 20177 yr by BrainFace
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.