From 944c6c8da4faed39a39026432bc9cc65bc136713 Mon Sep 17 00:00:00 2001 From: octolinkyt Date: Tue, 16 Jun 2026 12:32:11 -0400 Subject: [PATCH] WIP docs: commenting in render.c/render.h and README updates --- README.md | 3 ++- src/docprogress.txt | 6 +++--- src/render.c | 2 +- src/render.h | 3 ++- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 76b1ce0..8b0533e 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,8 @@ It consists of several components: - `src/main.c`, Main script. Takes all other src and actually renders the engine. -- `src/physics.c`, All the science & math crap. Ugh. +- `src/physics.c`, All the science & math crap. Ugh. (physics.h: exposes UpdateEntities function) +- `src/render.c`, Rendering of entities. Entities are currently limited to rectangles for... no particular reason. (render.h: exposes DrawEntities function) - More stuff in src. README in progress. diff --git a/src/docprogress.txt b/src/docprogress.txt index 6221f33..d898a2f 100644 --- a/src/docprogress.txt +++ b/src/docprogress.txt @@ -1,8 +1,8 @@ main.c - Done physics.c - Done, refine later - physics.h -renderer.c - renderer.h + physics.h - Done +renderer.c - Done + renderer.h - Done player.c player.h world.c diff --git a/src/render.c b/src/render.c index ddefc5d..586a831 100644 --- a/src/render.c +++ b/src/render.c @@ -2,7 +2,7 @@ #include "world.h" #include "raylib.h" - +// Take entities, put em on the screen. Basic rendering file. Our entities are just rectangles, which we should lowkey fix... but uh... that's a problem for LATER... void DrawEntities(void) { for (int i = 0; i < MAX_ENTITIES; i++) diff --git a/src/render.h b/src/render.h index 4f2f377..13d41bd 100644 --- a/src/render.h +++ b/src/render.h @@ -1,6 +1,7 @@ #ifndef RENDER_H #define RENDER_H - +// FUNction declaration! yay!!! +// Make an entity! Once again, pretty sure this is must used in main.c void DrawEntities(void); #endif