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