Files
DevilutionX/Source/engine/backbuffer_state.hpp
Gleb Mazovetskiy 1da4be3839 Fix chat
Accidentally broken by #5453
2022-11-02 11:19:00 +00:00

40 lines
716 B
C++

#pragma once
#include <cstdint>
#include "engine/rectangle.hpp"
#include "engine/surface.hpp"
namespace devilution {
enum class PanelDrawComponent {
Health,
Mana,
ControlButtons,
Belt,
FIRST = Health,
LAST = Belt
};
struct DrawnCursor {
Rectangle rect;
uint8_t behindBuffer[8192];
};
void InitBackbufferState();
void RedrawEverything();
bool IsRedrawEverything();
void RedrawViewport();
bool IsRedrawViewport();
void RedrawComplete();
void RedrawComponent(PanelDrawComponent component);
bool IsRedrawComponent(PanelDrawComponent component);
void RedrawComponentComplete(PanelDrawComponent component);
DrawnCursor &GetDrawnCursor();
} // namespace devilution