This commit is contained in:
parent
3d8fc3912c
commit
a44030464c
10 changed files with 183 additions and 59 deletions
37
Utils/MapEdit/TexCache.h
Normal file
37
Utils/MapEdit/TexCache.h
Normal file
|
@ -0,0 +1,37 @@
|
|||
/*********************/
|
||||
/*** Texture Cache ***/
|
||||
/*********************/
|
||||
|
||||
#ifndef __TEXCACHE_HEADER__
|
||||
#define __TEXCACHE_HEADER__
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "gl3d.h"
|
||||
#include <gl\gl.h>
|
||||
#include <gl\glu.h>
|
||||
#include <gl\glut.h>
|
||||
#include <Vector>
|
||||
|
||||
struct sTex
|
||||
{
|
||||
char Name[256];
|
||||
GLuint TexID;
|
||||
};
|
||||
|
||||
/*****************************************************************************/
|
||||
/*****************************************************************************/
|
||||
/*****************************************************************************/
|
||||
class CTexCache
|
||||
{
|
||||
public:
|
||||
|
||||
int ProcessTexture(char *TexName);
|
||||
int AddTexture(char *TexName);
|
||||
|
||||
|
||||
std::vector<sTex> TexList;
|
||||
|
||||
};
|
||||
|
||||
/*****************************************************************************/
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue