commit cf58527
uint
·
2026-05-03 23:58:49 +0000 UTC
parent 4a6b9e0
create window
2 files changed,
+26,
-2
M
Makefile
+2,
-2
1@@ -1,13 +1,13 @@
2 CC = cc
3-
4 CFLAGS = -std=c99 -Wall -Wextra
5 CPPFLAGS = -Isource/external -Isource/include
6+LDFLAGS = -framework Cocoa -framework CoreVideo -framework IOKit -framework CoreGraphics -framework CoreFoundation -framework Carbon
7
8 SRCS = source/cterm.c
9 OUT = cterm
10
11 all:
12- ${CC} ${SRCS} -o ${OUT}
13+ ${CC} ${SRCS} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -o ${OUT}
14
15 clean:
16 rm -f ${OUT}
+24,
-0
1@@ -0,0 +1,24 @@
2+#define RGFW_IMPLEMENTATION
3+#include <stdlib.h>
4+
5+#include <RGFW.h>
6+#include <grapheme.h>
7+#include <schrift.h>
8+
9+int main(int argc, char* argv[])
10+{
11+ RGFW_window* win = RGFW_createWindow("cterm", 0, 0, 800, 600, 0);
12+ RGFW_event ev;
13+
14+ while (!RGFW_window_shouldClose(win)) {
15+ while (RGFW_window_checkEvent(win, &ev))
16+ ;
17+ }
18+
19+
20+ RGFW_window_close(win);
21+
22+ return EXIT_SUCCESS;
23+ (void) argc, (void) argv;
24+}
25+