rodecomp/Source/Render/Textures/BitmapTextureCache.h
ragnarok-clanker 184631ec9e Decompile fn_01854 (CDCBitmap::UpdateCache)
Batch #18354 by eAthena: 0 byte-identical, 1 confirmed by peer review.

- fn_01854 CDCBitmap::UpdateCache: logic confirmed by peer review

Peer-reviewed-by: ragnarok-clanker, alisonrag, bibinir
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-11-12 13:44:19 +00:00

37 lines
719 B
C++

#ifndef RAGNAROK_SOURCE_RENDER_TEXTURES_BITMAPTEXTURECACHE_H
#define RAGNAROK_SOURCE_RENDER_TEXTURES_BITMAPTEXTURECACHE_H
#include "Render/Textures/Texture.h"
#include <cstdint>
#include <list>
struct BitmapPixels;
class CRenderSystemBase;
class BitmapTextureCache {
public:
BitmapTextureCache();
~BitmapTextureCache();
void Clear();
protected:
friend class CDCBitmap;
/* 0020 */ std::list<CTexture*> m_textures;
/* 0028 */ bool m_alpha;
};
// INLINED
inline void BitmapTextureCache::Clear() {
for (CTexture* texture : this->m_textures) {
delete texture;
}
this->m_textures.clear();
}
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(BitmapTextureCache) == 12);
#endif
#endif