#ifndef __TOGL_SHADERSPROC #define __TOGL_SHADERSPROC #define GLEW_NO_GLU #ifdef __MSDOS__ #define GLEW_STATIC #define _WIN32 #endif #include "GL/glew.h" #ifdef __MSDOS__ #undef _WIN32 #include #include #endif #include extern int GLSLversion; typedef std::pair ShaderfileModePair; GLuint compileAndLinkShader( std::vector const& shaders, std::vector const& defineflags, bool ssbo=true, bool interlock=false, bool compute=false); GLuint createShaderFile(std::string file, int shaderType, std::vector const& constflags, bool ssbo, bool interlock, bool compute); enum attrib {positionAttrib=0,normalAttrib,materialAttrib,colorAttrib, widthAttrib}; #endif