memory setup
This commit is contained in:
26
src/engine/Shared.h
Normal file
26
src/engine/Shared.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#pragma once
|
||||
#include <cstdint>
|
||||
|
||||
struct SharedWindowData
|
||||
{
|
||||
void* Handle = nullptr;
|
||||
int32_t WindowWidth = 1920;
|
||||
int32_t WindowHeight = 1080;
|
||||
};
|
||||
|
||||
struct GameData
|
||||
{
|
||||
void* PermanentStorage = nullptr;
|
||||
uint64_t PermanentStorageSize = 0;
|
||||
};
|
||||
|
||||
struct SharedData
|
||||
{
|
||||
SharedWindowData Window;
|
||||
GameData Game;
|
||||
};
|
||||
|
||||
typedef void (*Startup)(SharedData& shared);
|
||||
typedef void (*Update)();
|
||||
typedef void (*Shutdown)();
|
||||
|
||||
Reference in New Issue
Block a user