33 lines
771 B
C++
33 lines
771 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
struct SDL_Window;
|
|
|
|
struct GlobalMemory;
|
|
struct RenderDevice;
|
|
struct MiscData;
|
|
|
|
struct AppState
|
|
{
|
|
SDL_Window* window;
|
|
RenderDevice* renderDevice;
|
|
MiscData* miscData;
|
|
char sprintfBuffer[256];
|
|
|
|
[[nodiscard]] bool isInit() const;
|
|
void destroy();
|
|
|
|
AppState( SDL_Window* window, RenderDevice* renderDevice, MiscData* miscData );
|
|
|
|
AppState( AppState const& other ) = delete;
|
|
AppState( AppState&& other ) noexcept = delete;
|
|
|
|
AppState& operator=( AppState const& other ) = delete;
|
|
AppState& operator=( AppState&& other ) noexcept = delete;
|
|
|
|
~AppState();
|
|
};
|
|
|
|
AppState* AppState_Create( GlobalMemory* memory, uint32_t width, uint32_t height );
|