diff options
Diffstat (limited to 'Build/source/utils/asymptote/shaders.h')
-rw-r--r-- | Build/source/utils/asymptote/shaders.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/shaders.h b/Build/source/utils/asymptote/shaders.h new file mode 100644 index 00000000000..1151de667e9 --- /dev/null +++ b/Build/source/utils/asymptote/shaders.h @@ -0,0 +1,25 @@ +#ifndef __TOGL_SHADERSPROC +#define __TOGL_SHADERSPROC + +#define GLEW_STATIC +#define GLEW_NO_GLU + +#ifdef __APPLE__ +#include <OpenGL/glew.h> +#else +#include <GL/glew.h> +#ifdef __MSDOS__ +#include<windows.h> +#include <GL/wglew.h> +#include <GL/wglext.h> +#endif +#endif + +#include <string> +#include <unordered_set> + +GLuint createShaders(GLchar const *src, int shaderType); +GLuint createShaderFile(std::string file, int shaderType, size_t Nlights, + size_t Nmaterials, + std::unordered_set<std::string> compilerFlags={}); +#endif |