-/* $Id$
-
-This file is part of libmspgl
-Copyright © 2007 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef MSP_GL_SHADER_H_
#define MSP_GL_SHADER_H_
enum ShaderType
{
- FRAGMENT_SHADER = GL_FRAGMENT_SHADER,
- VERTEX_SHADER = GL_VERTEX_SHADER
+ FRAGMENT_SHADER = GL_FRAGMENT_SHADER_ARB,
+ VERTEX_SHADER = GL_VERTEX_SHADER_ARB
};
class Shader
{
+private:
+ unsigned id;
+ bool compiled;
+
public:
Shader(ShaderType t);
Shader(ShaderType t, const std::string &);
void source(const char *str, int len);
void compile();
unsigned get_id() const { return id; }
- bool get_compiled() const { return compiled; }
- int get_param(GLenum param) const;
+ bool is_compiled() const { return compiled; }
std::string get_info_log() const;
-private:
- unsigned id;
- bool compiled;
};
} // namespace GL