From 2c8c0cb33aa8137186e8dde8ecff856a5fbf0c55 Mon Sep 17 00:00:00 2001 From: Sean Harmer Date: Wed, 10 Oct 2012 13:13:56 +0100 Subject: OpenGL: Reinstate support for OpenGL geometry shaders Unlike QGLShader, this requires the OpenGL 3.2 core implementation of geometry shaders to keep the API simple. Change-Id: Icb07f430c4c5b5d950bcf6f7119becec4cfaad8a Reviewed-by: James Turner Reviewed-by: Gunnar Sletta --- src/gui/opengl/qopenglshaderprogram.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/gui/opengl/qopenglshaderprogram.h') diff --git a/src/gui/opengl/qopenglshaderprogram.h b/src/gui/opengl/qopenglshaderprogram.h index f371326239..00b67f9434 100644 --- a/src/gui/opengl/qopenglshaderprogram.h +++ b/src/gui/opengl/qopenglshaderprogram.h @@ -64,7 +64,8 @@ public: enum ShaderTypeBit { Vertex = 0x0001, - Fragment = 0x0002 + Fragment = 0x0002, + Geometry = 0x0004 }; Q_DECLARE_FLAGS(ShaderType, ShaderTypeBit) @@ -126,6 +127,8 @@ public: GLuint programId() const; + int maxGeometryOutputVertices() const; + void bindAttributeLocation(const char *name, int location); void bindAttributeLocation(const QByteArray& name, int location); void bindAttributeLocation(const QString& name, int location); -- cgit v1.2.3