Ignore:
Timestamp:
Feb 11, 2010, 11:19:06 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.1 sources.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/demos/boxes/glextensions.cpp

    r2 r561  
    22**
    33** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    4 ** Contact: Qt Software Information ([email protected])
     4** All rights reserved.
     5** Contact: Nokia Corporation ([email protected])
    56**
    67** This file is part of the demonstration applications of the Qt Toolkit.
     
    2122** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2223**
    23 ** In addition, as a special exception, Nokia gives you certain
    24 ** additional rights. These rights are described in the Nokia Qt LGPL
    25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
    26 ** package.
     24** In addition, as a special exception, Nokia gives you certain additional
     25** rights.  These rights are described in the Nokia Qt LGPL Exception
     26** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2727**
    2828** GNU General Public License Usage
     
    3434** met: http://www.gnu.org/copyleft/gpl.html.
    3535**
    36 ** If you are unsure which license is appropriate for your use, please
    37 ** contact the sales department at qt-sales@nokia.com.
     36** If you
     37** @nokia.com.
    3838** $QT_END_LICENSE$
    3939**
     
    4747{
    4848        bool ok = true;
    49 
    50         RESOLVE_GL_FUNC(CreateShaderObjectARB)
    51         RESOLVE_GL_FUNC(ShaderSourceARB)
    52         RESOLVE_GL_FUNC(CompileShaderARB)
    53         RESOLVE_GL_FUNC(GetObjectParameterivARB)
    54         RESOLVE_GL_FUNC(DeleteObjectARB)
    55         RESOLVE_GL_FUNC(GetInfoLogARB)
    56         RESOLVE_GL_FUNC(CreateProgramObjectARB)
    57         RESOLVE_GL_FUNC(AttachObjectARB)
    58         RESOLVE_GL_FUNC(DetachObjectARB)
    59         RESOLVE_GL_FUNC(LinkProgramARB)
    60         RESOLVE_GL_FUNC(UseProgramObjectARB)
    61         RESOLVE_GL_FUNC(GetUniformLocationARB)
    62         RESOLVE_GL_FUNC(Uniform1iARB)
    63         RESOLVE_GL_FUNC(Uniform1fARB)
    64         RESOLVE_GL_FUNC(Uniform4fARB)
    65         RESOLVE_GL_FUNC(UniformMatrix4fvARB)
    6649
    6750        RESOLVE_GL_FUNC(GenFramebuffersEXT)
     
    8770
    8871        return ok;
    89 }
    90 
    91 bool GLExtensionFunctions::glslSupported() {
    92     return CreateShaderObjectARB
    93             && CreateShaderObjectARB
    94             && ShaderSourceARB
    95             && CompileShaderARB
    96             && GetObjectParameterivARB
    97             && DeleteObjectARB
    98             && GetInfoLogARB
    99             && CreateProgramObjectARB
    100             && AttachObjectARB
    101             && DetachObjectARB
    102             && LinkProgramARB
    103             && UseProgramObjectARB
    104             && GetUniformLocationARB
    105             && Uniform1iARB
    106             && Uniform1fARB
    107             && Uniform4fARB
    108             && UniformMatrix4fvARB;
    10972}
    11073
Note: See TracChangeset for help on using the changeset viewer.