Posted August 29, 201510 yr How do I draw part of a texture? I've noticed that there are a few textures with different components in the same image but I have had trouble finding how vanilla does this
August 29, 201510 yr drawTexturedModalRect takes the startX, startY, sizeX, and sizeY as args.. use ur IDE
August 29, 201510 yr Author drawTexturedModalRect takes the startX, startY, sizeX, and sizeY as args.. use ur IDE Unless I am using a different drawTexturedModalRect the first two int's are the position on screen it draws from not the position of the texture it draws from
August 29, 201510 yr public void drawTexturedModalRect(int x, int y, int textureX, int textureY, int width, int height)
August 29, 201510 yr Author public void drawTexturedModalRect(int x, int y, int textureX, int textureY, int width, int height) Ah I had a silly cheers (Thought that was for texture U,V for some reason)
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.