I am using LWJGL to try and use a PNG as a button Texture. The only way I know how to make a button is to draw a Quad in openGL then bind a texture to it. Is there a way to make the Texture be the bounds of the button? All i could think to do to actually crop the click detection area was to draw multiple Quad to the screen and then bind part of the texture to each, and there has to be a better way than that.
I would be grateful for any help, and if what i am asking for does not make sense tell me and i will try to explain better.