Ignore:
Timestamp:
Mar 8, 2010, 12:52:58 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.2 sources.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/opengl/gl2paintengineex/qglengineshadermanager_p.h

    r561 r651  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
     
    254254static const GLuint QT_TEXTURE_COORDS_ATTR = 1;
    255255static const GLuint QT_OPACITY_ATTR = 2;
     256static const GLuint QT_PMV_MATRIX_1_ATTR = 3;
     257static const GLuint QT_PMV_MATRIX_2_ATTR = 4;
     258static const GLuint QT_PMV_MATRIX_3_ATTR = 5;
    256259
    257260class QGLEngineShaderProg;
     
    345348
    346349    QGLEngineSharedShaders(const QGLContext *context);
     350    ~QGLEngineSharedShaders();
    347351
    348352    QGLShaderProgram *simpleProgram() { return simpleShaderProg; }
     
    397401    bool                useTextureCoords;
    398402    bool                useOpacityAttribute;
     403    bool                usePmvMatrix;
    399404
    400405    bool operator==(const QGLEngineShaderProg& other) {
     
    431436        GlobalOpacity,
    432437        Depth,
    433         PmvMatrix,
    434438        MaskTexture,
    435439        FragmentColor,
     
    455459    //    1) May not have to apply perspective-correction
    456460    //    2) Can use lower precision for matrix
    457     void optimiseForBrushTransform(const QTransform::TransformationType transformType);
     461    void optimiseForBrushTransform(QTransform::TransformationType transformType);
    458462    void setSrcPixelType(Qt::BrushStyle);
    459463    void setSrcPixelType(PixelSrcType); // For non-brush sources, like pixmaps & images
     
    464468    void removeCustomStage();
    465469
    466     GLuint getUniformLocation(const Uniform id);
     470    GLuint getUniformLocation(Uniform id);
    467471
    468472    void setDirty(); // someone has manually changed the current shader program
    469473    bool useCorrectShaderProg(); // returns true if the shader program needed to be changed
     474
     475    void useSimpleProgram();
     476    void useBlitProgram();
    470477
    471478    QGLShaderProgram* currentProgram(); // Returns pointer to the shader the manager has chosen
Note: See TracChangeset for help on using the changeset viewer.