2000-09-25 17:43:52 +02:00
|
|
|
/*************/
|
|
|
|
/*** Utils ***/
|
|
|
|
/*************/
|
|
|
|
|
|
|
|
#ifndef __UTILS_HEADER__
|
|
|
|
#define __UTILS_HEADER__
|
|
|
|
|
2000-10-27 02:06:19 +02:00
|
|
|
#include "maths.h"
|
2000-11-22 23:08:47 +01:00
|
|
|
//#include <gl\gl.h>
|
|
|
|
//#include <gl\glu.h>
|
|
|
|
//#include <gl\glut.h>
|
|
|
|
//#include <gl\glaux.h> // Header File For The Glaux Library
|
2000-10-27 02:06:19 +02:00
|
|
|
|
2000-09-25 17:43:52 +02:00
|
|
|
|
|
|
|
/**************************************************************************************/
|
|
|
|
void DbgMsg(const char * pszFmt,...);
|
2000-10-27 20:18:30 +02:00
|
|
|
|
2000-09-25 17:43:52 +02:00
|
|
|
void BuildGLBox(float XMin,float XMax,float YMin,float YMax,float ZMin,float ZMax);
|
|
|
|
void BuildGLBoxNoNormals(float XMin,float XMax,float YMin,float YMax,float ZMin,float ZMax);
|
2000-10-25 23:00:54 +02:00
|
|
|
void BuildGLQuad(float XMin,float XMax,float YMin,float YMax,float Z);
|
2000-11-22 23:08:47 +01:00
|
|
|
int LoadGLTexture(char *FileName, GLuint &Text,int &Width,int &Height);
|
2000-09-25 17:43:52 +02:00
|
|
|
|
2000-10-27 02:06:19 +02:00
|
|
|
void TNormalise(TVECTOR &V);
|
|
|
|
TVECTOR TCrossProduct(TVECTOR const &V0,TVECTOR const &V1,const TVECTOR &V2 );
|
|
|
|
|
2000-11-17 22:36:13 +01:00
|
|
|
CPoint IDToPoint(int ID,int Width);
|
|
|
|
int PointToID(CPoint &Pnt,int Width);
|
|
|
|
|
2000-11-22 23:08:47 +01:00
|
|
|
//AUX_RGBImageRec *LoadBMP(char *Filename);
|
|
|
|
//void FreeBMP(AUX_RGBImageRec *TextureImage);
|
|
|
|
|
|
|
|
|
|
|
|
//void SaveTGA(char *Filename,int SX,int SY,int SW,int SH);
|
|
|
|
void SaveTGA(char *Filename,int W,int H,char *Data);
|
|
|
|
void BGR2RGB(int W,int H,char *Data);
|
|
|
|
|
|
|
|
|
2000-11-21 22:27:55 +01:00
|
|
|
|
2000-09-25 17:43:52 +02:00
|
|
|
/**************************************************************************************/
|
|
|
|
|
|
|
|
#endif
|