Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Texture tex = new Texture(ResourceLoc, texWidth, texHeight);
- Sprite sprite = tex.getSprite(left, top, width, height); < this creates an object that holds a part of the texture. So for a gui it'd be a specific button or something.
- Then you can do tex.bind() and sprite.draw(x,y)
- or sprite.draw(x,y,width,height)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement