#define MSP_GL_SHADER_H_
#include <string>
-#include <GL/gl.h>
+#include "gl.h"
#include "types.h"
namespace Msp {
{
public:
Shader(ShaderType t);
+ Shader(ShaderType t, const std::string &);
~Shader();
void source(sizei count, const char **str, const int *len);
void source(const std::string &str);
void source(const char *str, int len);
- bool compile();
+ void compile();
uint get_id() const { return id; }
bool get_compiled() const { return compiled; }
int get_param(GLenum param) const;