From 2da37bd5f757a3e39c18ece67aebed24036aa21e Mon Sep 17 00:00:00 2001 From: cnr-isti-vclab Date: Wed, 8 Oct 2008 14:00:32 +0000 Subject: [PATCH] Geometri shader, initial support --- wrap/gl/shaders.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/wrap/gl/shaders.h b/wrap/gl/shaders.h index e9e5fca8..a9e2b894 100644 --- a/wrap/gl/shaders.h +++ b/wrap/gl/shaders.h @@ -13,7 +13,8 @@ public: typedef enum { VERTEX, - FRAGMENT + FRAGMENT, + GEOMETRY } ShaderType; Shader(void) : GLObject(), Bindable() @@ -31,6 +32,7 @@ public: { case Shader::VERTEX : t = GL_VERTEX_SHADER; break; case Shader::FRAGMENT : t = GL_FRAGMENT_SHADER; break; + case Shader::GEOMETRY : t = GL_GEOMETRY_SHADER_EXT; break; default: return; }; this->objectID = glCreateShader(t); @@ -153,6 +155,18 @@ public: } }; +class GeometryShader : public Shader +{ + GeometryShader(void) : Shader() + { + } + + ShaderType Type(void) const + { + return Shader::GEOMETRY; + } +}; + #if 0 class Program;