Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
RenderSlots.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4
5namespace monopoly::engine
6{
7 enum class RenderSlot : std::uint8_t
8 {
9 Background2D = 0,
10 World3D = 1,
11 Overlay2D = 2,
12 Sound = 3
13 };
14
15 constexpr std::uint32_t renderSlotBit(RenderSlot slot)
16 {
17 return 1u << static_cast<std::uint8_t>(slot);
18 }
19
20 // Source originale :
21 // LE_SEQNCR_SetDefaultRenderSlotSetForStartSequence(
22 // (1 << 2) | (1 << 1) | (1 << 3)
23 // );
24 inline constexpr std::uint32_t DefaultSequenceRenderSlotSet =
28
29 // Source originale :
30 // LE_MOUSE_RenderSlotToUseForWorldCoordinates = 2;
33
36}
PlayerNumber slot
void shutdownRenderSlots()
constexpr std::uint32_t DefaultSequenceRenderSlotSet
constexpr RenderSlot MouseWorldCoordinatesSlot
bool initializeRenderSlots()
constexpr std::uint32_t renderSlotBit(RenderSlot slot)