I've tried to make a simple class for loading spritesheets and drawing 2D textures from it. However, when I try to render one of the sprites, it doesn't do that properly. I either get nothing or just some pink dots (http://i.imgur.com/qQl0Y5n.png
). Can someone please help me find out what is wrong? Code: http://pastebin.com/Ws5kcwcz
Also, here's my initGL method if that helps: http://pastebin.com/V9sVFay8
Thanks in advance!
EDIT: I figured it out myself. I just needed to use getImageHeight() and getImageWidth() instead of getWidth() and getHeight().