2023-06-17 17:00:55 +00:00
|
|
|
/* date = May 7th 2023 9:54 am */
|
|
|
|
|
|
|
|
#ifndef WIN32_MAIN_H
|
|
|
|
#define WIN32_MAIN_H
|
|
|
|
|
|
|
|
struct win32_state
|
|
|
|
{
|
2023-07-19 15:09:41 +00:00
|
|
|
u64 PerformanceFrequency;
|
|
|
|
b32 SleepIsGranular;
|
|
|
|
|
|
|
|
HWND Window;
|
|
|
|
|
|
|
|
memory_arena *EventArena;
|
|
|
|
platform_event_list EventList;
|
|
|
|
|
|
|
|
char EXEPath[512];
|
|
|
|
char DLLPath[512];
|
|
|
|
char TempDLLPath[512];
|
|
|
|
string ContentsPath;
|
|
|
|
|
|
|
|
platform_cursor Cursor;
|
2023-06-17 17:00:55 +00:00
|
|
|
};
|
|
|
|
|
2023-08-06 10:35:09 +00:00
|
|
|
struct win32_file_find_data
|
|
|
|
{
|
|
|
|
HANDLE Handle;
|
|
|
|
b32 FindFirstReturned;
|
|
|
|
WIN32_FIND_DATAW FindData;
|
|
|
|
};
|
|
|
|
|
2023-06-17 17:00:55 +00:00
|
|
|
struct win32_loaded_code
|
|
|
|
{
|
2023-07-19 15:09:41 +00:00
|
|
|
HMODULE DLL;
|
|
|
|
FILETIME LastWriteTime;
|
|
|
|
|
|
|
|
vn_update_and_render *UpdateAndRender;
|
|
|
|
|
|
|
|
b32 IsValid;
|
2023-06-17 17:00:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif //WIN32_MAIN_H
|