   Loaded image with devil
  hihow can i detcet type of loaded image with devil (cubemap,2D image or etc)?   
  You can get all types of information about your image using:ilGetInteger(IL_IMAGE_SOMETHING);Here's an example from my code:glTexImage3D(GL_TEXTURE_3D, 0, ilGetInteger(IL_IMAGE_BPP),  ilGetInteger(IL_IMAGE_WIDTH), ilGetInteger(IL_IMAGE_HEIGHT), ilGetInteger(IL_IMAGE_DEPTH), 0, ilGetInteger(IL_IMAGE_FORMAT),  ilGetInteger(IL_IMAGE_TYPE), ilGetData());If you look at what types there are, you'll be sure to find what you are looking for :)   ;  Btw: Here's a code I'm using to differentiate volume textures and it's counterpart:int mode;mode = (ilGetInteger(IL_IMAGE_DEPTH) > 1) ? (GL_TEXTURE_3D) : (GL_TEXTURE_2D);ilBindImage(imageID_);glGenTextures( 1, &glTextureHandle_);glBindTexture( mode, glTextureHandle_);glTexParameteri(mode,GL_TEXTURE_MIN_FILTER,GL_LINEAR);// Linear FilteringglTexParameteri(mode,GL_TEXTURE_MAG_FILTER,GL_LINEAR);// Linear Filteringif (mode == GL_TEXTURE_2D) {glTexImage2D(GL_TEXTURE_2D, 0, ilGetInteger(IL_IMAGE_BPP),  ilGetInteger(IL_IMAGE_WIDTH), ilGetInteger(IL_IMAGE_HEIGHT), 0,  ilGetInteger(IL_IMAGE_FORMAT), ilGetInteger(IL_IMAGE_TYPE), ilGetData());} else if (mode == GL_TEXTURE_3D) {glTexImage3D(GL_TEXTURE_3D, 0, ilGetInteger(IL_IMAGE_BPP),  ilGetInteger(IL_IMAGE_WIDTH), ilGetInteger(IL_IMAGE_HEIGHT), ilGetInteger(IL_IMAGE_DEPTH), 0, ilGetInteger(IL_IMAGE_FORMAT),  ilGetInteger(IL_IMAGE_TYPE), ilGetData());}