diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2010-11-25 13:31:53 +0100 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2010-11-25 13:31:53 +0100 |
commit | 0de7f23d129bf098882c6aa96d1d17fb840f4f39 (patch) | |
tree | c4f6a67a7750531b6c00a741bf177e2c3edbf7a2 /src/libs/glsl/glsltype.h | |
parent | 392fa4ab7e38f81f68e33b05e5cc82099a604754 (diff) | |
download | qt-creator-0de7f23d129bf098882c6aa96d1d17fb840f4f39.tar.gz |
Moved GLSL::Type.
Diffstat (limited to 'src/libs/glsl/glsltype.h')
-rw-r--r-- | src/libs/glsl/glsltype.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/src/libs/glsl/glsltype.h b/src/libs/glsl/glsltype.h new file mode 100644 index 0000000000..be42b19c00 --- /dev/null +++ b/src/libs/glsl/glsltype.h @@ -0,0 +1,58 @@ +/************************************************************************** +** +** This file is part of Qt Creator +** +** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +** +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** Commercial Usage +** +** Licensees holding valid Qt Commercial licenses may use this file in +** accordance with the Qt Commercial License Agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and Nokia. +** +** GNU Lesser General Public License Usage +** +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** If you are unsure which license is appropriate for your use, please +** contact the sales department at http://qt.nokia.com/contact. +** +**************************************************************************/ +#ifndef GLSLTYPE_H +#define GLSLTYPE_H + +#include "glsl.h" + +namespace GLSL { + +class GLSL_EXPORT Type +{ +public: + virtual ~Type(); + + virtual const UndefinedType *asUndefinedType() const { return 0; } + virtual const VoidType *asVoidType() const { return 0; } + virtual const BoolType *asBoolType() const { return 0; } + virtual const IntType *asIntType() const { return 0; } + virtual const UIntType *asUIntType() const { return 0; } + virtual const FloatType *asFloatType() const { return 0; } + virtual const DoubleType *asDoubleType() const { return 0; } + virtual const OpaqueType *asOpaqueType() const { return 0; } + virtual const VectorType *asVectorType() const { return 0; } + virtual const MatrixType *asMatrixType() const { return 0; } + + virtual bool isEqualTo(const Type *other) const = 0; + virtual bool isLessThan(const Type *other) const = 0; +}; + +} // end of namespace GLSL + +#endif // GLSLTYPE_H |