testshell/utils/texture2d.h File Reference

Texture reading header file. More...

#include <iostream>
#include <string.h>
#include <stdio.h>
#include <GL/glew.h>

Data Structures

struct  Texture2d
 Structure for storing information about an OpenGL 2D-texture. More...

Functions

bool Tga2char (const char *filename, int &width, int &height, int &bpp, char **data)
 Converts a TGA image to a string of characters.


Detailed Description

Texture reading header file.

This file contains the Texture2d structure that handles textures.


Function Documentation

bool Tga2char ( const char *  filename,
int &  width,
int &  height,
int &  bpp,
char **  data 
)

Converts a TGA image to a string of characters.

Parameters:
filename the filename of the TGA image
width image width
height image height
bpp bits per pixel
data storage for the texture
Returns:
TRUE if the function ended with success


Generated on Thu May 17 20:28:03 2007 for Ocean View by  doxygen 1.5.2