Added image loading
Added some string functions and macros Added path listing on windows Added assets
This commit is contained in:
10
code/first.c
10
code/first.c
@@ -2,11 +2,16 @@
|
||||
#include <stdbool.h>
|
||||
#include <SDL3/SDL.h>
|
||||
|
||||
#define STB_IMAGE_IMPLEMENTATION 1
|
||||
#include <stb_image.h>
|
||||
|
||||
#include "core/core.h"
|
||||
#include "os/core.h"
|
||||
|
||||
#include "vulkan/core.h"
|
||||
|
||||
#include "game/core.h"
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
(void) argc;
|
||||
(void) argv;
|
||||
@@ -24,6 +29,10 @@ int main(int argc, char **argv) {
|
||||
|
||||
Vk_Setup(window);
|
||||
|
||||
|
||||
M_Arena *garena = M_ArenaAlloc(GB(64), .initial = MB(4));
|
||||
G_ImagesLoad(garena);
|
||||
|
||||
bool running = true;
|
||||
while (running) {
|
||||
SDL_Event e;
|
||||
@@ -74,3 +83,4 @@ int main(int argc, char **argv) {
|
||||
#include "core/core.c"
|
||||
#include "os/core.c"
|
||||
#include "vulkan/core.c"
|
||||
#include "game/core.c"
|
||||
|
||||
Reference in New Issue
Block a user