Compare commits

...

2 commits

Author SHA1 Message Date
sam
34ff24b024 fix gitignore 2024-08-18 13:07:41 +12:00
sam
8e81280dd3 fix 2024-08-18 13:07:10 +12:00
3 changed files with 4 additions and 7 deletions

1
.gitignore vendored
View file

@ -5,3 +5,4 @@ gear
compile_commands.json compile_commands.json
**/*.o **/*.o
**/*.glsl.h **/*.glsl.h
.vscode/

View file

@ -77,13 +77,7 @@ sapp_desc sokol_main(int argc, char* argv[]) {
.cleanup_cb = cleanup, .cleanup_cb = cleanup,
.width = 640, .width = 640,
.height = 480, .height = 480,
#ifdef SOKOL_GLCORE .window_title = "Gear",
.window_title = "Gear (GLCORE)",
#elif SOKOL_D3D11
.window_title = "Gear (D3D11)",
#elif SOKOL_METAL
.window_title = "Gear (Metal)",
#endif
.icon.sokol_default = true, .icon.sokol_default = true,
.logger.func = slog_func, .logger.func = slog_func,
}; };

View file

@ -1,3 +1,4 @@
#ifndef SOKOL_METAL
#define SOKOL_IMPL #define SOKOL_IMPL
#include <sokol/sokol_app.h> #include <sokol/sokol_app.h>
#include <sokol/sokol_audio.h> #include <sokol/sokol_audio.h>
@ -6,3 +7,4 @@
#include <sokol/sokol_glue.h> #include <sokol/sokol_glue.h>
#include <sokol/sokol_log.h> #include <sokol/sokol_log.h>
#include <sokol/sokol_time.h> #include <sokol/sokol_time.h>
#endif