summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/shaders.h
blob: 0c261ffc315b3643bc287bf2a6622263277557be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#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,  bool explicitcolor=false);
#endif