Main Page   Namespace List   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

/cygdrive/d/Eigene Dateien/!DProcs/code_gen/tga.cpp File Reference

#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:

Include dependency graph

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


Define Documentation

#define CHECK_GL_ERROR msg   
 

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


Typedef Documentation

typedef unsigned char BYTE
 

Definition at line 47 of file tga.cpp.

Referenced by getGray(), getRGB(), and getRGBA().


Function Documentation

int checkSize int    x
 

Definition at line 56 of file tga.cpp.

Referenced by loadTGA().

unsigned int createTexture char *    filename
 

Definition at line 297 of file tga.cpp.

References loadTGA().

Referenced by QLookAndFeel::Init(), and CTextDrawer::Initialise().

unsigned char* getData FILE *    s,
int    sz,
int    iBits
 

Definition at line 193 of file tga.cpp.

References getGray(), getRGB(), and getRGBA().

Referenced by loadTGA().

unsigned char* getGray FILE *    s,
int    size
 

Definition at line 162 of file tga.cpp.

References BYTE, and texFormat.

Referenced by getData().

unsigned char* getRGB FILE *    s,
int    size
 

Definition at line 123 of file tga.cpp.

References BYTE, and texFormat.

Referenced by getData().

unsigned char* getRGBA FILE *    s,
int    size
 

Definition at line 72 of file tga.cpp.

References BYTE, and texFormat.

Referenced by getData().

int loadTGA char *    name,
int    id
 

Definition at line 222 of file tga.cpp.

References checkSize(), getData(), returnError(), and texFormat.

Referenced by createTexture().

int returnError FILE *    s,
int    error
 

Definition at line 209 of file tga.cpp.

Referenced by loadTGA().


Variable Documentation

GLenum texFormat
 

Definition at line 45 of file tga.cpp.

Referenced by getGray(), getRGB(), getRGBA(), and loadTGA().


Generated on Thu Mar 18 18:34:25 2004 for miniQT by doxygen1.2.18