Skip to main content
gamedev.net
🔒 Locked

DevIL: ilGetInteger() & glTexImage2D

Started by n00body 0 replies 1.5k views
Original Post
n00body
n00body
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]

[Hardware:] Falcon Northwest Tiki, Windows 7, Nvidia Geforce GTX 970 [Websites:] Development Blog |

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.