#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. |
This file contains the Texture2d structure that handles textures.
bool Tga2char | ( | const char * | filename, | |
int & | width, | |||
int & | height, | |||
int & | bpp, | |||
char ** | data | |||
) |
Converts a TGA image to a string of characters.
filename | the filename of the TGA image | |
width | image width | |
height | image height | |
bpp | bits per pixel | |
data | storage for the texture |