I’m trying to use TextureIO.newTexture(…) to read a texture so I can use it for some sprites but whenever I call the function I get a null pointer returned, not matter what set of parameters I feed to it. Does anyone know why it’s happening or how to fix it?
Also, should I be using GL_QUADS with textures on them for my sprites, or should I be using something like glDrawPixels? I’ve used OpenGL in C++ for a class, but I’ve never done anything like make a game. I’ve mostly used it for making 3D stuff. If I were to use glDrawPixels, how would I get them in a format that the function can use?