- moved linked textures from file system to texture manager.
This commit is contained in:
parent
1dc47f91c2
commit
2524ea6b0e
7 changed files with 48 additions and 44 deletions
|
|
@ -55,7 +55,6 @@
|
|||
struct FileSystem::LumpRecord
|
||||
{
|
||||
FResourceLump *lump;
|
||||
FGameTexture* linkedTexture;
|
||||
LumpShortName shortName;
|
||||
FString longName;
|
||||
int rfnum;
|
||||
|
|
@ -67,7 +66,6 @@ struct FileSystem::LumpRecord
|
|||
{
|
||||
lump = lmp;
|
||||
rfnum = filenum;
|
||||
linkedTexture = nullptr;
|
||||
flags = 0;
|
||||
|
||||
if (lump->Flags & LUMPF_SHORTNAME)
|
||||
|
|
@ -748,35 +746,6 @@ int FileSystem::GetResource (int resid, const char *type, int filenum) const
|
|||
return i;
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
// link a texture with a given lump
|
||||
//
|
||||
//==========================================================================
|
||||
|
||||
void FileSystem::SetLinkedTexture(int lump, FGameTexture *tex)
|
||||
{
|
||||
if ((size_t)lump < NumEntries)
|
||||
{
|
||||
FileInfo[lump].linkedTexture = tex;
|
||||
}
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
// retrieve linked texture
|
||||
//
|
||||
//==========================================================================
|
||||
|
||||
FGameTexture *FileSystem::GetLinkedTexture(int lump)
|
||||
{
|
||||
if ((size_t)lump < NumEntries)
|
||||
{
|
||||
return FileInfo[lump].linkedTexture;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
// FileLength
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue