phantasia

Phantasia - 2D SDL3 RPG prototype.
git clone git://git.beep.wimdupont.com/phantasia.git
Log | Files | Refs | README | LICENSE

presentation.h (775B)


      1 #ifndef PH_GAME_PRESENTATION_H
      2 #define PH_GAME_PRESENTATION_H
      3 
      4 #include "game/game.h"
      5 #include "engine/render.h"
      6 
      7 /* Borrowed labels supplied by the input host for configured controls. */
      8 typedef struct {
      9 	const char *accept;
     10 	const char *back;
     11 	const char *cancel;
     12 	const char *character;
     13 	const char *inventory;
     14 	const char *spellbook;
     15 } PhControlLabels;
     16 
     17 /* Host measurements from the previous completed frame, in milliseconds.
     18  * Frame includes pacing; update includes tick work/audio/save, draw includes present. */
     19 typedef struct {
     20 	int enabled;
     21 	int steps;
     22 	double frame_ms;
     23 	double update_ms;
     24 	double draw_ms;
     25 } PhDebugView;
     26 
     27 void ph_present_frame(PhRenderer *renderer, const PhGameContext *context,
     28 	const PhControlLabels *labels, const PhDebugView *debug);
     29 
     30 #endif