Loading an image
•
•void glTexImage2D(GL_TEXTURE_2D
•GLint level,  // the mipmap level
•GLint components, // number of color component (1..4)
•GLsizei width,    // must be 2^n
•GLsizei height,   // must be 2^n
•GLint border,     // width of border
•GLenum format, // GL_RGB, GL_RGBA, GL_ALPHA ecc
•GLenum type, // the data type of pixel (GL_BYTE, ecc)
•const GLvoid *pixels // a pointer to the image.
•);
•