summaryrefslogtreecommitdiff
path: root/platformer/src/render.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--platformer/src/render.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/platformer/src/render.h b/platformer/src/render.h
index 24dcf5e..fd95f3b 100644
--- a/platformer/src/render.h
+++ b/platformer/src/render.h
@@ -13,14 +13,17 @@
*
* bool render_init(void); compiles shaders, builds meshes. Returns
* false (after printing why) on failure.
- * void render_frame(const Camera *cam, const Player *player, float aspect);
+ * void render_frame(const Camera *cam, const Player *player, float aspect,
+ * int fps); fps is shown in the top-right corner;
+ * pass 0 until it has been measured
* void render_shutdown(void); frees GL objects
*
* Include <stdbool.h>, "camera.h", "player.h".
*
* CONVENTIONS: Include guard: RENDER_H.
*
- * NOT IN SCOPE: A general renderer / scene graph, materials, textures, text.
+ * NOT IN SCOPE: A general renderer / scene graph, materials, textures, general
+ * text (only the FPS counter).
*
* DONE WHEN: main.c can draw everything with these three calls.
* ============================================================
@@ -34,7 +37,7 @@
#include "player.h"
bool render_init(void);
-void render_frame(const Camera *cam, const Player *player, float aspect);
+void render_frame(const Camera *cam, const Player *player, float aspect, int fps);
void render_shutdown(void);
#endif /* RENDER_H */