Blaze/AppState.h

33 lines
691 B
C

#pragma once
#include <memory>
struct SDL_Window;
struct GlobalMemory;
struct RenderDevice;
struct MiscData;
struct AppState
{
SDL_Window* window;
RenderDevice* renderDevice;
MiscData* miscData;
[[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* CreateAppState( GlobalMemory* memory, uint32_t const width, uint32_t const height );