polyadvent

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

skybox.h (444B)


      1 
      2 #ifndef SKYBOX_H
      3 #define SKYBOX_H
      4 
      5 #include "model.h"
      6 #include "shader.h"
      7 #include "node.h"
      8 #include "mat4.h"
      9 
     10 struct skybox {
     11     struct gpu_program *program;
     12     model_id model_id;
     13     gpu_addr attrs[n_vertex_attrs];
     14     struct node node;
     15     struct {
     16         int mvp;
     17     } uniforms;
     18 };
     19 
     20 void create_skybox(struct skybox *skybox, struct gpu_program *program);
     21 void render_skybox(struct skybox *skybox, mat4 *camera);
     22 
     23 #endif /* SKYBOX_H */