WIP docs: commenting in render.c/render.h and README updates
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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++)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user