2020-05-24 07:58:56 +02:00
|
|
|
#pragma once
|
|
|
|
|
2020-09-15 01:21:17 +02:00
|
|
|
#include <limits.h>
|
2020-05-24 07:58:56 +02:00
|
|
|
#include "textures.h"
|
2020-04-10 18:17:26 +02:00
|
|
|
#include "image.h"
|
2020-05-24 19:12:22 +02:00
|
|
|
#include "i_time.h"
|
2020-06-20 18:17:49 +02:00
|
|
|
#include "intvec.h"
|
2022-01-23 21:30:00 +01:00
|
|
|
#include "name.h"
|
2022-12-07 17:10:27 +01:00
|
|
|
#include "tiletexture.h"
|
|
|
|
#include "maptypes.h"
|
|
|
|
#include "texinfo.h"
|
|
|
|
#include "texturemanager.h"
|
2020-05-24 13:53:27 +02:00
|
|
|
|
2022-12-07 17:10:27 +01:00
|
|
|
// all that's left here is the wrappers that need to go away.
|
2020-05-24 13:53:27 +02:00
|
|
|
|
2020-05-24 07:58:56 +02:00
|
|
|
|
2022-12-07 17:10:27 +01:00
|
|
|
inline const FTextureID spritetypebase::spritetexture() const
|
2020-05-24 07:58:56 +02:00
|
|
|
{
|
2022-12-07 17:10:27 +01:00
|
|
|
return tileGetTextureID(picnum);
|
|
|
|
}
|
2020-05-24 07:58:56 +02:00
|
|
|
|
2022-12-10 20:14:39 +01:00
|
|
|
inline void spritetypebase::setspritetexture(FTextureID tex)
|
|
|
|
{
|
|
|
|
picnum = legacyTileNum(tex);
|
|
|
|
}
|
|
|
|
|
2022-12-07 17:10:27 +01:00
|
|
|
//[[deprecated]]
|
2020-06-28 21:38:25 +02:00
|
|
|
inline FGameTexture* tileGetTexture(int tile, bool animate = false)
|
2020-05-24 12:31:38 +02:00
|
|
|
{
|
2022-12-07 17:10:27 +01:00
|
|
|
auto texid = tileGetTextureID(tile);
|
|
|
|
if (animate) tileUpdatePicnum(texid);
|
|
|
|
return TexMan.GetGameTexture(texid);
|
2020-05-29 23:33:26 +02:00
|
|
|
}
|