Logo Search packages:      
Sourcecode: gaia version File versions  Download package

Texture Class Reference

#include <Texture.h>

List of all members.

Detailed Description

Texture Container. Handles loading textures from files (or memory buffer) and OpenGL stuff

Definition at line 59 of file Texture.h.

Public Member Functions

void LoadJPEG (int source,...)
void LoadPNG (int source,...)
void SetTexture ()
 Texture ()
void Unload ()
virtual ~Texture ()

Protected Attributes

GLint m_glFormat
 Format of texture. Determined on loading, used in glTexture2d.
GLint m_glInternalFormat
 Internal OpenGL format of texture. Determined on loading, used in glTexture2d.
GLint m_Height
 Texture height.
GLuint m_ID
 OpenGL ID of texture.
unsigned char * m_Pixels
 Store for raw rexture data (when not uploaded to OpenGL).
GLint m_Width
 Texture width.

Static Private Member Functions

static void my_jpeg_error_exit (j_common_ptr cinfo)
static boolean my_jpeg_fill_input_buffer (j_decompress_ptr cinfo)
static void my_jpeg_mem_src (j_decompress_ptr cinfo, void *mem, int len)
static void my_jpeg_noop (j_decompress_ptr cinfo)
static void my_jpeg_skip_input_data (j_decompress_ptr cinfo, long num_bytes)
static void my_png_error_fn (png_structp png_ptr, png_const_charp error_msg)
static void my_png_read_fn (png_structp png_ptr, png_bytep data, png_size_t length)

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index