title: Creating a blank opengl texture
body: <p>I'm working on a game engine, and one of the functions in the Texture class should be to create a blank texture with a specified width, height, and pixel format.</p>
  
  <p>I know how to create the texture and all that, I also know that I can format it using glTexImage2d with null as the data. What annoys me though is that I have to tell openGL the format of my data (even though it's null) which would mean I have to write a function which converts the PIXEL_INTERNAL_FORMAT enum into a PIXEL_FORMAT and a PIXEL_TYPE.</p>
  
  <p>How can I get opengl to allocate memory only based on the PIXEL_INTERNAL_FORMAT?</p>