shaders.h
1 /************************************************************
2 * (C) Voxel Farm Inc. 2015
3 */
4 
5 #pragma once
6 
7 #include <gl/glew.h>
8 
9 namespace VoxelFarm
10 {
11  namespace GL
12  {
14  unsigned char* readShaderFile(char *filename);
16  GLuint compileProgram(char * vsrc, char * psrc, int attributeCount, int ids[], char* names[]);
17 
18  }
19 }
Contains all classes and functions for the VoxelFarm engine.
unsigned char * readShaderFile(char *filename)
Load shader text file.
GLuint compileProgram(char *vsrc, char *psrc, int attributeCount, int ids[], char *names[])
Compile shader program.