Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

texpng.cpp File Reference

#include <stdio.h>
#include "OpenGL.h"
#include <string.h>
#include <stdlib.h>
#include <png.h>
#include "texpng.h"
#include "ctype.h"
#include "lib/cg-lib.h"

Functions

void loadPngTex (char *fname, struct tImagePNG *pImagePNG, int *hasAlpha)
 Charge une texture PNG.
void ReverseImage (int width, int height, unsigned char *data, int bytesPerPixel)
void CheckImageDimensions (int sizeX, int sizeY, char *strFileName)
void CreateTexturePNG (unsigned int *textureId, char *strFileName)

Function Documentation

void CheckImageDimensions int  sizeX,
int  sizeY,
char *  strFileName
 

void CreateTexturePNG unsigned int *  textureId,
char *  strFileName
 

void loadPngTex char *  fname,
struct tImagePNG pImagePNG,
int *  hasAlpha
 

Charge une texture PNG.

Parameters:
fname Nom du fichier a charger.
pImagePNG Resultat du chargement.
hasAlpha Indique si l'image chargee a un canal alpha.

void ReverseImage int  width,
int  height,
unsigned char *  data,
int  bytesPerPixel
 


Generated on Thu Mar 24 12:53:47 2005 for Septant by  doxygen 1.4.1