]> git.tdb.fi Git - libs/gl.git/blobdiff - source/shader.h
Add getter for Animation::looping
[libs/gl.git] / source / shader.h
index 63af9b3ab74862c10fb417b68bdaa18786c8e9b9..bab11a7e9603e8bcc32652427b20ade4e7796267 100644 (file)
@@ -7,6 +7,12 @@
 namespace Msp {
 namespace GL {
 
+/**
+A single shader stage.  Shaders must be attached to a Program to be used.
+
+This class can't be instantiated directly.  Use one of the VertexShader and
+FragmentShader classes to create Shaders.
+*/
 class Shader
 {
 private:
@@ -46,6 +52,14 @@ public:
        FragmentShader(const std::string &);
 };
 
+
+class GeometryShader: public Shader
+{
+public:
+       GeometryShader();
+       GeometryShader(const std::string &);
+};
+
 } // namespace GL
 } // namespace Msp