memory setup

This commit is contained in:
Asuro
2025-02-09 03:01:43 +01:00
parent fbed568fae
commit df752065af
12 changed files with 227 additions and 80 deletions

26
src/engine/Shared.h Normal file
View 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)();