summaryrefslogtreecommitdiffstats
path: root/src/render/TexList.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-04-09 09:06:30 +0200
committerSergeanur <s.anureev@yandex.ua>2020-04-09 09:28:50 +0200
commitfd2152923c514d58226f2356ba4b8f43de02dccf (patch)
treeeb8525db2da1274a4a5c5955cacd4d9b0684af94 /src/render/TexList.cpp
parentfix bug (diff)
downloadre3-fd2152923c514d58226f2356ba4b8f43de02dccf.tar
re3-fd2152923c514d58226f2356ba4b8f43de02dccf.tar.gz
re3-fd2152923c514d58226f2356ba4b8f43de02dccf.tar.bz2
re3-fd2152923c514d58226f2356ba4b8f43de02dccf.tar.lz
re3-fd2152923c514d58226f2356ba4b8f43de02dccf.tar.xz
re3-fd2152923c514d58226f2356ba4b8f43de02dccf.tar.zst
re3-fd2152923c514d58226f2356ba4b8f43de02dccf.zip
Diffstat (limited to '')
-rw-r--r--src/render/TexList.cpp41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/render/TexList.cpp b/src/render/TexList.cpp
new file mode 100644
index 00000000..daed620a
--- /dev/null
+++ b/src/render/TexList.cpp
@@ -0,0 +1,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");
+} \ No newline at end of file