#include "tga.h"#include <stdio.h>#include <stdlib.h>#include <string.h>#include <GL/gl.h>#include <GL/glu.h>#include <iostream>Include dependency graph for tga.cpp:

Go to the source code of this file.
Defines | |
| #define | CHECK_GL_ERROR(msg) |
Typedefs | |
| typedef unsigned char | BYTE |
Functions | |
| int | checkSize (int x) |
| unsigned char * | getRGBA (FILE *s, int size) |
| unsigned char * | getRGB (FILE *s, int size) |
| unsigned char * | getGray (FILE *s, int size) |
| unsigned char * | getData (FILE *s, int sz, int iBits) |
| int | returnError (FILE *s, int error) |
| int | loadTGA (char *name, int id) |
| unsigned int | createTexture (char *filename) |
Variables | |
| GLenum | texFormat |
|
|
Value: {const GLint e = glGetError(); if ((e != 0) && (e != GL_NO_ERROR)) {cerr\
<< endl << "OpenGL-ERROR <0x" << e << "> in " __FILE__ "(" << __LINE__ << ")!" << endl << msg << endl;cerr << gluErrorString(e) << endl;}} |
|
|
|
|
|
Definition at line 56 of file tga.cpp. Referenced by loadTGA(). |
|
|
Definition at line 297 of file tga.cpp. References loadTGA(). Referenced by QLookAndFeel::Init(), and CTextDrawer::Initialise(). |
|
||||||||||||||||
|
Definition at line 193 of file tga.cpp. References getGray(), getRGB(), and getRGBA(). Referenced by loadTGA(). |
|
||||||||||||
|
Definition at line 162 of file tga.cpp. References BYTE, and texFormat. Referenced by getData(). |
|
||||||||||||
|
Definition at line 123 of file tga.cpp. References BYTE, and texFormat. Referenced by getData(). |
|
||||||||||||
|
Definition at line 72 of file tga.cpp. References BYTE, and texFormat. Referenced by getData(). |
|
||||||||||||
|
Definition at line 222 of file tga.cpp. References checkSize(), getData(), returnError(), and texFormat. Referenced by createTexture(). |
|
||||||||||||
|
Definition at line 209 of file tga.cpp. Referenced by loadTGA(). |
|
|
Definition at line 45 of file tga.cpp. Referenced by getGray(), getRGB(), getRGBA(), and loadTGA(). |
1.2.18