title: In Java, Does LWJGL/OpenGL have an equivalent of BufferedImage's subImage for making sprite sheets?
body: <p>I'm doing a test for getting a font in Java, basically getting a larger png of the alphabet, then cut it into smaller parts to get each individual letter as a separate subImage. So far I was using BufferedImage and java.awt.Graphics.</p>
  
  <p>However, I'm planning on using LWJGL in the future, and would like to get more familiar with it(for this test I'm even creating the display with LWJGL), and would like to know if there was an equivalent of subImages in LWJGL's OpenGL. I'd prefer not to get slick.</p>
  
  <p>Here's the image, just in case it helps:
  <a href="http://i.imgur.com/LeL58.png" rel="nofollow">http://i.imgur.com/LeL58.png</a></p>
  
  <p>And here is the code I'm using, it could help.</p>
  
  <pre><code>package typeandscreen;
  
  *imports go here, cut to save space*
  public class Font{
  
      final int width = 78;
      final int height = 12;
      final int rows = 2;
      final int cols = 13;
  
  BufferedImage letters[] = new BufferedImage[rows*cols]; 
  
  
  void test(){
      try{
          final BufferedImage totalImage = ImageIO.read(new File("ABCabcs.png"));
  
      for(int i = 0; i &lt; rows; i++){
  
          for(int j = 0; j &lt; cols; j++){
              letters[(i * cols) + j] = totalImage.getSubimage(
                  j * width,
                  i * height,
                  width,
                  height
              );
          }
      }
      } catch(IOException e){
          e.printStackTrace();
      }
  }
  }
  </code></pre>