summaryrefslogtreecommitdiffstats
path: root/src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h
diff options
context:
space:
mode:
authorKim Motoyoshi Kalland <kim.kalland@nokia.com>2009-07-03 15:25:40 (GMT)
committerKim Motoyoshi Kalland <kim.kalland@nokia.com>2009-07-03 15:27:49 (GMT)
commit84bbac2a4d7b663e57b74094cbebf8fca16e0ed8 (patch)
tree2f6a82454bed0da42df05d5a7495f00eb52f72be /src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h
parent108f549a446e13a3be7ee6753be9eb74260547d7 (diff)
downloadQt-84bbac2a4d7b663e57b74094cbebf8fca16e0ed8.zip
Qt-84bbac2a4d7b663e57b74094cbebf8fca16e0ed8.tar.gz
Qt-84bbac2a4d7b663e57b74094cbebf8fca16e0ed8.tar.bz2
Moved uniform enum to QGLEngineShaderManager.
Simplified caching of uniform locations. Reviewed-by: Samuel
Diffstat (limited to 'src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h')
-rw-r--r--src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h25
1 files changed, 2 insertions, 23 deletions
diff --git a/src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h b/src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h
index 0d28a49..ec447a3 100644
--- a/src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h
+++ b/src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h
@@ -221,32 +221,11 @@ public:
void systemStateChanged();
uint use_system_clip : 1;
- enum Uniform {
- ImageTexture,
- PatternColor,
- GlobalOpacity,
- Depth,
- PmvMatrix,
- MaskTexture,
- FragmentColor,
- LinearData,
- Angle,
- HalfViewportSize,
- Fmp,
- Fmp2MRadius2,
- Inverse2Fmp2MRadius2,
- InvertedTextureSize,
- BrushTransform,
- BrushTexture,
- NumUniforms
- };
-
- uint location(Uniform uniform)
+ uint location(QGLEngineShaderManager::Uniform uniform)
{
- return shaderManager->getUniformLocation(uniformIdentifiers[uniform]);
+ return shaderManager->getUniformLocation(uniform);
}
- uint uniformIdentifiers[NumUniforms];
GLuint lastTexture;
bool needsSync;