polyadvent

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

skybox.h (373B)


      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 	struct model_id model_id;
     13 	struct node node;
     14 	float *mvp;
     15 };
     16 
     17 void create_skybox(struct skybox *skybox, struct gpu_program *program);
     18 void render_skybox(struct skybox *skybox, mat4 *camera);
     19 
     20 #endif /* SKYBOX_H */