raze/source/core/textures/buildtiles.h

34 lines
695 B
C
Raw Normal View History

2020-05-24 05:58:56 +00:00
#pragma once
#include <limits.h>
2020-05-24 05:58:56 +00:00
#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"
2020-05-24 11:53:27 +00:00
// all that's left here is the wrappers that need to go away.
2020-05-24 11:53:27 +00:00
2020-05-24 05:58:56 +00:00
inline const FTextureID spritetypebase::spritetexture() const
2020-05-24 05:58:56 +00:00
{
return tileGetTextureID(picnum);
}
2020-05-24 05:58:56 +00:00
inline void spritetypebase::setspritetexture(FTextureID tex)
{
picnum = legacyTileNum(tex);
}
//[[deprecated]]
inline FGameTexture* tileGetTexture(int tile, bool animate = false)
2020-05-24 10:31:38 +00:00
{
auto texid = tileGetTextureID(tile);
if (animate) tileUpdatePicnum(texid);
return TexMan.GetGameTexture(texid);
}