Posted December 26, 20159 yr So I am drawing a texture to the HUD but when I try and change the scale via GL11.glScalef is effects all other elements(obviously so). Is there something I'm missing or a better way to do this? My current code: ResourceLocation r = new ResourceLocation("maya:textures/gui/socket16.png"); mc.renderEngine.bindTexture(r); GL11.glScalef(0.5F, 0.5F, 0.5F); drawTexturedModalRect(0, 0, 0, 0, 256, 256); Note: the sizes are 256 because is doesn't get cut off.. not sure why that is. Thanks!
December 26, 20159 yr Author Thanks very much good sir! And for future googlers: ResourceLocation r = new ResourceLocation("maya:textures/gui/socket16.png"); mc.renderEngine.bindTexture(r); GL11.glPushMatrix(); GL11.glScalef(0.5F, 0.5F, 0.5F); drawTexturedModalRect(0, 0, 0, 0, 256, 256); GL11.glPopMatrix();
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.