WIP docs: commenting in render.c/render.h and README updates

This commit is contained in:
2026-06-16 12:32:11 -04:00
parent 81d0cbc673
commit 944c6c8da4
4 changed files with 8 additions and 6 deletions

View File

@@ -8,7 +8,8 @@
It consists of several components: It consists of several components:
- `src/main.c`, Main script. Takes all other src and actually renders the engine. - `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. - More stuff in src. README in progress.

View File

@@ -1,8 +1,8 @@
main.c - Done main.c - Done
physics.c - Done, refine later physics.c - Done, refine later
physics.h physics.h - Done
renderer.c renderer.c - Done
renderer.h renderer.h - Done
player.c player.c
player.h player.h
world.c world.c

View File

@@ -2,7 +2,7 @@
#include "world.h" #include "world.h"
#include "raylib.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) void DrawEntities(void)
{ {
for (int i = 0; i < MAX_ENTITIES; i++) for (int i = 0; i < MAX_ENTITIES; i++)

View File

@@ -1,6 +1,7 @@
#ifndef RENDER_H #ifndef RENDER_H
#define 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); void DrawEntities(void);
#endif #endif