summaryrefslogtreecommitdiffstats
path: root/src/gui/opengl/qopenglshaderprogram.h
diff options
context:
space:
mode:
authorSean Harmer <sean.harmer@kdab.com>2012-09-24 09:41:17 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-09-24 16:59:58 +0200
commit57b4a504ff1960c4f78308f46c04922cfd58356e (patch)
tree315f79822c2769e707ecdb1fdceee7230fcd260b /src/gui/opengl/qopenglshaderprogram.h
parentc06106f28db343a090869b7d0f8638aa89f91640 (diff)
OpenGL: Remove API for stubbed Geometry shader support in gui/opengl
There is a pending patch to reinstate this for Qt 5.1 (the patch introduces new API top QOpenGLContext). I will fold the revert of this patch into: https://codereview.qt-project.org/#change,31231 Note that QGLShaderProgram still supports Geometry shaders so source compatibility with Qt 4.8 is maintained. Change-Id: I53faedd4e4a2a6c2a9765afdc1bee6df5ae2f711 Reviewed-by: Lars Knoll <lars.knoll@digia.com> Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
Diffstat (limited to 'src/gui/opengl/qopenglshaderprogram.h')
-rw-r--r--src/gui/opengl/qopenglshaderprogram.h14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/gui/opengl/qopenglshaderprogram.h b/src/gui/opengl/qopenglshaderprogram.h
index 1a499fd533..c765e7d344 100644
--- a/src/gui/opengl/qopenglshaderprogram.h
+++ b/src/gui/opengl/qopenglshaderprogram.h
@@ -66,8 +66,7 @@ public:
enum ShaderTypeBit
{
Vertex = 0x0001,
- Fragment = 0x0002,
- Geometry = 0x0004
+ Fragment = 0x0002
};
Q_DECLARE_FLAGS(ShaderType, ShaderTypeBit)
@@ -129,17 +128,6 @@ public:
GLuint programId() const;
- int maxGeometryOutputVertices() const;
-
- void setGeometryOutputVertexCount(int count);
- int geometryOutputVertexCount() const;
-
- void setGeometryInputType(GLenum inputType);
- GLenum geometryInputType() const;
-
- void setGeometryOutputType(GLenum outputType);
- GLenum geometryOutputType() const;
-
void bindAttributeLocation(const char *name, int location);
void bindAttributeLocation(const QByteArray& name, int location);
void bindAttributeLocation(const QString& name, int location);