polyadvent

A game engine from scratch in C
git clone git://jb55.com/polyadvent
Log | Files | Refs | README

render.h (460B)


      1 #ifndef POLYADVENT_RENDER_H
      2 #define POLYADVENT_RENDER_H
      3 
      4 #include "geometry.h"
      5 #include "node.h"
      6 
      7 struct game;
      8 
      9 struct render_config {
     10     int draw_ui;
     11     int is_depth_pass;
     12     node_id camera;
     13     float* projection;
     14     float* depth_vp;
     15 };
     16 
     17 void init_gl(struct resources *resources, int width, int height);
     18 void render (struct game *game, struct render_config *config);
     19 
     20 void wireframe_mode_on();
     21 void wireframe_mode_off();
     22 
     23 #endif /* POLYADVENT_RENDER_H */