2026 Renovation #3
+2
-1
@@ -1,2 +1,3 @@
|
||||
build/
|
||||
*~
|
||||
*~
|
||||
*.o
|
||||
@@ -0,0 +1,16 @@
|
||||
CC = cc
|
||||
CFLAGS = -g -Wall -Iinclude
|
||||
SOURCES = $(wildcard src/*.c)
|
||||
OBJECTS = $(SOURCES:.c=.o)
|
||||
LDFLAGS = -lraylib
|
||||
HEADERS = \
|
||||
include/raygui.h
|
||||
|
||||
adhd: $(OBJECTS)
|
||||
$(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS)
|
||||
|
||||
%.o: %.c $(HEADERS)
|
||||
$(CC) $(CFLAGS) -c $< -o $@
|
||||
|
||||
clean:
|
||||
rm -rf $(OBJECTS) adhd
|
||||
+6464
File diff suppressed because it is too large
Load Diff
+33
-1
@@ -1,6 +1,38 @@
|
||||
#include <stdio.h>
|
||||
#include <raygui.h>
|
||||
#include <raylib.h>
|
||||
|
||||
#define WINDOW_HEIGHT 700
|
||||
#define WINDOW_WIDTH 500
|
||||
#define OVERLAY_HEIGHT 300
|
||||
#define OVERLAY_WIDTH 700
|
||||
|
||||
void render_window() {
|
||||
ClearBackground(RAYWHITE);
|
||||
DrawFPS(WINDOW_WIDTH - 50, 10);
|
||||
|
||||
// draw a button for toggle mode
|
||||
}
|
||||
|
||||
void render_overlay() {
|
||||
ClearBackground(BLANK);
|
||||
DrawFPS(OVERLAY_WIDTH - 50, 10);
|
||||
|
||||
// draw a button to toggle mode
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
printf("Welcome to Flowy.adhd\n");
|
||||
|
||||
|
||||
InitWindow(WINDOW_WIDTH, WINDOW_HEIGHT, "Flowy.adhd");
|
||||
|
||||
while (!WindowShouldClose()) {
|
||||
BeginDrawing();
|
||||
render_window();
|
||||
EndDrawing();
|
||||
}
|
||||
|
||||
CloseWindow();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user