MCPcopy Create free account
hub / github.com/OpenNFS/OpenNFS / getDataForOpenGL

Method getDataForOpenGL

include/TGALoader/TGALoader.h:46–46  ·  view source on GitHub ↗

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 ()); */

Source from the content-addressed store, hash-verified

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);

Callers 2

loadTexturesMethod · 0.80
load_tga_textureMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected