polyadvent

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

gpu.h (366B)


      1 #pragma once
      2 
      3 #include "shader.h"
      4 
      5 #define MAX_GPU_PROGRAMS 12
      6 
      7 struct gpu {
      8     struct gpu_program programs[MAX_GPU_PROGRAMS];
      9     int num_programs;
     10     int wireframe;
     11 };
     12 
     13 int try_reload_shaders(struct gpu *gpu);
     14 struct gpu_program *get_gpu_program_by_name(struct gpu *gpu, const char *name);
     15 struct gpu_program *new_gpu_program(struct gpu *gpu, const char *name);