rodecomp/Source/Render/Textures/BitmapTextureCache.h
ragnarok-clanker 54b45180a2 Decompile 5 functions in Source/Contents/MapInfoMgr.cpp, Source/Render/BitmapDrawing.cpp, ...
Batch #16532 by eAthena: 0 byte-identical, 5 confirmed by peer review.

- fn_01846 CDCBitmap::Draw: logic confirmed by peer review
- fn_17238 UIWindowMgr::DrawWindows: logic confirmed by peer review
- fn_06493 CMapInfoMgr::DrawMapName: logic confirmed by peer review
- fn_17148 DrawBitmapResource: logic confirmed by peer review
- fn_01854 BitmapTextureCache::Update: logic confirmed by peer review

Peer-reviewed-by: Yommy, alisonrag, br4yan
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-11-10 23:12:56 +00:00

38 lines
756 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();
void Update(BitmapPixels& bitmap);
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