37 lines
883 B
C++
37 lines
883 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
|
|
struct SDL_Window;
|
|
|
|
struct GlobalMemory;
|
|
struct RenderDevice;
|
|
struct EntityManager;
|
|
struct TextureManager;
|
|
struct MiscData;
|
|
|
|
struct AppState
|
|
{
|
|
SDL_Window* window;
|
|
RenderDevice* renderDevice;
|
|
EntityManager* entityManager;
|
|
MiscData* miscData;
|
|
char sprintfBuffer[256];
|
|
|
|
[[nodiscard]] bool isInit() const;
|
|
void destroy();
|
|
|
|
AppState( SDL_Window* window, RenderDevice* renderDevice, EntityManager* entityManager, 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 );
|