]> git.tdb.fi Git - libs/gl.git/blobdiff - source/shader.h
Check the flat qualifier from the correct member
[libs/gl.git] / source / shader.h
diff --git a/source/shader.h b/source/shader.h
deleted file mode 100644 (file)
index 86a70be..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-/* $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_
-
-#include <string>
-#include "gl.h"
-
-namespace Msp {
-namespace GL {
-
-enum ShaderType
-{
-       FRAGMENT_SHADER = GL_FRAGMENT_SHADER,
-       VERTEX_SHADER   = GL_VERTEX_SHADER
-};
-
-class Shader
-{
-public:
-       Shader(ShaderType t);
-       Shader(ShaderType t, const std::string &);
-private:
-       void init(ShaderType);
-public:
-       ~Shader();
-
-       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();
-       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:
-       unsigned id;
-       bool compiled;
-};
-
-} // namespace GL
-} // namespace Msp
-
-#endif