bi = ImageIO.read(new File(filename));
width = bi.getWidth();
height = bi.getHeight();
ByteBuffer data = stbi_load("/sprites/" + filename, width, height, 0, 0);
For some reason, stbi_load
isn't accepting the second, third, and fourth parameters in the method, even though they're all valid integers. It gives the following error
The method stbi_load(ByteBuffer, IntBuffer, IntBuffer, IntBuffer, int) in the type STBImage is not applicable for the arguments (String, int, int, int, int).
Any ideas why this is happening? Any answers are appreciated