diff options
| author | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-12 07:54:09 +0100 |
|---|---|---|
| committer | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-12 07:54:09 +0100 |
| commit | 6a474e0bbb3ef0cb3221b865b4e5187eda2e35f6 (patch) | |
| tree | 7d86001359647aa962278de3d914f54056746ddf | |
| parent | 80e45104abcc4424a3fae17870bc05851b7c6447 (diff) | |
adds gfx node
| -rw-r--r-- | Makefile | 8 | ||||
| -rw-r--r-- | src/gfx.c | 3 |
2 files changed, 9 insertions, 2 deletions
@@ -53,12 +53,15 @@ FREETYPE_FLAGS = \ CGLM_DIR = $(WORK_DIR)/cglm CGLM_INCLUDE = $(CGLM_DIR)/include +SOKOL_DIR = $(WORK_DIR)/sokol + CSH_FLAGS += \ -I$(MI_INCLUDE) \ -I$(HASHMAP_DIR) \ -I$(GLAD_DIR) \ -I$(CGLM_INCLUDE) \ - -I$(FREETYPE_INCLUDE) + -I$(FREETYPE_INCLUDE) \ + -I$(SOKOL_DIR) CMAKE_GENERATOR = "Unix Makefiles" @@ -73,6 +76,7 @@ SOURCES = \ $(SRC_DIR)/graphics.cc \ $(SRC_DIR)/text.cc \ $(SRC_DIR)/rendering.cc \ + $(SRC_DIR)/gfx.c \ $(GLAD_DIR)/glad.c \ $(HASHMAP_SOURCE) @@ -82,7 +86,7 @@ OBJECTS += $(MI_OBJECT) DEPS = $(OBJECTS:.o=.d) -LIBRARIES = -lwayland-client -lEGL -lwayland-egl $(FREETYPE_ARCHIVE) +LIBRARIES = -lwayland-client -lEGL -lwayland-egl $(FREETYPE_ARCHIVE) -lGL all: $(WAYCLOCK) diff --git a/src/gfx.c b/src/gfx.c new file mode 100644 index 0000000..25902a2 --- /dev/null +++ b/src/gfx.c @@ -0,0 +1,3 @@ +#define SOKOL_IMPL +#define SOKOL_GLCORE +#include "sokol_gfx.h"
\ No newline at end of file |
