setup Makefile with raylib raygui deps
This commit is contained in:
+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