This commit is contained in:
parent
a44030464c
commit
7764a46abd
5 changed files with 38 additions and 18 deletions
|
@ -15,7 +15,9 @@
|
|||
struct sTex
|
||||
{
|
||||
char Name[256];
|
||||
char Path[256];
|
||||
GLuint TexID;
|
||||
int Flags;
|
||||
};
|
||||
|
||||
/*****************************************************************************/
|
||||
|
@ -25,8 +27,9 @@ class CTexCache
|
|||
{
|
||||
public:
|
||||
|
||||
int ProcessTexture(char *TexName);
|
||||
int AddTexture(char *TexName);
|
||||
int ProcessTexture(char *TexName,char *Path,int Flags);
|
||||
sTex &GetTex(int Id) {return(TexList[Id]);}
|
||||
GLuint GetTexGLId(int Id) {return(TexList[Id].TexID);}
|
||||
|
||||
|
||||
std::vector<sTex> TexList;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue