title: How to create bitmap from integer array in C / OpenGL
body: <p>I am trying to move my code from Java to C, and I have encountered a problem while trying to find a function in C that can take an array of ints and create a bitmap from it for OpenGL.  In Java, I used </p>
  
  <p><code>
  bitmap = Bitmap.createBitmap( {int array name} , w, h, Config.RGB_565);
  </code></p>
  
  <p>Is there a similar function that I can use in C, or a workaround that I could use?</p>
  
  <p>Also, if it matters, I am programming for Android.</p>
  
  <p>Thanks!</p>