- Timestamp:
- Mar 8, 2010, 12:52:58 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.6.2 (added) merged: 650 /branches/vendor/nokia/qt/current merged: 649 /branches/vendor/nokia/qt/4.6.1 removed
- Property svn:mergeinfo changed
-
trunk/src/opengl/gl2paintengineex/qglengineshadermanager_p.h
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 254 254 static const GLuint QT_TEXTURE_COORDS_ATTR = 1; 255 255 static const GLuint QT_OPACITY_ATTR = 2; 256 static const GLuint QT_PMV_MATRIX_1_ATTR = 3; 257 static const GLuint QT_PMV_MATRIX_2_ATTR = 4; 258 static const GLuint QT_PMV_MATRIX_3_ATTR = 5; 256 259 257 260 class QGLEngineShaderProg; … … 345 348 346 349 QGLEngineSharedShaders(const QGLContext *context); 350 ~QGLEngineSharedShaders(); 347 351 348 352 QGLShaderProgram *simpleProgram() { return simpleShaderProg; } … … 397 401 bool useTextureCoords; 398 402 bool useOpacityAttribute; 403 bool usePmvMatrix; 399 404 400 405 bool operator==(const QGLEngineShaderProg& other) { … … 431 436 GlobalOpacity, 432 437 Depth, 433 PmvMatrix,434 438 MaskTexture, 435 439 FragmentColor, … … 455 459 // 1) May not have to apply perspective-correction 456 460 // 2) Can use lower precision for matrix 457 void optimiseForBrushTransform( constQTransform::TransformationType transformType);461 void optimiseForBrushTransform(QTransform::TransformationType transformType); 458 462 void setSrcPixelType(Qt::BrushStyle); 459 463 void setSrcPixelType(PixelSrcType); // For non-brush sources, like pixmaps & images … … 464 468 void removeCustomStage(); 465 469 466 GLuint getUniformLocation( constUniform id);470 GLuint getUniformLocation(Uniform id); 467 471 468 472 void setDirty(); // someone has manually changed the current shader program 469 473 bool useCorrectShaderProg(); // returns true if the shader program needed to be changed 474 475 void useSimpleProgram(); 476 void useBlitProgram(); 470 477 471 478 QGLShaderProgram* currentProgram(); // Returns pointer to the shader the manager has chosen
Note:
See TracChangeset
for help on using the changeset viewer.