Logo
Explore Help
Sign In
bulmanator/ld58
1
0
Fork 0
You've already forked ld58
Code Issues 12 Pull Requests Actions Packages Projects 1 Releases Wiki Activity
Files
raycast
ld58/code/os/core.c

22 lines
443 B
C
Raw Permalink Normal View History

Added memory arena Fixed frames in flight validation error in vulkan Added some utility macros Added function decorator macros Added some consolidation headers/code include files
2025-10-04 00:46:26 +01:00
#if OS_WINDOWS
#include "impl/windows/core.c"
Added virtual memory on Linux
2025-10-04 00:56:55 +01:00
#elif OS_LINUX
#include "impl/linux/core.c"
Added memory arena Fixed frames in flight validation error in vulkan Added some utility macros Added function decorator macros Added some consolidation headers/code include files
2025-10-04 00:46:26 +01:00
#endif
Drawing a textured quad Added new assets Loaded all texture assets into game state Loaded the basic pipeline Setup a hard-coded quad to test drawing Created a very jank vertex struct Added ReadEntireFile for filesystem Added getting file size from file handle Added a descriptor pool to each in flight frame Changed Vk_BufferCreate to handle multiple uses Added shader building to the windows.bat build script
2025-10-04 21:42:04 +01:00
Str8 FS_ReadEntireFile(M_Arena *arena, Str8 path) {
Str8 result = { 0 };
OS_Handle file = FS_FileOpen(path, FS_ACCESS_READ);
if (file.v[0]) {
result.count = FS_FileSize(file);
result.data = M_ArenaPush(arena, U8, .count = result.count);
FS_FileRead(file, result.data, result.count, 0);
FS_FileClose(file);
}
return result;
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.5 Page: 26ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API