- allow texture lookup by full path names. Due to technical limitations this may result in double textures if the same graphics lump is also referenced by its short texture name.
This commit is contained in:
parent
ebd6c18bef
commit
ca4179caa3
10 changed files with 84 additions and 60 deletions
|
|
@ -548,6 +548,37 @@ int FWadCollection::GetNumForFullName (const char *name)
|
|||
return i;
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
// link a texture with a given lump
|
||||
//
|
||||
//==========================================================================
|
||||
|
||||
void FWadCollection::SetLinkedTexture(int lump, FTexture *tex)
|
||||
{
|
||||
if ((size_t)lump < NumLumps)
|
||||
{
|
||||
FResourceLump *reslump = LumpInfo[lump].lump;
|
||||
reslump->LinkedTexture = tex;
|
||||
}
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
// retrieve linked texture
|
||||
//
|
||||
//==========================================================================
|
||||
|
||||
FTexture *FWadCollection::GetLinkedTexture(int lump)
|
||||
{
|
||||
if ((size_t)lump < NumLumps)
|
||||
{
|
||||
FResourceLump *reslump = LumpInfo[lump].lump;
|
||||
return reslump->LinkedTexture;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
// W_LumpLength
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue