Disconsented Posted August 29, 2015 Posted August 29, 2015 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 Quote
Failender Posted August 29, 2015 Posted August 29, 2015 drawTexturedModalRect takes the startX, startY, sizeX, and sizeY as args.. use ur IDE Quote
Disconsented Posted August 29, 2015 Author Posted August 29, 2015 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 Quote
Failender Posted August 29, 2015 Posted August 29, 2015 public void drawTexturedModalRect(int x, int y, int textureX, int textureY, int width, int height) Quote
Disconsented Posted August 29, 2015 Author Posted August 29, 2015 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) Quote
Recommended Posts
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.