mirror of
https://github.com/ZDoom/Raze.git
synced 2024-12-03 09:32:45 +00:00
43f4962561
This better reflects how this stuff gets used.
33 lines
731 B
C++
33 lines
731 B
C++
#pragma once
|
|
|
|
#include <limits.h>
|
|
#include "textures.h"
|
|
#include "image.h"
|
|
#include "i_time.h"
|
|
#include "intvec.h"
|
|
#include "name.h"
|
|
#include "tiletexture.h"
|
|
#include "maptypes.h"
|
|
#include "texinfo.h"
|
|
#include "texturemanager.h"
|
|
|
|
constexpr int TRANSPARENT_INDEX = 0;
|
|
|
|
// all that's left here is the wrappers that need to go away.
|
|
inline const FTextureID spritetypebase::spritetexture() const
|
|
{
|
|
return tileGetTextureID(picnum);
|
|
}
|
|
|
|
inline void spritetypebase::setspritetexture(FTextureID tex)
|
|
{
|
|
picnum = legacyTileNum(tex);
|
|
}
|
|
|
|
//[[deprecated]]
|
|
inline FGameTexture* tileGetTexture(int tile, bool animate = false)
|
|
{
|
|
auto texid = tileGetTextureID(tile);
|
|
if (animate) tileUpdatePicnum(texid);
|
|
return TexMan.GetGameTexture(texid);
|
|
}
|