rodecomp/Source/UI/Cooldowns/CooldownDrawing.h
ragnarok-clanker 2800d0fdc0 Maintenance: Add mandatory field offset markers /* XXXX */ and assertions to UI headers
Batch #1065 by ragnarok-clanker: no function's compiled code changes; checked with 92 compiled unit(s), including every includer of Source/UI/Buttons/UIBmpTextButton.h, Source/UI/Chat/ChatNotifications.h, Source/UI/Cooldowns/CooldownDrawing.h, Source/UI/Cooldowns/CooldownState.h, Source/UI/Edit/ItemTagRetirement.h, Source/UI/Layout/SnapRectangle.h, Source/UI/Lists/UIListBoxEx.h, Source/UI/MiniPartyGrid.h, Source/UI/Party/UIAdvenPartyBoardWnd.h, Source/UI/Party/UIRequestJoinPartyMgr.h, Source/UI/Shop/PriceColor.h, Source/UI/Shortcuts/ShortcutCooldowns.h, Source/UI/Shortcuts/ShortcutGrid.h, Source/UI/Text/TextMarkup.h, Source/UI/Text/UITransBalloonText.h, Source/UI/Window/FrameTextCache.h, Source/UI/Window/UIWindow.h, Source/UI/Window/WindowAncestry.h, Source/UI/Window/WindowRegistration.h.
2026-10-27 13:55:58 +00:00

34 lines
1.1 KiB
C++

#ifndef RAGNAROK_SOURCE_UI_COOLDOWNS_COOLDOWNDRAWING_H
#define RAGNAROK_SOURCE_UI_COOLDOWNS_COOLDOWNDRAWING_H
#include "UI/Cooldowns/CooldownState.h"
#include <cstddef>
#include <vector>
class RenderCommandPool;
class CRenderSystemBase;
struct RenderQueues;
struct CooldownDrawing {
/* 0004 */ std::vector<RenderCommand*> normal;
/* 0010 */ std::vector<RenderCommand*> reverse;
void Draw(
int centerX, int centerY, int radiusX, int radiusY, CooldownState& value, int limit, int offsetX, int offsetY, const CooldownClock& clock,
RenderCommandPool& pool, CRenderSystemBase& system
);
void SubmitNormal(RenderQueues& queues, bool depthAlpha, float depthStart, float depthEnd);
void SubmitReverse(RenderQueues& queues, bool depthAlpha, float depthStart, float depthEnd);
private:
void DrawReverse(CooldownState& value, const CooldownClock& clock, RenderCommandPool& pool, CRenderSystemBase& system);
};
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(CooldownDrawing) == 0x18);
static_assert(offsetof(CooldownDrawing, normal) == 0x00);
static_assert(offsetof(CooldownDrawing, reverse) == 0x0C);
#endif
#endif