Original Post
What ILenum values do I pass to ilGetInteger() to pull the appropriate data for internalformat variable in glTexImage2D()? So far, I figured out: glTexImage2D(GL_TEXTURE_2D, 0, 3, ilGetInteger( IL_IMAGE_WIDTH ), ilGetInteger( IL_IMAGE_HEIGHT ), 0, ilGetInteger( IL_IMAGE_FORMAT ), ilGetInteger( IL_IMAGE_TYPE ), ilGetData()); Is what I have so far. So what ILenum do I use for the spot where the 3 is? Also, how do I correct JPGs and PNGs automatically so that they aren't flipped the wrong way, without affecting other image types? [Edited by - n00body on February 19, 2007 8:29:55 PM]