diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2021-07-24 00:02:23 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2021-07-24 00:02:23 +0200 |
commit | dc729009ac22697406a42c8fddcdf6b470ef8e11 (patch) | |
tree | d8682cbb8d3a05410f9530f016ab712a4d37e3d5 /src/renderer/TexList.cpp | |
parent | fix (diff) | |
parent | Merge branch 'miami' into lcs (diff) | |
download | re3-dc729009ac22697406a42c8fddcdf6b470ef8e11.tar re3-dc729009ac22697406a42c8fddcdf6b470ef8e11.tar.gz re3-dc729009ac22697406a42c8fddcdf6b470ef8e11.tar.bz2 re3-dc729009ac22697406a42c8fddcdf6b470ef8e11.tar.lz re3-dc729009ac22697406a42c8fddcdf6b470ef8e11.tar.xz re3-dc729009ac22697406a42c8fddcdf6b470ef8e11.tar.zst re3-dc729009ac22697406a42c8fddcdf6b470ef8e11.zip |
Diffstat (limited to 'src/renderer/TexList.cpp')
-rw-r--r-- | src/renderer/TexList.cpp | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/renderer/TexList.cpp b/src/renderer/TexList.cpp new file mode 100644 index 00000000..1689837f --- /dev/null +++ b/src/renderer/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 |