Returns the raw array, as needed when uploading the image to OpenGL. ! Upload the image to OpenGL like this: IMAGE Image; gluBuild2DMipmaps (GL_TEXTURE_2D, 4, Image.getWidth (), Image.getHeight (), GL_BGRA, GL_UNSIGNED_BYTE, Image.getDataForOpenGL ()); */
| 44 | gluBuild2DMipmaps (GL_TEXTURE_2D, 4, Image.getWidth (), Image.getHeight (), GL_BGRA, GL_UNSIGNED_BYTE, Image.getDataForOpenGL ()); |
| 45 | */ |
| 46 | const unsigned char* getDataForOpenGL (void) const {return (&m_Pixels[0]);} |
| 47 | |
| 48 | private: |
| 49 | void LoadCompressedTGA (FILE* pFile); |
no outgoing calls
no test coverage detected