This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static int createTexture(final String path) throws IOException { | |
final BufferedImage img = ImageIO.read(SpriteShootout.class.getClassLoader().getResource(path)); | |
final int w = img.getWidth(); | |
final int h = img.getHeight(); | |
final ByteBuffer buffer = readImage(img); | |
final int texID = glGenTextures(); |