summaryrefslogtreecommitdiffstats
path: root/src/renderer/TexList.cpp
blob: 1689837f4d411a8ae4919efe9053616c2b2e8c58 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#include "common.h"
#include "TexList.h"
#include "rtbmp.h"
#include "FileMgr.h"

bool CTexList::ms_nTexUsed[MAX_TEXUSED];

void
CTexList::Initialise()
{}

void
CTexList::Shutdown()
{}

RwTexture *
CTexList::SetTexture(int32 slot, char *name)
{
	return nil;
}

int32
CTexList::GetFirstFreeTexture()
{
	for (int32 i = 0; i < MAX_TEXUSED; i++)
		if (!ms_nTexUsed[i])
			return i;
	return -1;
}

RwTexture *
CTexList::LoadFileNameTexture(char *name)
{
	return SetTexture(GetFirstFreeTexture(), name);
}

void
CTexList::LoadGlobalTextureList()
{
	CFileMgr::SetDir("TEXTURES");
}