OSDN Git Service

It's 2011 now.
[qt-creator-jp/qt-creator-jp.git] / src / libs / glsl / glsl.h
1 /**************************************************************************
2 **
3 ** This file is part of Qt Creator
4 **
5 ** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
6 **
7 ** Contact: Nokia Corporation (qt-info@nokia.com)
8 **
9 ** No Commercial Usage
10 **
11 ** This file contains pre-release code and may not be distributed.
12 ** You may use this file in accordance with the terms and conditions
13 ** contained in the Technology Preview License Agreement accompanying
14 ** this package.
15 **
16 ** GNU Lesser General Public License Usage
17 **
18 ** Alternatively, this file may be used under the terms of the GNU Lesser
19 ** General Public License version 2.1 as published by the Free Software
20 ** Foundation and appearing in the file LICENSE.LGPL included in the
21 ** packaging of this file.  Please review the following information to
22 ** ensure the GNU Lesser General Public License version 2.1 requirements
23 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
24 **
25 ** In addition, as a special exception, Nokia gives you certain additional
26 ** rights.  These rights are described in the Nokia Qt LGPL Exception
27 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
28 **
29 ** If you have questions regarding the use of this file, please contact
30 ** Nokia at qt-info@nokia.com.
31 **
32 **************************************************************************/
33
34 #ifndef GLSL_H
35 #define GLSL_H
36
37 #include <QtCore/qglobal.h>
38 #include <cstdlib>
39 #include <cstddef>
40
41 #if defined(GLSL_BUILD_LIB)
42 #  define GLSL_EXPORT Q_DECL_EXPORT
43 #elif defined(GLSL_BUILD_STATIC_LIB)
44 #  define GLSL_EXPORT
45 #else
46 #  define GLSL_EXPORT Q_DECL_IMPORT
47 #endif
48
49 namespace GLSL {
50 class Engine;
51 class Lexer;
52 class Parser;
53 class MemoryPool;
54
55 // types
56 class Type;
57 class UndefinedType;
58 class VoidType;
59 class ScalarType;
60 class BoolType;
61 class IntType;
62 class UIntType;
63 class FloatType;
64 class DoubleType;
65 class IndexType;
66 class VectorType;
67 class MatrixType;
68 class ArrayType;
69 class SamplerType;
70
71 // symbols
72 class Symbol;
73 class Scope;
74 class Struct;
75 class Function;
76 class Argument;
77 class Block;
78 class Variable;
79 class OverloadSet;
80 class Namespace;
81
82 class AST;
83 class TranslationUnitAST;
84 template <typename T> class List;
85 }
86
87 #endif // GLSL_H