##// END OF EJS Templates
- removed phonon temporarily...
florianlink -
r11:27e624e0d6f1
parent child
Show More
@@ -0,0 +1,1
1 qmake -tp vc -r PythonQt.pro
@@ -1,4 +1,4
1 TEMPLATE = subdirs
1 TEMPLATE = subdirs
2
2
3 CONFIG += ordered
3 CONFIG += ordered
4 SUBDIRS = src extensions tests examples
4 SUBDIRS = generator src extensions tests examples
@@ -1,30 +1,30
1 PythonQt
1 PythonQt
2 --------
2 --------
3
3
4 PythonQt is a dynamic Python (http://www.python.org) binding for Qt (http://www.trolltech.com).
4 PythonQt is a dynamic Python (http://www.python.org) binding for Qt (http://www.trolltech.com).
5 It offers an easy way to embed the Python scripting language into
5 It offers an easy way to embed the Python scripting language into
6 your Qt applications. It makes heavy use of the QMetaObject system and thus requires Qt4.x.
6 your Qt applications. It makes heavy use of the QMetaObject system and thus requires Qt4.x.
7
7
8 Licensing of PythonQt
8 Licensing of PythonQt
9 ---------------------
9 ---------------------
10 PythonQt is distributed under the LGPL license.
10 PythonQt is distributed under the LGPL license.
11
11
12 Licensing of Generator
12 Licensing of Generator
13 ----------------------
13 ----------------------
14 The build system of PythonQt makes use of a patched version of the GPL'ed QtScript generator,
14 The build system of PythonQt makes use of a patched version of the GPL'ed QtScript generator,
15 located in the "generator" directory.
15 located in the "generator" directory.
16
16
17 See http://labs.trolltech.com/page/Projects/QtScript/Generator for details of the original project.
17 See http://labs.trolltech.com/page/Projects/QtScript/Generator for details of the original project.
18
18
19 The PythonQt wrappers generated by the generator are distributed under the LGPL, they are not restriced by the GPL.
19 The PythonQt wrappers generated by the generator are distributed under the LGPL, they are not restriced by the GPL.
20
20
21 The generated wrappers are pre-generated and checked-in for Qt 4.5, so you only need to build and run the
21 The generated wrappers are pre-generated and checked-in for Qt 4.4.3, so you only need to build and run the
22 generator when you want to build additional wrappers or you want to upgrade/downgrade to an newer Qt version.
22 generator when you want to build additional wrappers or you want to upgrade/downgrade to an newer Qt version.
23
23
24 Documentation
24 Documentation
25 -------------
25 -------------
26
26
27 More documentation is available at:
27 More documentation is available at:
28
28
29 http://pythonqt.sourceforge.net/
29 http://pythonqt.sourceforge.net/
30
30
@@ -1,62 +1,62
1 /*
1 /*
2 *
2 *
3 * Copyright (C) 2006 MeVis Research GmbH All Rights Reserved.
3 * Copyright (C) 2006 MeVis Research GmbH All Rights Reserved.
4 *
4 *
5 * This library is free software; you can redistribute it and/or
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
8 * version 2.1 of the License, or (at your option) any later version.
9 *
9 *
10 * This library is distributed in the hope that it will be useful,
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
13 * Lesser General Public License for more details.
14 *
14 *
15 * Further, this software is distributed without any warranty that it is
15 * Further, this software is distributed without any warranty that it is
16 * free of the rightful claim of any third person regarding infringement
16 * free of the rightful claim of any third person regarding infringement
17 * or the like. Any license provided herein, whether implied or
17 * or the like. Any license provided herein, whether implied or
18 * otherwise, applies only to this software file. Patent licenses, if
18 * otherwise, applies only to this software file. Patent licenses, if
19 * any, provided herein do not apply to combinations of this program with
19 * any, provided herein do not apply to combinations of this program with
20 * other software, or any other product whatsoever.
20 * other software, or any other product whatsoever.
21 *
21 *
22 * You should have received a copy of the GNU Lesser General Public
22 * You should have received a copy of the GNU Lesser General Public
23 * License along with this library; if not, write to the Free Software
23 * License along with this library; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 *
25 *
26 * Contact information: MeVis Research GmbH, Universitaetsallee 29,
26 * Contact information: MeVis Research GmbH, Universitaetsallee 29,
27 * 28359 Bremen, Germany or:
27 * 28359 Bremen, Germany or:
28 *
28 *
29 * http://www.mevis.de
29 * http://www.mevis.de
30 *
30 *
31 */
31 */
32
32
33 #include "PythonQt_QtAll.h"
33 #include "PythonQt_QtAll.h"
34
34
35 void PythonQt_init_QtGui();
35 void PythonQt_init_QtGui();
36 void PythonQt_init_QtSvg();
36 void PythonQt_init_QtSvg();
37 void PythonQt_init_QtSql();
37 void PythonQt_init_QtSql();
38 void PythonQt_init_QtNetwork();
38 void PythonQt_init_QtNetwork();
39 void PythonQt_init_QtCore();
39 void PythonQt_init_QtCore();
40 void PythonQt_init_QtWebKit();
40 void PythonQt_init_QtWebKit();
41 void PythonQt_init_QtOpenGL();
41 void PythonQt_init_QtOpenGL();
42 void PythonQt_init_QtPhonon();
43 void PythonQt_init_QtXml();
42 void PythonQt_init_QtXml();
44 void PythonQt_init_QtXmlPatterns();
43 void PythonQt_init_QtXmlPatterns();
44 //void PythonQt_init_QtPhonon();
45
45
46 namespace PythonQt_QtAll
46 namespace PythonQt_QtAll
47 {
47 {
48 PYTHONQT_QTALL_EXPORT void init() {
48 PYTHONQT_QTALL_EXPORT void init() {
49 PythonQt_init_QtCore();
49 PythonQt_init_QtCore();
50 PythonQt_init_QtNetwork();
50 PythonQt_init_QtNetwork();
51 PythonQt_init_QtGui();
51 PythonQt_init_QtGui();
52 PythonQt_init_QtXml();
52 PythonQt_init_QtXml();
53 PythonQt_init_QtXmlPatterns();
53 PythonQt_init_QtXmlPatterns();
54 PythonQt_init_QtSvg();
54 PythonQt_init_QtSvg();
55 PythonQt_init_QtSql();
55 PythonQt_init_QtSql();
56 PythonQt_init_QtWebKit();
56 PythonQt_init_QtWebKit();
57 PythonQt_init_QtOpenGL();
57 PythonQt_init_QtOpenGL();
58 PythonQt_init_QtPhonon();
58 // PythonQt_init_QtPhonon();
59 };
59 };
60 };
60 };
61
61
62
62
@@ -1,32 +1,34
1
1
2 TARGET = PythonQt_QtAll
2 TARGET = PythonQt_QtAll
3 TEMPLATE = lib
3 TEMPLATE = lib
4
4
5 DESTDIR = ../../lib
5 DESTDIR = ../../lib
6 DLLDESTDIR = ../../lib
6 DLLDESTDIR = ../../lib
7
7
8 include ( ../../build/common.prf )
8 include ( ../../build/common.prf )
9 include ( ../../build/PythonQt.prf )
9 include ( ../../build/PythonQt.prf )
10
10
11 CONFIG += dll qt
11 CONFIG += dll qt
12
12
13 DEFINES += PYTHONQT_QTALL_EXPORTS
13 DEFINES += PYTHONQT_QTALL_EXPORTS
14
14
15 HEADERS += \
15 HEADERS += \
16 PythonQt_QtAll.h
16 PythonQt_QtAll.h
17
17
18 SOURCES += \
18 SOURCES += \
19 PythonQt_QtAll.cpp
19 PythonQt_QtAll.cpp
20
20
21 QT += webkit gui svg sql network xml xmlpatterns phonon opengl
21 QT += webkit gui svg sql network xml xmlpatterns opengl
22 #QT += phonon
22
23
23 include (../../generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core.pri)
24 include (../../generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core.pri)
24 include (../../generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui.pri)
25 include (../../generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui.pri)
25 include (../../generated_cpp/com_trolltech_qt_svg/com_trolltech_qt_svg.pri)
26 include (../../generated_cpp/com_trolltech_qt_svg/com_trolltech_qt_svg.pri)
26 include (../../generated_cpp/com_trolltech_qt_sql/com_trolltech_qt_sql.pri)
27 include (../../generated_cpp/com_trolltech_qt_sql/com_trolltech_qt_sql.pri)
27 include (../../generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network.pri)
28 include (../../generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network.pri)
28 include (../../generated_cpp/com_trolltech_qt_opengl/com_trolltech_qt_opengl.pri)
29 include (../../generated_cpp/com_trolltech_qt_opengl/com_trolltech_qt_opengl.pri)
29 include (../../generated_cpp/com_trolltech_qt_phonon/com_trolltech_qt_phonon.pri)
30 include (../../generated_cpp/com_trolltech_qt_webkit/com_trolltech_qt_webkit.pri)
30 include (../../generated_cpp/com_trolltech_qt_webkit/com_trolltech_qt_webkit.pri)
31 include (../../generated_cpp/com_trolltech_qt_xml/com_trolltech_qt_xml.pri)
31 include (../../generated_cpp/com_trolltech_qt_xml/com_trolltech_qt_xml.pri)
32 include (../../generated_cpp/com_trolltech_qt_xmlpatterns/com_trolltech_qt_xmlpatterns.pri)
32 include (../../generated_cpp/com_trolltech_qt_xmlpatterns/com_trolltech_qt_xmlpatterns.pri)
33
34 #include (../../generated_cpp/com_trolltech_qt_phonon/com_trolltech_qt_phonon.pri)
1 NO CONTENT: modified file
NO CONTENT: modified file
@@ -1,27 +1,30
1 TARGET = pythonqt_generator
2 CONFIG -= debug
3 CONFIG += release
4 DESTDIR = .
5
1 include(generator.pri)
6 include(generator.pri)
2
7
8
3 # Input
9 # Input
4 HEADERS += \
10 HEADERS += \
5 generatorsetqtscript.h \
11 generatorsetqtscript.h \
6 metaqtscriptbuilder.h \
12 metaqtscriptbuilder.h \
7 metaqtscript.h \
13 metaqtscript.h \
8 classgenerator.h \
14 classgenerator.h \
9 shellgenerator.h \
15 shellgenerator.h \
10 shellimplgenerator.h \
16 shellimplgenerator.h \
11 shellheadergenerator.h \
17 shellheadergenerator.h \
12 setupgenerator.h \
18 setupgenerator.h \
13 docgenerator.h
19 docgenerator.h
14
20
15 SOURCES += \
21 SOURCES += \
16 generatorsetqtscript.cpp \
22 generatorsetqtscript.cpp \
17 metaqtscriptbuilder.cpp \
23 metaqtscriptbuilder.cpp \
18 metaqtscript.cpp \
24 metaqtscript.cpp \
19 classgenerator.cpp \
25 classgenerator.cpp \
20 shellgenerator.cpp \
26 shellgenerator.cpp \
21 shellimplgenerator.cpp \
27 shellimplgenerator.cpp \
22 shellheadergenerator.cpp \
28 shellheadergenerator.cpp \
23 setupgenerator.cpp \
29 setupgenerator.cpp \
24 docgenerator.cpp
30 docgenerator.cpp
25
26 CONFIG -= debug
27 CONFIG += release
@@ -1,67 +1,70
1 /****************************************************************************
1 /****************************************************************************
2 **
2 **
3 ** Copyright (C) 1992-2008 Trolltech ASA. All rights reserved.
3 ** Copyright (C) 1992-2008 Trolltech ASA. All rights reserved.
4 **
4 **
5 ** This file is part of the Qt Script Generator project on Trolltech Labs.
5 ** This file is part of the Qt Script Generator project on Trolltech Labs.
6 **
6 **
7 ** This file may be used under the terms of the GNU General Public
7 ** This file may be used under the terms of the GNU General Public
8 ** License version 2.0 as published by the Free Software Foundation
8 ** License version 2.0 as published by the Free Software Foundation
9 ** and appearing in the file LICENSE.GPL included in the packaging of
9 ** and appearing in the file LICENSE.GPL included in the packaging of
10 ** this file. Please review the following information to ensure GNU
10 ** this file. Please review the following information to ensure GNU
11 ** General Public Licensing requirements will be met:
11 ** General Public Licensing requirements will be met:
12 ** http://www.trolltech.com/products/qt/opensource.html
12 ** http://www.trolltech.com/products/qt/opensource.html
13 **
13 **
14 ** If you are unsure which license is appropriate for your use, please
14 ** If you are unsure which license is appropriate for your use, please
15 ** review the following information:
15 ** review the following information:
16 ** http://www.trolltech.com/products/qt/licensing.html or contact the
16 ** http://www.trolltech.com/products/qt/licensing.html or contact the
17 ** sales department at sales@trolltech.com.
17 ** sales department at sales@trolltech.com.
18 **
18 **
19 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
19 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
20 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
20 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
21 **
21 **
22 ****************************************************************************/
22 ****************************************************************************/
23
23
24 #include "prigenerator.h"
24 #include "prigenerator.h"
25 #include "reporthandler.h"
25 #include "reporthandler.h"
26 #include "fileout.h"
26 #include "fileout.h"
27
27
28 void PriGenerator::addHeader(const QString &folder, const QString &header)
28 void PriGenerator::addHeader(const QString &folder, const QString &header)
29 {
29 {
30 priHash[folder].headers << header;
30 priHash[folder].headers << header;
31 }
31 }
32
32
33 void PriGenerator::addSource(const QString &folder, const QString &source)
33 void PriGenerator::addSource(const QString &folder, const QString &source)
34 {
34 {
35 priHash[folder].sources << source;
35 priHash[folder].sources << source;
36 }
36 }
37
37
38 void PriGenerator::generate()
38 void PriGenerator::generate()
39 {
39 {
40 QHashIterator<QString, Pri> pri(priHash);
40 QHashIterator<QString, Pri> pri(priHash);
41 while (pri.hasNext()) {
41 while (pri.hasNext()) {
42 pri.next();
42 pri.next();
43 QStringList list = pri.value().headers;
43 QStringList list = pri.value().headers;
44 if (list.isEmpty())
44 if (list.isEmpty())
45 continue;
45 continue;
46
46
47 FileOut file(m_out_dir + "/generated_cpp/" + pri.key());
47 FileOut file(m_out_dir + "/generated_cpp/" + pri.key());
48 file.stream << "HEADERS += \\\n";
48 file.stream << "HEADERS += \\\n";
49 qSort(list.begin(), list.end());
49 qSort(list.begin(), list.end());
50 foreach (const QString &entry, list) {
50 foreach (const QString &entry, list) {
51 file.stream << " $$PWD/" << entry << " \\\n";
51 file.stream << " $$PWD/" << entry << " \\\n";
52 }
52 }
53
53
54 file.stream << "\n";
54 file.stream << "\n";
55 file.stream << "SOURCES += \\\n";
55 file.stream << "SOURCES += \\\n";
56 list = pri.value().sources;
56 list = pri.value().sources;
57 qSort(list.begin(), list.end());
57 qSort(list.begin(), list.end());
58 foreach (const QString &entry, list) {
58 foreach (const QString &entry, list) {
59 file.stream << " $$PWD/" << entry << " \\\n";
59 file.stream << " $$PWD/" << entry << " \\\n";
60 }
60 }
61 file.stream << " $$PWD/init.cpp\n";
61 QString initName = pri.key();
62 initName = initName.mid(initName.indexOf('/')+1);
63 initName = initName.left(initName.length()-4);
64 file.stream << " $$PWD/" + initName + "_init.cpp\n";
62
65
63 if (file.done())
66 if (file.done())
64 ++m_num_generated_written;
67 ++m_num_generated_written;
65 ++m_num_generated;
68 ++m_num_generated;
66 }
69 }
67 }
70 }
@@ -1,1134 +1,1134
1 /****************************************************************************
1 /****************************************************************************
2 **
2 **
3 ** Copyright (C) 1992-2008 Trolltech ASA. All rights reserved.
3 ** Copyright (C) 1992-2008 Trolltech ASA. All rights reserved.
4 **
4 **
5 ** This file is part of the Qt Script Generator project on Trolltech Labs.
5 ** This file is part of the Qt Script Generator project on Trolltech Labs.
6 **
6 **
7 ** This file may be used under the terms of the GNU General Public
7 ** This file may be used under the terms of the GNU General Public
8 ** License version 2.0 as published by the Free Software Foundation
8 ** License version 2.0 as published by the Free Software Foundation
9 ** and appearing in the file LICENSE.GPL included in the packaging of
9 ** and appearing in the file LICENSE.GPL included in the packaging of
10 ** this file. Please review the following information to ensure GNU
10 ** this file. Please review the following information to ensure GNU
11 ** General Public Licensing requirements will be met:
11 ** General Public Licensing requirements will be met:
12 ** http://www.trolltech.com/products/qt/opensource.html
12 ** http://www.trolltech.com/products/qt/opensource.html
13 **
13 **
14 ** If you are unsure which license is appropriate for your use, please
14 ** If you are unsure which license is appropriate for your use, please
15 ** review the following information:
15 ** review the following information:
16 ** http://www.trolltech.com/products/qt/licensing.html or contact the
16 ** http://www.trolltech.com/products/qt/licensing.html or contact the
17 ** sales department at sales@trolltech.com.
17 ** sales department at sales@trolltech.com.
18 **
18 **
19 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
19 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
20 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
20 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
21 **
21 **
22 ****************************************************************************/
22 ****************************************************************************/
23
23
24 #define QT_NO_STL
24 #define QT_NO_STL
25 #include <QtCore/QtCore>
25 #include <QtCore/QtCore>
26 #include <QtGui/QtGui>
26 #include <QtGui/QtGui>
27 #include <QtNetwork/QtNetwork>
27 #include <QtNetwork/QtNetwork>
28 #include <QtSql/QtSql>
28 #include <QtSql/QtSql>
29 #include <QtSvg/QtSvg>
29 #include <QtSvg/QtSvg>
30 #include <QtXml/QtXml>
30 #include <QtXml/QtXml>
31
31
32 #include <QtUiTools/QtUiTools>
32 #include <QtUiTools/QtUiTools>
33
33
34 #ifndef QT_NO_XMLPATTERNS
34 #ifndef QT_NO_XMLPATTERNS
35 # include <QtXmlPatterns/QtXmlPatterns>
35 # include <QtXmlPatterns/QtXmlPatterns>
36 #endif
36 #endif
37
37
38 #ifndef QT_NO_WEBKIT
38 #ifndef QT_NO_WEBKIT
39 # include <QtWebKit/QtWebKit>
39 # include <QtWebKit/QtWebKit>
40 #endif
40 #endif
41
41
42 #ifndef QT_NO_PHONON
42 #ifndef QT_NO_PHONON
43 # include <phonon/phonon>
43 # include <phonon/phonon>
44 #endif
44 #endif
45
45
46 #include "../qtbindings/qtscript_core/qtscriptconcurrent.h"
46 //#include "../qtbindings/qtscript_core/qtscriptconcurrent.h"
47
47
48 #ifndef QT_NO_OPENGL
48 #ifndef QT_NO_OPENGL
49 #define GL_ACCUM 0x0100
49 #define GL_ACCUM 0x0100
50 #define GL_LOAD 0x0101
50 #define GL_LOAD 0x0101
51 #define GL_RETURN 0x0102
51 #define GL_RETURN 0x0102
52 #define GL_MULT 0x0103
52 #define GL_MULT 0x0103
53 #define GL_ADD 0x0104
53 #define GL_ADD 0x0104
54
54
55 /* AlphaFunction */
55 /* AlphaFunction */
56 #define GL_NEVER 0x0200
56 #define GL_NEVER 0x0200
57 #define GL_LESS 0x0201
57 #define GL_LESS 0x0201
58 #define GL_EQUAL 0x0202
58 #define GL_EQUAL 0x0202
59 #define GL_LEQUAL 0x0203
59 #define GL_LEQUAL 0x0203
60 #define GL_GREATER 0x0204
60 #define GL_GREATER 0x0204
61 #define GL_NOTEQUAL 0x0205
61 #define GL_NOTEQUAL 0x0205
62 #define GL_GEQUAL 0x0206
62 #define GL_GEQUAL 0x0206
63 #define GL_ALWAYS 0x0207
63 #define GL_ALWAYS 0x0207
64
64
65 /* AttribMask */
65 /* AttribMask */
66 #define GL_CURRENT_BIT 0x00000001
66 #define GL_CURRENT_BIT 0x00000001
67 #define GL_POINT_BIT 0x00000002
67 #define GL_POINT_BIT 0x00000002
68 #define GL_LINE_BIT 0x00000004
68 #define GL_LINE_BIT 0x00000004
69 #define GL_POLYGON_BIT 0x00000008
69 #define GL_POLYGON_BIT 0x00000008
70 #define GL_POLYGON_STIPPLE_BIT 0x00000010
70 #define GL_POLYGON_STIPPLE_BIT 0x00000010
71 #define GL_PIXEL_MODE_BIT 0x00000020
71 #define GL_PIXEL_MODE_BIT 0x00000020
72 #define GL_LIGHTING_BIT 0x00000040
72 #define GL_LIGHTING_BIT 0x00000040
73 #define GL_FOG_BIT 0x00000080
73 #define GL_FOG_BIT 0x00000080
74 #define GL_DEPTH_BUFFER_BIT 0x00000100
74 #define GL_DEPTH_BUFFER_BIT 0x00000100
75 #define GL_ACCUM_BUFFER_BIT 0x00000200
75 #define GL_ACCUM_BUFFER_BIT 0x00000200
76 #define GL_STENCIL_BUFFER_BIT 0x00000400
76 #define GL_STENCIL_BUFFER_BIT 0x00000400
77 #define GL_VIEWPORT_BIT 0x00000800
77 #define GL_VIEWPORT_BIT 0x00000800
78 #define GL_TRANSFORM_BIT 0x00001000
78 #define GL_TRANSFORM_BIT 0x00001000
79 #define GL_ENABLE_BIT 0x00002000
79 #define GL_ENABLE_BIT 0x00002000
80 #define GL_COLOR_BUFFER_BIT 0x00004000
80 #define GL_COLOR_BUFFER_BIT 0x00004000
81 #define GL_HINT_BIT 0x00008000
81 #define GL_HINT_BIT 0x00008000
82 #define GL_EVAL_BIT 0x00010000
82 #define GL_EVAL_BIT 0x00010000
83 #define GL_LIST_BIT 0x00020000
83 #define GL_LIST_BIT 0x00020000
84 #define GL_TEXTURE_BIT 0x00040000
84 #define GL_TEXTURE_BIT 0x00040000
85 #define GL_SCISSOR_BIT 0x00080000
85 #define GL_SCISSOR_BIT 0x00080000
86 #define GL_ALL_ATTRIB_BITS 0x000fffff
86 #define GL_ALL_ATTRIB_BITS 0x000fffff
87
87
88 /* BeginMode */
88 /* BeginMode */
89 #define GL_POINTS 0x0000
89 #define GL_POINTS 0x0000
90 #define GL_LINES 0x0001
90 #define GL_LINES 0x0001
91 #define GL_LINE_LOOP 0x0002
91 #define GL_LINE_LOOP 0x0002
92 #define GL_LINE_STRIP 0x0003
92 #define GL_LINE_STRIP 0x0003
93 #define GL_TRIANGLES 0x0004
93 #define GL_TRIANGLES 0x0004
94 #define GL_TRIANGLE_STRIP 0x0005
94 #define GL_TRIANGLE_STRIP 0x0005
95 #define GL_TRIANGLE_FAN 0x0006
95 #define GL_TRIANGLE_FAN 0x0006
96 #define GL_QUADS 0x0007
96 #define GL_QUADS 0x0007
97 #define GL_QUAD_STRIP 0x0008
97 #define GL_QUAD_STRIP 0x0008
98 #define GL_POLYGON 0x0009
98 #define GL_POLYGON 0x0009
99
99
100 /* BlendingFactorDest */
100 /* BlendingFactorDest */
101 #define GL_ZERO 0
101 #define GL_ZERO 0
102 #define GL_ONE 1
102 #define GL_ONE 1
103 #define GL_SRC_COLOR 0x0300
103 #define GL_SRC_COLOR 0x0300
104 #define GL_ONE_MINUS_SRC_COLOR 0x0301
104 #define GL_ONE_MINUS_SRC_COLOR 0x0301
105 #define GL_SRC_ALPHA 0x0302
105 #define GL_SRC_ALPHA 0x0302
106 #define GL_ONE_MINUS_SRC_ALPHA 0x0303
106 #define GL_ONE_MINUS_SRC_ALPHA 0x0303
107 #define GL_DST_ALPHA 0x0304
107 #define GL_DST_ALPHA 0x0304
108 #define GL_ONE_MINUS_DST_ALPHA 0x0305
108 #define GL_ONE_MINUS_DST_ALPHA 0x0305
109
109
110 /* BlendingFactorSrc */
110 /* BlendingFactorSrc */
111 /* GL_ZERO */
111 /* GL_ZERO */
112 /* GL_ONE */
112 /* GL_ONE */
113 #define GL_DST_COLOR 0x0306
113 #define GL_DST_COLOR 0x0306
114 #define GL_ONE_MINUS_DST_COLOR 0x0307
114 #define GL_ONE_MINUS_DST_COLOR 0x0307
115 #define GL_SRC_ALPHA_SATURATE 0x0308
115 #define GL_SRC_ALPHA_SATURATE 0x0308
116 /* GL_SRC_ALPHA */
116 /* GL_SRC_ALPHA */
117 /* GL_ONE_MINUS_SRC_ALPHA */
117 /* GL_ONE_MINUS_SRC_ALPHA */
118 /* GL_DST_ALPHA */
118 /* GL_DST_ALPHA */
119 /* GL_ONE_MINUS_DST_ALPHA */
119 /* GL_ONE_MINUS_DST_ALPHA */
120
120
121 /* Boolean */
121 /* Boolean */
122 #define GL_TRUE 1
122 #define GL_TRUE 1
123 #define GL_FALSE 0
123 #define GL_FALSE 0
124
124
125 /* ClearBufferMask */
125 /* ClearBufferMask */
126 /* GL_COLOR_BUFFER_BIT */
126 /* GL_COLOR_BUFFER_BIT */
127 /* GL_ACCUM_BUFFER_BIT */
127 /* GL_ACCUM_BUFFER_BIT */
128 /* GL_STENCIL_BUFFER_BIT */
128 /* GL_STENCIL_BUFFER_BIT */
129 /* GL_DEPTH_BUFFER_BIT */
129 /* GL_DEPTH_BUFFER_BIT */
130
130
131 /* ClientArrayType */
131 /* ClientArrayType */
132 /* GL_VERTEX_ARRAY */
132 /* GL_VERTEX_ARRAY */
133 /* GL_NORMAL_ARRAY */
133 /* GL_NORMAL_ARRAY */
134 /* GL_COLOR_ARRAY */
134 /* GL_COLOR_ARRAY */
135 /* GL_INDEX_ARRAY */
135 /* GL_INDEX_ARRAY */
136 /* GL_TEXTURE_COORD_ARRAY */
136 /* GL_TEXTURE_COORD_ARRAY */
137 /* GL_EDGE_FLAG_ARRAY */
137 /* GL_EDGE_FLAG_ARRAY */
138
138
139 /* ClipPlaneName */
139 /* ClipPlaneName */
140 #define GL_CLIP_PLANE0 0x3000
140 #define GL_CLIP_PLANE0 0x3000
141 #define GL_CLIP_PLANE1 0x3001
141 #define GL_CLIP_PLANE1 0x3001
142 #define GL_CLIP_PLANE2 0x3002
142 #define GL_CLIP_PLANE2 0x3002
143 #define GL_CLIP_PLANE3 0x3003
143 #define GL_CLIP_PLANE3 0x3003
144 #define GL_CLIP_PLANE4 0x3004
144 #define GL_CLIP_PLANE4 0x3004
145 #define GL_CLIP_PLANE5 0x3005
145 #define GL_CLIP_PLANE5 0x3005
146
146
147 /* ColorMaterialFace */
147 /* ColorMaterialFace */
148 /* GL_FRONT */
148 /* GL_FRONT */
149 /* GL_BACK */
149 /* GL_BACK */
150 /* GL_FRONT_AND_BACK */
150 /* GL_FRONT_AND_BACK */
151
151
152 /* ColorMaterialParameter */
152 /* ColorMaterialParameter */
153 /* GL_AMBIENT */
153 /* GL_AMBIENT */
154 /* GL_DIFFUSE */
154 /* GL_DIFFUSE */
155 /* GL_SPECULAR */
155 /* GL_SPECULAR */
156 /* GL_EMISSION */
156 /* GL_EMISSION */
157 /* GL_AMBIENT_AND_DIFFUSE */
157 /* GL_AMBIENT_AND_DIFFUSE */
158
158
159 /* ColorPointerType */
159 /* ColorPointerType */
160 /* GL_BYTE */
160 /* GL_BYTE */
161 /* GL_UNSIGNED_BYTE */
161 /* GL_UNSIGNED_BYTE */
162 /* GL_SHORT */
162 /* GL_SHORT */
163 /* GL_UNSIGNED_SHORT */
163 /* GL_UNSIGNED_SHORT */
164 /* GL_INT */
164 /* GL_INT */
165 /* GL_UNSIGNED_INT */
165 /* GL_UNSIGNED_INT */
166 /* GL_FLOAT */
166 /* GL_FLOAT */
167 /* GL_DOUBLE */
167 /* GL_DOUBLE */
168
168
169 /* CullFaceMode */
169 /* CullFaceMode */
170 /* GL_FRONT */
170 /* GL_FRONT */
171 /* GL_BACK */
171 /* GL_BACK */
172 /* GL_FRONT_AND_BACK */
172 /* GL_FRONT_AND_BACK */
173
173
174 /* DataType */
174 /* DataType */
175 #define GL_BYTE 0x1400
175 #define GL_BYTE 0x1400
176 #define GL_UNSIGNED_BYTE 0x1401
176 #define GL_UNSIGNED_BYTE 0x1401
177 #define GL_SHORT 0x1402
177 #define GL_SHORT 0x1402
178 #define GL_UNSIGNED_SHORT 0x1403
178 #define GL_UNSIGNED_SHORT 0x1403
179 #define GL_INT 0x1404
179 #define GL_INT 0x1404
180 #define GL_UNSIGNED_INT 0x1405
180 #define GL_UNSIGNED_INT 0x1405
181 #define GL_FLOAT 0x1406
181 #define GL_FLOAT 0x1406
182 #define GL_2_BYTES 0x1407
182 #define GL_2_BYTES 0x1407
183 #define GL_3_BYTES 0x1408
183 #define GL_3_BYTES 0x1408
184 #define GL_4_BYTES 0x1409
184 #define GL_4_BYTES 0x1409
185 #define GL_DOUBLE 0x140A
185 #define GL_DOUBLE 0x140A
186
186
187 /* DepthFunction */
187 /* DepthFunction */
188 /* GL_NEVER */
188 /* GL_NEVER */
189 /* GL_LESS */
189 /* GL_LESS */
190 /* GL_EQUAL */
190 /* GL_EQUAL */
191 /* GL_LEQUAL */
191 /* GL_LEQUAL */
192 /* GL_GREATER */
192 /* GL_GREATER */
193 /* GL_NOTEQUAL */
193 /* GL_NOTEQUAL */
194 /* GL_GEQUAL */
194 /* GL_GEQUAL */
195 /* GL_ALWAYS */
195 /* GL_ALWAYS */
196
196
197 /* DrawBufferMode */
197 /* DrawBufferMode */
198 #define GL_NONE 0
198 #define GL_NONE 0
199 #define GL_FRONT_LEFT 0x0400
199 #define GL_FRONT_LEFT 0x0400
200 #define GL_FRONT_RIGHT 0x0401
200 #define GL_FRONT_RIGHT 0x0401
201 #define GL_BACK_LEFT 0x0402
201 #define GL_BACK_LEFT 0x0402
202 #define GL_BACK_RIGHT 0x0403
202 #define GL_BACK_RIGHT 0x0403
203 #define GL_FRONT 0x0404
203 #define GL_FRONT 0x0404
204 #define GL_BACK 0x0405
204 #define GL_BACK 0x0405
205 #define GL_LEFT 0x0406
205 #define GL_LEFT 0x0406
206 #define GL_RIGHT 0x0407
206 #define GL_RIGHT 0x0407
207 #define GL_FRONT_AND_BACK 0x0408
207 #define GL_FRONT_AND_BACK 0x0408
208 #define GL_AUX0 0x0409
208 #define GL_AUX0 0x0409
209 #define GL_AUX1 0x040A
209 #define GL_AUX1 0x040A
210 #define GL_AUX2 0x040B
210 #define GL_AUX2 0x040B
211 #define GL_AUX3 0x040C
211 #define GL_AUX3 0x040C
212
212
213 /* Enable */
213 /* Enable */
214 /* GL_FOG */
214 /* GL_FOG */
215 /* GL_LIGHTING */
215 /* GL_LIGHTING */
216 /* GL_TEXTURE_1D */
216 /* GL_TEXTURE_1D */
217 /* GL_TEXTURE_2D */
217 /* GL_TEXTURE_2D */
218 /* GL_LINE_STIPPLE */
218 /* GL_LINE_STIPPLE */
219 /* GL_POLYGON_STIPPLE */
219 /* GL_POLYGON_STIPPLE */
220 /* GL_CULL_FACE */
220 /* GL_CULL_FACE */
221 /* GL_ALPHA_TEST */
221 /* GL_ALPHA_TEST */
222 /* GL_BLEND */
222 /* GL_BLEND */
223 /* GL_INDEX_LOGIC_OP */
223 /* GL_INDEX_LOGIC_OP */
224 /* GL_COLOR_LOGIC_OP */
224 /* GL_COLOR_LOGIC_OP */
225 /* GL_DITHER */
225 /* GL_DITHER */
226 /* GL_STENCIL_TEST */
226 /* GL_STENCIL_TEST */
227 /* GL_DEPTH_TEST */
227 /* GL_DEPTH_TEST */
228 /* GL_CLIP_PLANE0 */
228 /* GL_CLIP_PLANE0 */
229 /* GL_CLIP_PLANE1 */
229 /* GL_CLIP_PLANE1 */
230 /* GL_CLIP_PLANE2 */
230 /* GL_CLIP_PLANE2 */
231 /* GL_CLIP_PLANE3 */
231 /* GL_CLIP_PLANE3 */
232 /* GL_CLIP_PLANE4 */
232 /* GL_CLIP_PLANE4 */
233 /* GL_CLIP_PLANE5 */
233 /* GL_CLIP_PLANE5 */
234 /* GL_LIGHT0 */
234 /* GL_LIGHT0 */
235 /* GL_LIGHT1 */
235 /* GL_LIGHT1 */
236 /* GL_LIGHT2 */
236 /* GL_LIGHT2 */
237 /* GL_LIGHT3 */
237 /* GL_LIGHT3 */
238 /* GL_LIGHT4 */
238 /* GL_LIGHT4 */
239 /* GL_LIGHT5 */
239 /* GL_LIGHT5 */
240 /* GL_LIGHT6 */
240 /* GL_LIGHT6 */
241 /* GL_LIGHT7 */
241 /* GL_LIGHT7 */
242 /* GL_TEXTURE_GEN_S */
242 /* GL_TEXTURE_GEN_S */
243 /* GL_TEXTURE_GEN_T */
243 /* GL_TEXTURE_GEN_T */
244 /* GL_TEXTURE_GEN_R */
244 /* GL_TEXTURE_GEN_R */
245 /* GL_TEXTURE_GEN_Q */
245 /* GL_TEXTURE_GEN_Q */
246 /* GL_MAP1_VERTEX_3 */
246 /* GL_MAP1_VERTEX_3 */
247 /* GL_MAP1_VERTEX_4 */
247 /* GL_MAP1_VERTEX_4 */
248 /* GL_MAP1_COLOR_4 */
248 /* GL_MAP1_COLOR_4 */
249 /* GL_MAP1_INDEX */
249 /* GL_MAP1_INDEX */
250 /* GL_MAP1_NORMAL */
250 /* GL_MAP1_NORMAL */
251 /* GL_MAP1_TEXTURE_COORD_1 */
251 /* GL_MAP1_TEXTURE_COORD_1 */
252 /* GL_MAP1_TEXTURE_COORD_2 */
252 /* GL_MAP1_TEXTURE_COORD_2 */
253 /* GL_MAP1_TEXTURE_COORD_3 */
253 /* GL_MAP1_TEXTURE_COORD_3 */
254 /* GL_MAP1_TEXTURE_COORD_4 */
254 /* GL_MAP1_TEXTURE_COORD_4 */
255 /* GL_MAP2_VERTEX_3 */
255 /* GL_MAP2_VERTEX_3 */
256 /* GL_MAP2_VERTEX_4 */
256 /* GL_MAP2_VERTEX_4 */
257 /* GL_MAP2_COLOR_4 */
257 /* GL_MAP2_COLOR_4 */
258 /* GL_MAP2_INDEX */
258 /* GL_MAP2_INDEX */
259 /* GL_MAP2_NORMAL */
259 /* GL_MAP2_NORMAL */
260 /* GL_MAP2_TEXTURE_COORD_1 */
260 /* GL_MAP2_TEXTURE_COORD_1 */
261 /* GL_MAP2_TEXTURE_COORD_2 */
261 /* GL_MAP2_TEXTURE_COORD_2 */
262 /* GL_MAP2_TEXTURE_COORD_3 */
262 /* GL_MAP2_TEXTURE_COORD_3 */
263 /* GL_MAP2_TEXTURE_COORD_4 */
263 /* GL_MAP2_TEXTURE_COORD_4 */
264 /* GL_POINT_SMOOTH */
264 /* GL_POINT_SMOOTH */
265 /* GL_LINE_SMOOTH */
265 /* GL_LINE_SMOOTH */
266 /* GL_POLYGON_SMOOTH */
266 /* GL_POLYGON_SMOOTH */
267 /* GL_SCISSOR_TEST */
267 /* GL_SCISSOR_TEST */
268 /* GL_COLOR_MATERIAL */
268 /* GL_COLOR_MATERIAL */
269 /* GL_NORMALIZE */
269 /* GL_NORMALIZE */
270 /* GL_AUTO_NORMAL */
270 /* GL_AUTO_NORMAL */
271 /* GL_VERTEX_ARRAY */
271 /* GL_VERTEX_ARRAY */
272 /* GL_NORMAL_ARRAY */
272 /* GL_NORMAL_ARRAY */
273 /* GL_COLOR_ARRAY */
273 /* GL_COLOR_ARRAY */
274 /* GL_INDEX_ARRAY */
274 /* GL_INDEX_ARRAY */
275 /* GL_TEXTURE_COORD_ARRAY */
275 /* GL_TEXTURE_COORD_ARRAY */
276 /* GL_EDGE_FLAG_ARRAY */
276 /* GL_EDGE_FLAG_ARRAY */
277 /* GL_POLYGON_OFFSET_POINT */
277 /* GL_POLYGON_OFFSET_POINT */
278 /* GL_POLYGON_OFFSET_LINE */
278 /* GL_POLYGON_OFFSET_LINE */
279 /* GL_POLYGON_OFFSET_FILL */
279 /* GL_POLYGON_OFFSET_FILL */
280
280
281 /* ErrorCode */
281 /* ErrorCode */
282 #define GL_NO_ERROR 0
282 #define GL_NO_ERROR 0
283 #define GL_INVALID_ENUM 0x0500
283 #define GL_INVALID_ENUM 0x0500
284 #define GL_INVALID_VALUE 0x0501
284 #define GL_INVALID_VALUE 0x0501
285 #define GL_INVALID_OPERATION 0x0502
285 #define GL_INVALID_OPERATION 0x0502
286 #define GL_STACK_OVERFLOW 0x0503
286 #define GL_STACK_OVERFLOW 0x0503
287 #define GL_STACK_UNDERFLOW 0x0504
287 #define GL_STACK_UNDERFLOW 0x0504
288 #define GL_OUT_OF_MEMORY 0x0505
288 #define GL_OUT_OF_MEMORY 0x0505
289
289
290 /* FeedBackMode */
290 /* FeedBackMode */
291 #define GL_2D 0x0600
291 #define GL_2D 0x0600
292 #define GL_3D 0x0601
292 #define GL_3D 0x0601
293 #define GL_3D_COLOR 0x0602
293 #define GL_3D_COLOR 0x0602
294 #define GL_3D_COLOR_TEXTURE 0x0603
294 #define GL_3D_COLOR_TEXTURE 0x0603
295 #define GL_4D_COLOR_TEXTURE 0x0604
295 #define GL_4D_COLOR_TEXTURE 0x0604
296
296
297 /* FeedBackToken */
297 /* FeedBackToken */
298 #define GL_PASS_THROUGH_TOKEN 0x0700
298 #define GL_PASS_THROUGH_TOKEN 0x0700
299 #define GL_POINT_TOKEN 0x0701
299 #define GL_POINT_TOKEN 0x0701
300 #define GL_LINE_TOKEN 0x0702
300 #define GL_LINE_TOKEN 0x0702
301 #define GL_POLYGON_TOKEN 0x0703
301 #define GL_POLYGON_TOKEN 0x0703
302 #define GL_BITMAP_TOKEN 0x0704
302 #define GL_BITMAP_TOKEN 0x0704
303 #define GL_DRAW_PIXEL_TOKEN 0x0705
303 #define GL_DRAW_PIXEL_TOKEN 0x0705
304 #define GL_COPY_PIXEL_TOKEN 0x0706
304 #define GL_COPY_PIXEL_TOKEN 0x0706
305 #define GL_LINE_RESET_TOKEN 0x0707
305 #define GL_LINE_RESET_TOKEN 0x0707
306
306
307 /* FogMode */
307 /* FogMode */
308 /* GL_LINEAR */
308 /* GL_LINEAR */
309 #define GL_EXP 0x0800
309 #define GL_EXP 0x0800
310 #define GL_EXP2 0x0801
310 #define GL_EXP2 0x0801
311
311
312
312
313 /* FogParameter */
313 /* FogParameter */
314 /* GL_FOG_COLOR */
314 /* GL_FOG_COLOR */
315 /* GL_FOG_DENSITY */
315 /* GL_FOG_DENSITY */
316 /* GL_FOG_END */
316 /* GL_FOG_END */
317 /* GL_FOG_INDEX */
317 /* GL_FOG_INDEX */
318 /* GL_FOG_MODE */
318 /* GL_FOG_MODE */
319 /* GL_FOG_START */
319 /* GL_FOG_START */
320
320
321 /* FrontFaceDirection */
321 /* FrontFaceDirection */
322 #define GL_CW 0x0900
322 #define GL_CW 0x0900
323 #define GL_CCW 0x0901
323 #define GL_CCW 0x0901
324
324
325 /* GetMapTarget */
325 /* GetMapTarget */
326 #define GL_COEFF 0x0A00
326 #define GL_COEFF 0x0A00
327 #define GL_ORDER 0x0A01
327 #define GL_ORDER 0x0A01
328 #define GL_DOMAIN 0x0A02
328 #define GL_DOMAIN 0x0A02
329
329
330 /* GetPixelMap */
330 /* GetPixelMap */
331 /* GL_PIXEL_MAP_I_TO_I */
331 /* GL_PIXEL_MAP_I_TO_I */
332 /* GL_PIXEL_MAP_S_TO_S */
332 /* GL_PIXEL_MAP_S_TO_S */
333 /* GL_PIXEL_MAP_I_TO_R */
333 /* GL_PIXEL_MAP_I_TO_R */
334 /* GL_PIXEL_MAP_I_TO_G */
334 /* GL_PIXEL_MAP_I_TO_G */
335 /* GL_PIXEL_MAP_I_TO_B */
335 /* GL_PIXEL_MAP_I_TO_B */
336 /* GL_PIXEL_MAP_I_TO_A */
336 /* GL_PIXEL_MAP_I_TO_A */
337 /* GL_PIXEL_MAP_R_TO_R */
337 /* GL_PIXEL_MAP_R_TO_R */
338 /* GL_PIXEL_MAP_G_TO_G */
338 /* GL_PIXEL_MAP_G_TO_G */
339 /* GL_PIXEL_MAP_B_TO_B */
339 /* GL_PIXEL_MAP_B_TO_B */
340 /* GL_PIXEL_MAP_A_TO_A */
340 /* GL_PIXEL_MAP_A_TO_A */
341
341
342 /* GetPointerTarget */
342 /* GetPointerTarget */
343 /* GL_VERTEX_ARRAY_POINTER */
343 /* GL_VERTEX_ARRAY_POINTER */
344 /* GL_NORMAL_ARRAY_POINTER */
344 /* GL_NORMAL_ARRAY_POINTER */
345 /* GL_COLOR_ARRAY_POINTER */
345 /* GL_COLOR_ARRAY_POINTER */
346 /* GL_INDEX_ARRAY_POINTER */
346 /* GL_INDEX_ARRAY_POINTER */
347 /* GL_TEXTURE_COORD_ARRAY_POINTER */
347 /* GL_TEXTURE_COORD_ARRAY_POINTER */
348 /* GL_EDGE_FLAG_ARRAY_POINTER */
348 /* GL_EDGE_FLAG_ARRAY_POINTER */
349
349
350 /* GetTarget */
350 /* GetTarget */
351 #define GL_CURRENT_COLOR 0x0B00
351 #define GL_CURRENT_COLOR 0x0B00
352 #define GL_CURRENT_INDEX 0x0B01
352 #define GL_CURRENT_INDEX 0x0B01
353 #define GL_CURRENT_NORMAL 0x0B02
353 #define GL_CURRENT_NORMAL 0x0B02
354 #define GL_CURRENT_TEXTURE_COORDS 0x0B03
354 #define GL_CURRENT_TEXTURE_COORDS 0x0B03
355 #define GL_CURRENT_RASTER_COLOR 0x0B04
355 #define GL_CURRENT_RASTER_COLOR 0x0B04
356 #define GL_CURRENT_RASTER_INDEX 0x0B05
356 #define GL_CURRENT_RASTER_INDEX 0x0B05
357 #define GL_CURRENT_RASTER_TEXTURE_COORDS 0x0B06
357 #define GL_CURRENT_RASTER_TEXTURE_COORDS 0x0B06
358 #define GL_CURRENT_RASTER_POSITION 0x0B07
358 #define GL_CURRENT_RASTER_POSITION 0x0B07
359 #define GL_CURRENT_RASTER_POSITION_VALID 0x0B08
359 #define GL_CURRENT_RASTER_POSITION_VALID 0x0B08
360 #define GL_CURRENT_RASTER_DISTANCE 0x0B09
360 #define GL_CURRENT_RASTER_DISTANCE 0x0B09
361 #define GL_POINT_SMOOTH 0x0B10
361 #define GL_POINT_SMOOTH 0x0B10
362 #define GL_POINT_SIZE 0x0B11
362 #define GL_POINT_SIZE 0x0B11
363 #define GL_POINT_SIZE_RANGE 0x0B12
363 #define GL_POINT_SIZE_RANGE 0x0B12
364 #define GL_POINT_SIZE_GRANULARITY 0x0B13
364 #define GL_POINT_SIZE_GRANULARITY 0x0B13
365 #define GL_LINE_SMOOTH 0x0B20
365 #define GL_LINE_SMOOTH 0x0B20
366 #define GL_LINE_WIDTH 0x0B21
366 #define GL_LINE_WIDTH 0x0B21
367 #define GL_LINE_WIDTH_RANGE 0x0B22
367 #define GL_LINE_WIDTH_RANGE 0x0B22
368 #define GL_LINE_WIDTH_GRANULARITY 0x0B23
368 #define GL_LINE_WIDTH_GRANULARITY 0x0B23
369 #define GL_LINE_STIPPLE 0x0B24
369 #define GL_LINE_STIPPLE 0x0B24
370 #define GL_LINE_STIPPLE_PATTERN 0x0B25
370 #define GL_LINE_STIPPLE_PATTERN 0x0B25
371 #define GL_LINE_STIPPLE_REPEAT 0x0B26
371 #define GL_LINE_STIPPLE_REPEAT 0x0B26
372 #define GL_LIST_MODE 0x0B30
372 #define GL_LIST_MODE 0x0B30
373 #define GL_MAX_LIST_NESTING 0x0B31
373 #define GL_MAX_LIST_NESTING 0x0B31
374 #define GL_LIST_BASE 0x0B32
374 #define GL_LIST_BASE 0x0B32
375 #define GL_LIST_INDEX 0x0B33
375 #define GL_LIST_INDEX 0x0B33
376 #define GL_POLYGON_MODE 0x0B40
376 #define GL_POLYGON_MODE 0x0B40
377 #define GL_POLYGON_SMOOTH 0x0B41
377 #define GL_POLYGON_SMOOTH 0x0B41
378 #define GL_POLYGON_STIPPLE 0x0B42
378 #define GL_POLYGON_STIPPLE 0x0B42
379 #define GL_EDGE_FLAG 0x0B43
379 #define GL_EDGE_FLAG 0x0B43
380 #define GL_CULL_FACE 0x0B44
380 #define GL_CULL_FACE 0x0B44
381 #define GL_CULL_FACE_MODE 0x0B45
381 #define GL_CULL_FACE_MODE 0x0B45
382 #define GL_FRONT_FACE 0x0B46
382 #define GL_FRONT_FACE 0x0B46
383 #define GL_LIGHTING 0x0B50
383 #define GL_LIGHTING 0x0B50
384 #define GL_LIGHT_MODEL_LOCAL_VIEWER 0x0B51
384 #define GL_LIGHT_MODEL_LOCAL_VIEWER 0x0B51
385 #define GL_LIGHT_MODEL_TWO_SIDE 0x0B52
385 #define GL_LIGHT_MODEL_TWO_SIDE 0x0B52
386 #define GL_LIGHT_MODEL_AMBIENT 0x0B53
386 #define GL_LIGHT_MODEL_AMBIENT 0x0B53
387 #define GL_SHADE_MODEL 0x0B54
387 #define GL_SHADE_MODEL 0x0B54
388 #define GL_COLOR_MATERIAL_FACE 0x0B55
388 #define GL_COLOR_MATERIAL_FACE 0x0B55
389 #define GL_COLOR_MATERIAL_PARAMETER 0x0B56
389 #define GL_COLOR_MATERIAL_PARAMETER 0x0B56
390 #define GL_COLOR_MATERIAL 0x0B57
390 #define GL_COLOR_MATERIAL 0x0B57
391 #define GL_FOG 0x0B60
391 #define GL_FOG 0x0B60
392 #define GL_FOG_INDEX 0x0B61
392 #define GL_FOG_INDEX 0x0B61
393 #define GL_FOG_DENSITY 0x0B62
393 #define GL_FOG_DENSITY 0x0B62
394 #define GL_FOG_START 0x0B63
394 #define GL_FOG_START 0x0B63
395 #define GL_FOG_END 0x0B64
395 #define GL_FOG_END 0x0B64
396 #define GL_FOG_MODE 0x0B65
396 #define GL_FOG_MODE 0x0B65
397 #define GL_FOG_COLOR 0x0B66
397 #define GL_FOG_COLOR 0x0B66
398 #define GL_DEPTH_RANGE 0x0B70
398 #define GL_DEPTH_RANGE 0x0B70
399 #define GL_DEPTH_TEST 0x0B71
399 #define GL_DEPTH_TEST 0x0B71
400 #define GL_DEPTH_WRITEMASK 0x0B72
400 #define GL_DEPTH_WRITEMASK 0x0B72
401 #define GL_DEPTH_CLEAR_VALUE 0x0B73
401 #define GL_DEPTH_CLEAR_VALUE 0x0B73
402 #define GL_DEPTH_FUNC 0x0B74
402 #define GL_DEPTH_FUNC 0x0B74
403 #define GL_ACCUM_CLEAR_VALUE 0x0B80
403 #define GL_ACCUM_CLEAR_VALUE 0x0B80
404 #define GL_STENCIL_TEST 0x0B90
404 #define GL_STENCIL_TEST 0x0B90
405 #define GL_STENCIL_CLEAR_VALUE 0x0B91
405 #define GL_STENCIL_CLEAR_VALUE 0x0B91
406 #define GL_STENCIL_FUNC 0x0B92
406 #define GL_STENCIL_FUNC 0x0B92
407 #define GL_STENCIL_VALUE_MASK 0x0B93
407 #define GL_STENCIL_VALUE_MASK 0x0B93
408 #define GL_STENCIL_FAIL 0x0B94
408 #define GL_STENCIL_FAIL 0x0B94
409 #define GL_STENCIL_PASS_DEPTH_FAIL 0x0B95
409 #define GL_STENCIL_PASS_DEPTH_FAIL 0x0B95
410 #define GL_STENCIL_PASS_DEPTH_PASS 0x0B96
410 #define GL_STENCIL_PASS_DEPTH_PASS 0x0B96
411 #define GL_STENCIL_REF 0x0B97
411 #define GL_STENCIL_REF 0x0B97
412 #define GL_STENCIL_WRITEMASK 0x0B98
412 #define GL_STENCIL_WRITEMASK 0x0B98
413 #define GL_MATRIX_MODE 0x0BA0
413 #define GL_MATRIX_MODE 0x0BA0
414 #define GL_NORMALIZE 0x0BA1
414 #define GL_NORMALIZE 0x0BA1
415 #define GL_VIEWPORT 0x0BA2
415 #define GL_VIEWPORT 0x0BA2
416 #define GL_MODELVIEW_STACK_DEPTH 0x0BA3
416 #define GL_MODELVIEW_STACK_DEPTH 0x0BA3
417 #define GL_PROJECTION_STACK_DEPTH 0x0BA4
417 #define GL_PROJECTION_STACK_DEPTH 0x0BA4
418 #define GL_TEXTURE_STACK_DEPTH 0x0BA5
418 #define GL_TEXTURE_STACK_DEPTH 0x0BA5
419 #define GL_MODELVIEW_MATRIX 0x0BA6
419 #define GL_MODELVIEW_MATRIX 0x0BA6
420 #define GL_PROJECTION_MATRIX 0x0BA7
420 #define GL_PROJECTION_MATRIX 0x0BA7
421 #define GL_TEXTURE_MATRIX 0x0BA8
421 #define GL_TEXTURE_MATRIX 0x0BA8
422 #define GL_ATTRIB_STACK_DEPTH 0x0BB0
422 #define GL_ATTRIB_STACK_DEPTH 0x0BB0
423 #define GL_CLIENT_ATTRIB_STACK_DEPTH 0x0BB1
423 #define GL_CLIENT_ATTRIB_STACK_DEPTH 0x0BB1
424 #define GL_ALPHA_TEST 0x0BC0
424 #define GL_ALPHA_TEST 0x0BC0
425 #define GL_ALPHA_TEST_FUNC 0x0BC1
425 #define GL_ALPHA_TEST_FUNC 0x0BC1
426 #define GL_ALPHA_TEST_REF 0x0BC2
426 #define GL_ALPHA_TEST_REF 0x0BC2
427 #define GL_DITHER 0x0BD0
427 #define GL_DITHER 0x0BD0
428 #define GL_BLEND_DST 0x0BE0
428 #define GL_BLEND_DST 0x0BE0
429 #define GL_BLEND_SRC 0x0BE1
429 #define GL_BLEND_SRC 0x0BE1
430 #define GL_BLEND 0x0BE2
430 #define GL_BLEND 0x0BE2
431 #define GL_LOGIC_OP_MODE 0x0BF0
431 #define GL_LOGIC_OP_MODE 0x0BF0
432 #define GL_INDEX_LOGIC_OP 0x0BF1
432 #define GL_INDEX_LOGIC_OP 0x0BF1
433 #define GL_COLOR_LOGIC_OP 0x0BF2
433 #define GL_COLOR_LOGIC_OP 0x0BF2
434 #define GL_AUX_BUFFERS 0x0C00
434 #define GL_AUX_BUFFERS 0x0C00
435 #define GL_DRAW_BUFFER 0x0C01
435 #define GL_DRAW_BUFFER 0x0C01
436 #define GL_READ_BUFFER 0x0C02
436 #define GL_READ_BUFFER 0x0C02
437 #define GL_SCISSOR_BOX 0x0C10
437 #define GL_SCISSOR_BOX 0x0C10
438 #define GL_SCISSOR_TEST 0x0C11
438 #define GL_SCISSOR_TEST 0x0C11
439 #define GL_INDEX_CLEAR_VALUE 0x0C20
439 #define GL_INDEX_CLEAR_VALUE 0x0C20
440 #define GL_INDEX_WRITEMASK 0x0C21
440 #define GL_INDEX_WRITEMASK 0x0C21
441 #define GL_COLOR_CLEAR_VALUE 0x0C22
441 #define GL_COLOR_CLEAR_VALUE 0x0C22
442 #define GL_COLOR_WRITEMASK 0x0C23
442 #define GL_COLOR_WRITEMASK 0x0C23
443 #define GL_INDEX_MODE 0x0C30
443 #define GL_INDEX_MODE 0x0C30
444 #define GL_RGBA_MODE 0x0C31
444 #define GL_RGBA_MODE 0x0C31
445 #define GL_DOUBLEBUFFER 0x0C32
445 #define GL_DOUBLEBUFFER 0x0C32
446 #define GL_STEREO 0x0C33
446 #define GL_STEREO 0x0C33
447 #define GL_RENDER_MODE 0x0C40
447 #define GL_RENDER_MODE 0x0C40
448 #define GL_PERSPECTIVE_CORRECTION_HINT 0x0C50
448 #define GL_PERSPECTIVE_CORRECTION_HINT 0x0C50
449 #define GL_POINT_SMOOTH_HINT 0x0C51
449 #define GL_POINT_SMOOTH_HINT 0x0C51
450 #define GL_LINE_SMOOTH_HINT 0x0C52
450 #define GL_LINE_SMOOTH_HINT 0x0C52
451 #define GL_POLYGON_SMOOTH_HINT 0x0C53
451 #define GL_POLYGON_SMOOTH_HINT 0x0C53
452 #define GL_FOG_HINT 0x0C54
452 #define GL_FOG_HINT 0x0C54
453 #define GL_TEXTURE_GEN_S 0x0C60
453 #define GL_TEXTURE_GEN_S 0x0C60
454 #define GL_TEXTURE_GEN_T 0x0C61
454 #define GL_TEXTURE_GEN_T 0x0C61
455 #define GL_TEXTURE_GEN_R 0x0C62
455 #define GL_TEXTURE_GEN_R 0x0C62
456 #define GL_TEXTURE_GEN_Q 0x0C63
456 #define GL_TEXTURE_GEN_Q 0x0C63
457 #define GL_PIXEL_MAP_I_TO_I 0x0C70
457 #define GL_PIXEL_MAP_I_TO_I 0x0C70
458 #define GL_PIXEL_MAP_S_TO_S 0x0C71
458 #define GL_PIXEL_MAP_S_TO_S 0x0C71
459 #define GL_PIXEL_MAP_I_TO_R 0x0C72
459 #define GL_PIXEL_MAP_I_TO_R 0x0C72
460 #define GL_PIXEL_MAP_I_TO_G 0x0C73
460 #define GL_PIXEL_MAP_I_TO_G 0x0C73
461 #define GL_PIXEL_MAP_I_TO_B 0x0C74
461 #define GL_PIXEL_MAP_I_TO_B 0x0C74
462 #define GL_PIXEL_MAP_I_TO_A 0x0C75
462 #define GL_PIXEL_MAP_I_TO_A 0x0C75
463 #define GL_PIXEL_MAP_R_TO_R 0x0C76
463 #define GL_PIXEL_MAP_R_TO_R 0x0C76
464 #define GL_PIXEL_MAP_G_TO_G 0x0C77
464 #define GL_PIXEL_MAP_G_TO_G 0x0C77
465 #define GL_PIXEL_MAP_B_TO_B 0x0C78
465 #define GL_PIXEL_MAP_B_TO_B 0x0C78
466 #define GL_PIXEL_MAP_A_TO_A 0x0C79
466 #define GL_PIXEL_MAP_A_TO_A 0x0C79
467 #define GL_PIXEL_MAP_I_TO_I_SIZE 0x0CB0
467 #define GL_PIXEL_MAP_I_TO_I_SIZE 0x0CB0
468 #define GL_PIXEL_MAP_S_TO_S_SIZE 0x0CB1
468 #define GL_PIXEL_MAP_S_TO_S_SIZE 0x0CB1
469 #define GL_PIXEL_MAP_I_TO_R_SIZE 0x0CB2
469 #define GL_PIXEL_MAP_I_TO_R_SIZE 0x0CB2
470 #define GL_PIXEL_MAP_I_TO_G_SIZE 0x0CB3
470 #define GL_PIXEL_MAP_I_TO_G_SIZE 0x0CB3
471 #define GL_PIXEL_MAP_I_TO_B_SIZE 0x0CB4
471 #define GL_PIXEL_MAP_I_TO_B_SIZE 0x0CB4
472 #define GL_PIXEL_MAP_I_TO_A_SIZE 0x0CB5
472 #define GL_PIXEL_MAP_I_TO_A_SIZE 0x0CB5
473 #define GL_PIXEL_MAP_R_TO_R_SIZE 0x0CB6
473 #define GL_PIXEL_MAP_R_TO_R_SIZE 0x0CB6
474 #define GL_PIXEL_MAP_G_TO_G_SIZE 0x0CB7
474 #define GL_PIXEL_MAP_G_TO_G_SIZE 0x0CB7
475 #define GL_PIXEL_MAP_B_TO_B_SIZE 0x0CB8
475 #define GL_PIXEL_MAP_B_TO_B_SIZE 0x0CB8
476 #define GL_PIXEL_MAP_A_TO_A_SIZE 0x0CB9
476 #define GL_PIXEL_MAP_A_TO_A_SIZE 0x0CB9
477 #define GL_UNPACK_SWAP_BYTES 0x0CF0
477 #define GL_UNPACK_SWAP_BYTES 0x0CF0
478 #define GL_UNPACK_LSB_FIRST 0x0CF1
478 #define GL_UNPACK_LSB_FIRST 0x0CF1
479 #define GL_UNPACK_ROW_LENGTH 0x0CF2
479 #define GL_UNPACK_ROW_LENGTH 0x0CF2
480 #define GL_UNPACK_SKIP_ROWS 0x0CF3
480 #define GL_UNPACK_SKIP_ROWS 0x0CF3
481 #define GL_UNPACK_SKIP_PIXELS 0x0CF4
481 #define GL_UNPACK_SKIP_PIXELS 0x0CF4
482 #define GL_UNPACK_ALIGNMENT 0x0CF5
482 #define GL_UNPACK_ALIGNMENT 0x0CF5
483 #define GL_PACK_SWAP_BYTES 0x0D00
483 #define GL_PACK_SWAP_BYTES 0x0D00
484 #define GL_PACK_LSB_FIRST 0x0D01
484 #define GL_PACK_LSB_FIRST 0x0D01
485 #define GL_PACK_ROW_LENGTH 0x0D02
485 #define GL_PACK_ROW_LENGTH 0x0D02
486 #define GL_PACK_SKIP_ROWS 0x0D03
486 #define GL_PACK_SKIP_ROWS 0x0D03
487 #define GL_PACK_SKIP_PIXELS 0x0D04
487 #define GL_PACK_SKIP_PIXELS 0x0D04
488 #define GL_PACK_ALIGNMENT 0x0D05
488 #define GL_PACK_ALIGNMENT 0x0D05
489 #define GL_MAP_COLOR 0x0D10
489 #define GL_MAP_COLOR 0x0D10
490 #define GL_MAP_STENCIL 0x0D11
490 #define GL_MAP_STENCIL 0x0D11
491 #define GL_INDEX_SHIFT 0x0D12
491 #define GL_INDEX_SHIFT 0x0D12
492 #define GL_INDEX_OFFSET 0x0D13
492 #define GL_INDEX_OFFSET 0x0D13
493 #define GL_RED_SCALE 0x0D14
493 #define GL_RED_SCALE 0x0D14
494 #define GL_RED_BIAS 0x0D15
494 #define GL_RED_BIAS 0x0D15
495 #define GL_ZOOM_X 0x0D16
495 #define GL_ZOOM_X 0x0D16
496 #define GL_ZOOM_Y 0x0D17
496 #define GL_ZOOM_Y 0x0D17
497 #define GL_GREEN_SCALE 0x0D18
497 #define GL_GREEN_SCALE 0x0D18
498 #define GL_GREEN_BIAS 0x0D19
498 #define GL_GREEN_BIAS 0x0D19
499 #define GL_BLUE_SCALE 0x0D1A
499 #define GL_BLUE_SCALE 0x0D1A
500 #define GL_BLUE_BIAS 0x0D1B
500 #define GL_BLUE_BIAS 0x0D1B
501 #define GL_ALPHA_SCALE 0x0D1C
501 #define GL_ALPHA_SCALE 0x0D1C
502 #define GL_ALPHA_BIAS 0x0D1D
502 #define GL_ALPHA_BIAS 0x0D1D
503 #define GL_DEPTH_SCALE 0x0D1E
503 #define GL_DEPTH_SCALE 0x0D1E
504 #define GL_DEPTH_BIAS 0x0D1F
504 #define GL_DEPTH_BIAS 0x0D1F
505 #define GL_MAX_EVAL_ORDER 0x0D30
505 #define GL_MAX_EVAL_ORDER 0x0D30
506 #define GL_MAX_LIGHTS 0x0D31
506 #define GL_MAX_LIGHTS 0x0D31
507 #define GL_MAX_CLIP_PLANES 0x0D32
507 #define GL_MAX_CLIP_PLANES 0x0D32
508 #define GL_MAX_TEXTURE_SIZE 0x0D33
508 #define GL_MAX_TEXTURE_SIZE 0x0D33
509 #define GL_MAX_PIXEL_MAP_TABLE 0x0D34
509 #define GL_MAX_PIXEL_MAP_TABLE 0x0D34
510 #define GL_MAX_ATTRIB_STACK_DEPTH 0x0D35
510 #define GL_MAX_ATTRIB_STACK_DEPTH 0x0D35
511 #define GL_MAX_MODELVIEW_STACK_DEPTH 0x0D36
511 #define GL_MAX_MODELVIEW_STACK_DEPTH 0x0D36
512 #define GL_MAX_NAME_STACK_DEPTH 0x0D37
512 #define GL_MAX_NAME_STACK_DEPTH 0x0D37
513 #define GL_MAX_PROJECTION_STACK_DEPTH 0x0D38
513 #define GL_MAX_PROJECTION_STACK_DEPTH 0x0D38
514 #define GL_MAX_TEXTURE_STACK_DEPTH 0x0D39
514 #define GL_MAX_TEXTURE_STACK_DEPTH 0x0D39
515 #define GL_MAX_VIEWPORT_DIMS 0x0D3A
515 #define GL_MAX_VIEWPORT_DIMS 0x0D3A
516 #define GL_MAX_CLIENT_ATTRIB_STACK_DEPTH 0x0D3B
516 #define GL_MAX_CLIENT_ATTRIB_STACK_DEPTH 0x0D3B
517 #define GL_SUBPIXEL_BITS 0x0D50
517 #define GL_SUBPIXEL_BITS 0x0D50
518 #define GL_INDEX_BITS 0x0D51
518 #define GL_INDEX_BITS 0x0D51
519 #define GL_RED_BITS 0x0D52
519 #define GL_RED_BITS 0x0D52
520 #define GL_GREEN_BITS 0x0D53
520 #define GL_GREEN_BITS 0x0D53
521 #define GL_BLUE_BITS 0x0D54
521 #define GL_BLUE_BITS 0x0D54
522 #define GL_ALPHA_BITS 0x0D55
522 #define GL_ALPHA_BITS 0x0D55
523 #define GL_DEPTH_BITS 0x0D56
523 #define GL_DEPTH_BITS 0x0D56
524 #define GL_STENCIL_BITS 0x0D57
524 #define GL_STENCIL_BITS 0x0D57
525 #define GL_ACCUM_RED_BITS 0x0D58
525 #define GL_ACCUM_RED_BITS 0x0D58
526 #define GL_ACCUM_GREEN_BITS 0x0D59
526 #define GL_ACCUM_GREEN_BITS 0x0D59
527 #define GL_ACCUM_BLUE_BITS 0x0D5A
527 #define GL_ACCUM_BLUE_BITS 0x0D5A
528 #define GL_ACCUM_ALPHA_BITS 0x0D5B
528 #define GL_ACCUM_ALPHA_BITS 0x0D5B
529 #define GL_NAME_STACK_DEPTH 0x0D70
529 #define GL_NAME_STACK_DEPTH 0x0D70
530 #define GL_AUTO_NORMAL 0x0D80
530 #define GL_AUTO_NORMAL 0x0D80
531 #define GL_MAP1_COLOR_4 0x0D90
531 #define GL_MAP1_COLOR_4 0x0D90
532 #define GL_MAP1_INDEX 0x0D91
532 #define GL_MAP1_INDEX 0x0D91
533 #define GL_MAP1_NORMAL 0x0D92
533 #define GL_MAP1_NORMAL 0x0D92
534 #define GL_MAP1_TEXTURE_COORD_1 0x0D93
534 #define GL_MAP1_TEXTURE_COORD_1 0x0D93
535 #define GL_MAP1_TEXTURE_COORD_2 0x0D94
535 #define GL_MAP1_TEXTURE_COORD_2 0x0D94
536 #define GL_MAP1_TEXTURE_COORD_3 0x0D95
536 #define GL_MAP1_TEXTURE_COORD_3 0x0D95
537 #define GL_MAP1_TEXTURE_COORD_4 0x0D96
537 #define GL_MAP1_TEXTURE_COORD_4 0x0D96
538 #define GL_MAP1_VERTEX_3 0x0D97
538 #define GL_MAP1_VERTEX_3 0x0D97
539 #define GL_MAP1_VERTEX_4 0x0D98
539 #define GL_MAP1_VERTEX_4 0x0D98
540 #define GL_MAP2_COLOR_4 0x0DB0
540 #define GL_MAP2_COLOR_4 0x0DB0
541 #define GL_MAP2_INDEX 0x0DB1
541 #define GL_MAP2_INDEX 0x0DB1
542 #define GL_MAP2_NORMAL 0x0DB2
542 #define GL_MAP2_NORMAL 0x0DB2
543 #define GL_MAP2_TEXTURE_COORD_1 0x0DB3
543 #define GL_MAP2_TEXTURE_COORD_1 0x0DB3
544 #define GL_MAP2_TEXTURE_COORD_2 0x0DB4
544 #define GL_MAP2_TEXTURE_COORD_2 0x0DB4
545 #define GL_MAP2_TEXTURE_COORD_3 0x0DB5
545 #define GL_MAP2_TEXTURE_COORD_3 0x0DB5
546 #define GL_MAP2_TEXTURE_COORD_4 0x0DB6
546 #define GL_MAP2_TEXTURE_COORD_4 0x0DB6
547 #define GL_MAP2_VERTEX_3 0x0DB7
547 #define GL_MAP2_VERTEX_3 0x0DB7
548 #define GL_MAP2_VERTEX_4 0x0DB8
548 #define GL_MAP2_VERTEX_4 0x0DB8
549 #define GL_MAP1_GRID_DOMAIN 0x0DD0
549 #define GL_MAP1_GRID_DOMAIN 0x0DD0
550 #define GL_MAP1_GRID_SEGMENTS 0x0DD1
550 #define GL_MAP1_GRID_SEGMENTS 0x0DD1
551 #define GL_MAP2_GRID_DOMAIN 0x0DD2
551 #define GL_MAP2_GRID_DOMAIN 0x0DD2
552 #define GL_MAP2_GRID_SEGMENTS 0x0DD3
552 #define GL_MAP2_GRID_SEGMENTS 0x0DD3
553 #define GL_TEXTURE_1D 0x0DE0
553 #define GL_TEXTURE_1D 0x0DE0
554 #define GL_TEXTURE_2D 0x0DE1
554 #define GL_TEXTURE_2D 0x0DE1
555 #define GL_FEEDBACK_BUFFER_POINTER 0x0DF0
555 #define GL_FEEDBACK_BUFFER_POINTER 0x0DF0
556 #define GL_FEEDBACK_BUFFER_SIZE 0x0DF1
556 #define GL_FEEDBACK_BUFFER_SIZE 0x0DF1
557 #define GL_FEEDBACK_BUFFER_TYPE 0x0DF2
557 #define GL_FEEDBACK_BUFFER_TYPE 0x0DF2
558 #define GL_SELECTION_BUFFER_POINTER 0x0DF3
558 #define GL_SELECTION_BUFFER_POINTER 0x0DF3
559 #define GL_SELECTION_BUFFER_SIZE 0x0DF4
559 #define GL_SELECTION_BUFFER_SIZE 0x0DF4
560 /* GL_TEXTURE_BINDING_1D */
560 /* GL_TEXTURE_BINDING_1D */
561 /* GL_TEXTURE_BINDING_2D */
561 /* GL_TEXTURE_BINDING_2D */
562 /* GL_VERTEX_ARRAY */
562 /* GL_VERTEX_ARRAY */
563 /* GL_NORMAL_ARRAY */
563 /* GL_NORMAL_ARRAY */
564 /* GL_COLOR_ARRAY */
564 /* GL_COLOR_ARRAY */
565 /* GL_INDEX_ARRAY */
565 /* GL_INDEX_ARRAY */
566 /* GL_TEXTURE_COORD_ARRAY */
566 /* GL_TEXTURE_COORD_ARRAY */
567 /* GL_EDGE_FLAG_ARRAY */
567 /* GL_EDGE_FLAG_ARRAY */
568 /* GL_VERTEX_ARRAY_SIZE */
568 /* GL_VERTEX_ARRAY_SIZE */
569 /* GL_VERTEX_ARRAY_TYPE */
569 /* GL_VERTEX_ARRAY_TYPE */
570 /* GL_VERTEX_ARRAY_STRIDE */
570 /* GL_VERTEX_ARRAY_STRIDE */
571 /* GL_NORMAL_ARRAY_TYPE */
571 /* GL_NORMAL_ARRAY_TYPE */
572 /* GL_NORMAL_ARRAY_STRIDE */
572 /* GL_NORMAL_ARRAY_STRIDE */
573 /* GL_COLOR_ARRAY_SIZE */
573 /* GL_COLOR_ARRAY_SIZE */
574 /* GL_COLOR_ARRAY_TYPE */
574 /* GL_COLOR_ARRAY_TYPE */
575 /* GL_COLOR_ARRAY_STRIDE */
575 /* GL_COLOR_ARRAY_STRIDE */
576 /* GL_INDEX_ARRAY_TYPE */
576 /* GL_INDEX_ARRAY_TYPE */
577 /* GL_INDEX_ARRAY_STRIDE */
577 /* GL_INDEX_ARRAY_STRIDE */
578 /* GL_TEXTURE_COORD_ARRAY_SIZE */
578 /* GL_TEXTURE_COORD_ARRAY_SIZE */
579 /* GL_TEXTURE_COORD_ARRAY_TYPE */
579 /* GL_TEXTURE_COORD_ARRAY_TYPE */
580 /* GL_TEXTURE_COORD_ARRAY_STRIDE */
580 /* GL_TEXTURE_COORD_ARRAY_STRIDE */
581 /* GL_EDGE_FLAG_ARRAY_STRIDE */
581 /* GL_EDGE_FLAG_ARRAY_STRIDE */
582 /* GL_POLYGON_OFFSET_FACTOR */
582 /* GL_POLYGON_OFFSET_FACTOR */
583 /* GL_POLYGON_OFFSET_UNITS */
583 /* GL_POLYGON_OFFSET_UNITS */
584
584
585 /* GetTextureParameter */
585 /* GetTextureParameter */
586 /* GL_TEXTURE_MAG_FILTER */
586 /* GL_TEXTURE_MAG_FILTER */
587 /* GL_TEXTURE_MIN_FILTER */
587 /* GL_TEXTURE_MIN_FILTER */
588 /* GL_TEXTURE_WRAP_S */
588 /* GL_TEXTURE_WRAP_S */
589 /* GL_TEXTURE_WRAP_T */
589 /* GL_TEXTURE_WRAP_T */
590 #define GL_TEXTURE_WIDTH 0x1000
590 #define GL_TEXTURE_WIDTH 0x1000
591 #define GL_TEXTURE_HEIGHT 0x1001
591 #define GL_TEXTURE_HEIGHT 0x1001
592 #define GL_TEXTURE_INTERNAL_FORMAT 0x1003
592 #define GL_TEXTURE_INTERNAL_FORMAT 0x1003
593 #define GL_TEXTURE_BORDER_COLOR 0x1004
593 #define GL_TEXTURE_BORDER_COLOR 0x1004
594 #define GL_TEXTURE_BORDER 0x1005
594 #define GL_TEXTURE_BORDER 0x1005
595 /* GL_TEXTURE_RED_SIZE */
595 /* GL_TEXTURE_RED_SIZE */
596 /* GL_TEXTURE_GREEN_SIZE */
596 /* GL_TEXTURE_GREEN_SIZE */
597 /* GL_TEXTURE_BLUE_SIZE */
597 /* GL_TEXTURE_BLUE_SIZE */
598 /* GL_TEXTURE_ALPHA_SIZE */
598 /* GL_TEXTURE_ALPHA_SIZE */
599 /* GL_TEXTURE_LUMINANCE_SIZE */
599 /* GL_TEXTURE_LUMINANCE_SIZE */
600 /* GL_TEXTURE_INTENSITY_SIZE */
600 /* GL_TEXTURE_INTENSITY_SIZE */
601 /* GL_TEXTURE_PRIORITY */
601 /* GL_TEXTURE_PRIORITY */
602 /* GL_TEXTURE_RESIDENT */
602 /* GL_TEXTURE_RESIDENT */
603
603
604 /* HintMode */
604 /* HintMode */
605 #define GL_DONT_CARE 0x1100
605 #define GL_DONT_CARE 0x1100
606 #define GL_FASTEST 0x1101
606 #define GL_FASTEST 0x1101
607 #define GL_NICEST 0x1102
607 #define GL_NICEST 0x1102
608
608
609 /* HintTarget */
609 /* HintTarget */
610 /* GL_PERSPECTIVE_CORRECTION_HINT */
610 /* GL_PERSPECTIVE_CORRECTION_HINT */
611 /* GL_POINT_SMOOTH_HINT */
611 /* GL_POINT_SMOOTH_HINT */
612 /* GL_LINE_SMOOTH_HINT */
612 /* GL_LINE_SMOOTH_HINT */
613 /* GL_POLYGON_SMOOTH_HINT */
613 /* GL_POLYGON_SMOOTH_HINT */
614 /* GL_FOG_HINT */
614 /* GL_FOG_HINT */
615 /* GL_PHONG_HINT */
615 /* GL_PHONG_HINT */
616
616
617 /* IndexPointerType */
617 /* IndexPointerType */
618 /* GL_SHORT */
618 /* GL_SHORT */
619 /* GL_INT */
619 /* GL_INT */
620 /* GL_FLOAT */
620 /* GL_FLOAT */
621 /* GL_DOUBLE */
621 /* GL_DOUBLE */
622
622
623 /* LightModelParameter */
623 /* LightModelParameter */
624 /* GL_LIGHT_MODEL_AMBIENT */
624 /* GL_LIGHT_MODEL_AMBIENT */
625 /* GL_LIGHT_MODEL_LOCAL_VIEWER */
625 /* GL_LIGHT_MODEL_LOCAL_VIEWER */
626 /* GL_LIGHT_MODEL_TWO_SIDE */
626 /* GL_LIGHT_MODEL_TWO_SIDE */
627
627
628 /* LightName */
628 /* LightName */
629 #define GL_LIGHT0 0x4000
629 #define GL_LIGHT0 0x4000
630 #define GL_LIGHT1 0x4001
630 #define GL_LIGHT1 0x4001
631 #define GL_LIGHT2 0x4002
631 #define GL_LIGHT2 0x4002
632 #define GL_LIGHT3 0x4003
632 #define GL_LIGHT3 0x4003
633 #define GL_LIGHT4 0x4004
633 #define GL_LIGHT4 0x4004
634 #define GL_LIGHT5 0x4005
634 #define GL_LIGHT5 0x4005
635 #define GL_LIGHT6 0x4006
635 #define GL_LIGHT6 0x4006
636 #define GL_LIGHT7 0x4007
636 #define GL_LIGHT7 0x4007
637
637
638 /* LightParameter */
638 /* LightParameter */
639 #define GL_AMBIENT 0x1200
639 #define GL_AMBIENT 0x1200
640 #define GL_DIFFUSE 0x1201
640 #define GL_DIFFUSE 0x1201
641 #define GL_SPECULAR 0x1202
641 #define GL_SPECULAR 0x1202
642 #define GL_POSITION 0x1203
642 #define GL_POSITION 0x1203
643 #define GL_SPOT_DIRECTION 0x1204
643 #define GL_SPOT_DIRECTION 0x1204
644 #define GL_SPOT_EXPONENT 0x1205
644 #define GL_SPOT_EXPONENT 0x1205
645 #define GL_SPOT_CUTOFF 0x1206
645 #define GL_SPOT_CUTOFF 0x1206
646 #define GL_CONSTANT_ATTENUATION 0x1207
646 #define GL_CONSTANT_ATTENUATION 0x1207
647 #define GL_LINEAR_ATTENUATION 0x1208
647 #define GL_LINEAR_ATTENUATION 0x1208
648 #define GL_QUADRATIC_ATTENUATION 0x1209
648 #define GL_QUADRATIC_ATTENUATION 0x1209
649
649
650 /* InterleavedArrays */
650 /* InterleavedArrays */
651 /* GL_V2F */
651 /* GL_V2F */
652 /* GL_V3F */
652 /* GL_V3F */
653 /* GL_C4UB_V2F */
653 /* GL_C4UB_V2F */
654 /* GL_C4UB_V3F */
654 /* GL_C4UB_V3F */
655 /* GL_C3F_V3F */
655 /* GL_C3F_V3F */
656 /* GL_N3F_V3F */
656 /* GL_N3F_V3F */
657 /* GL_C4F_N3F_V3F */
657 /* GL_C4F_N3F_V3F */
658 /* GL_T2F_V3F */
658 /* GL_T2F_V3F */
659 /* GL_T4F_V4F */
659 /* GL_T4F_V4F */
660 /* GL_T2F_C4UB_V3F */
660 /* GL_T2F_C4UB_V3F */
661 /* GL_T2F_C3F_V3F */
661 /* GL_T2F_C3F_V3F */
662 /* GL_T2F_N3F_V3F */
662 /* GL_T2F_N3F_V3F */
663 /* GL_T2F_C4F_N3F_V3F */
663 /* GL_T2F_C4F_N3F_V3F */
664 /* GL_T4F_C4F_N3F_V4F */
664 /* GL_T4F_C4F_N3F_V4F */
665
665
666 /* ListMode */
666 /* ListMode */
667 #define GL_COMPILE 0x1300
667 #define GL_COMPILE 0x1300
668 #define GL_COMPILE_AND_EXECUTE 0x1301
668 #define GL_COMPILE_AND_EXECUTE 0x1301
669
669
670 /* ListNameType */
670 /* ListNameType */
671 /* GL_BYTE */
671 /* GL_BYTE */
672 /* GL_UNSIGNED_BYTE */
672 /* GL_UNSIGNED_BYTE */
673 /* GL_SHORT */
673 /* GL_SHORT */
674 /* GL_UNSIGNED_SHORT */
674 /* GL_UNSIGNED_SHORT */
675 /* GL_INT */
675 /* GL_INT */
676 /* GL_UNSIGNED_INT */
676 /* GL_UNSIGNED_INT */
677 /* GL_FLOAT */
677 /* GL_FLOAT */
678 /* GL_2_BYTES */
678 /* GL_2_BYTES */
679 /* GL_3_BYTES */
679 /* GL_3_BYTES */
680 /* GL_4_BYTES */
680 /* GL_4_BYTES */
681
681
682 /* LogicOp */
682 /* LogicOp */
683 #define GL_CLEAR 0x1500
683 #define GL_CLEAR 0x1500
684 #define GL_AND 0x1501
684 #define GL_AND 0x1501
685 #define GL_AND_REVERSE 0x1502
685 #define GL_AND_REVERSE 0x1502
686 #define GL_COPY 0x1503
686 #define GL_COPY 0x1503
687 #define GL_AND_INVERTED 0x1504
687 #define GL_AND_INVERTED 0x1504
688 #define GL_NOOP 0x1505
688 #define GL_NOOP 0x1505
689 #define GL_XOR 0x1506
689 #define GL_XOR 0x1506
690 #define GL_OR 0x1507
690 #define GL_OR 0x1507
691 #define GL_NOR 0x1508
691 #define GL_NOR 0x1508
692 #define GL_EQUIV 0x1509
692 #define GL_EQUIV 0x1509
693 #define GL_INVERT 0x150A
693 #define GL_INVERT 0x150A
694 #define GL_OR_REVERSE 0x150B
694 #define GL_OR_REVERSE 0x150B
695 #define GL_COPY_INVERTED 0x150C
695 #define GL_COPY_INVERTED 0x150C
696 #define GL_OR_INVERTED 0x150D
696 #define GL_OR_INVERTED 0x150D
697 #define GL_NAND 0x150E
697 #define GL_NAND 0x150E
698 #define GL_SET 0x150F
698 #define GL_SET 0x150F
699
699
700 /* MapTarget */
700 /* MapTarget */
701 /* GL_MAP1_COLOR_4 */
701 /* GL_MAP1_COLOR_4 */
702 /* GL_MAP1_INDEX */
702 /* GL_MAP1_INDEX */
703 /* GL_MAP1_NORMAL */
703 /* GL_MAP1_NORMAL */
704 /* GL_MAP1_TEXTURE_COORD_1 */
704 /* GL_MAP1_TEXTURE_COORD_1 */
705 /* GL_MAP1_TEXTURE_COORD_2 */
705 /* GL_MAP1_TEXTURE_COORD_2 */
706 /* GL_MAP1_TEXTURE_COORD_3 */
706 /* GL_MAP1_TEXTURE_COORD_3 */
707 /* GL_MAP1_TEXTURE_COORD_4 */
707 /* GL_MAP1_TEXTURE_COORD_4 */
708 /* GL_MAP1_VERTEX_3 */
708 /* GL_MAP1_VERTEX_3 */
709 /* GL_MAP1_VERTEX_4 */
709 /* GL_MAP1_VERTEX_4 */
710 /* GL_MAP2_COLOR_4 */
710 /* GL_MAP2_COLOR_4 */
711 /* GL_MAP2_INDEX */
711 /* GL_MAP2_INDEX */
712 /* GL_MAP2_NORMAL */
712 /* GL_MAP2_NORMAL */
713 /* GL_MAP2_TEXTURE_COORD_1 */
713 /* GL_MAP2_TEXTURE_COORD_1 */
714 /* GL_MAP2_TEXTURE_COORD_2 */
714 /* GL_MAP2_TEXTURE_COORD_2 */
715 /* GL_MAP2_TEXTURE_COORD_3 */
715 /* GL_MAP2_TEXTURE_COORD_3 */
716 /* GL_MAP2_TEXTURE_COORD_4 */
716 /* GL_MAP2_TEXTURE_COORD_4 */
717 /* GL_MAP2_VERTEX_3 */
717 /* GL_MAP2_VERTEX_3 */
718 /* GL_MAP2_VERTEX_4 */
718 /* GL_MAP2_VERTEX_4 */
719
719
720 /* MaterialFace */
720 /* MaterialFace */
721 /* GL_FRONT */
721 /* GL_FRONT */
722 /* GL_BACK */
722 /* GL_BACK */
723 /* GL_FRONT_AND_BACK */
723 /* GL_FRONT_AND_BACK */
724
724
725 /* MaterialParameter */
725 /* MaterialParameter */
726 #define GL_EMISSION 0x1600
726 #define GL_EMISSION 0x1600
727 #define GL_SHININESS 0x1601
727 #define GL_SHININESS 0x1601
728 #define GL_AMBIENT_AND_DIFFUSE 0x1602
728 #define GL_AMBIENT_AND_DIFFUSE 0x1602
729 #define GL_COLOR_INDEXES 0x1603
729 #define GL_COLOR_INDEXES 0x1603
730 /* GL_AMBIENT */
730 /* GL_AMBIENT */
731 /* GL_DIFFUSE */
731 /* GL_DIFFUSE */
732 /* GL_SPECULAR */
732 /* GL_SPECULAR */
733
733
734 /* MatrixMode */
734 /* MatrixMode */
735 #define GL_MODELVIEW 0x1700
735 #define GL_MODELVIEW 0x1700
736 #define GL_PROJECTION 0x1701
736 #define GL_PROJECTION 0x1701
737 #define GL_TEXTURE 0x1702
737 #define GL_TEXTURE 0x1702
738
738
739 /* MeshMode1 */
739 /* MeshMode1 */
740 /* GL_POINT */
740 /* GL_POINT */
741 /* GL_LINE */
741 /* GL_LINE */
742
742
743 /* MeshMode2 */
743 /* MeshMode2 */
744 /* GL_POINT */
744 /* GL_POINT */
745 /* GL_LINE */
745 /* GL_LINE */
746 /* GL_FILL */
746 /* GL_FILL */
747
747
748 /* NormalPointerType */
748 /* NormalPointerType */
749 /* GL_BYTE */
749 /* GL_BYTE */
750 /* GL_SHORT */
750 /* GL_SHORT */
751 /* GL_INT */
751 /* GL_INT */
752 /* GL_FLOAT */
752 /* GL_FLOAT */
753 /* GL_DOUBLE */
753 /* GL_DOUBLE */
754
754
755 /* PixelCopyType */
755 /* PixelCopyType */
756 #define GL_COLOR 0x1800
756 #define GL_COLOR 0x1800
757 #define GL_DEPTH 0x1801
757 #define GL_DEPTH 0x1801
758 #define GL_STENCIL 0x1802
758 #define GL_STENCIL 0x1802
759
759
760 /* PixelFormat */
760 /* PixelFormat */
761 #define GL_COLOR_INDEX 0x1900
761 #define GL_COLOR_INDEX 0x1900
762 #define GL_STENCIL_INDEX 0x1901
762 #define GL_STENCIL_INDEX 0x1901
763 #define GL_DEPTH_COMPONENT 0x1902
763 #define GL_DEPTH_COMPONENT 0x1902
764 #define GL_RED 0x1903
764 #define GL_RED 0x1903
765 #define GL_GREEN 0x1904
765 #define GL_GREEN 0x1904
766 #define GL_BLUE 0x1905
766 #define GL_BLUE 0x1905
767 #define GL_ALPHA 0x1906
767 #define GL_ALPHA 0x1906
768 #define GL_RGB 0x1907
768 #define GL_RGB 0x1907
769 #define GL_RGBA 0x1908
769 #define GL_RGBA 0x1908
770 #define GL_LUMINANCE 0x1909
770 #define GL_LUMINANCE 0x1909
771 #define GL_LUMINANCE_ALPHA 0x190A
771 #define GL_LUMINANCE_ALPHA 0x190A
772
772
773 /* PixelMap */
773 /* PixelMap */
774 /* GL_PIXEL_MAP_I_TO_I */
774 /* GL_PIXEL_MAP_I_TO_I */
775 /* GL_PIXEL_MAP_S_TO_S */
775 /* GL_PIXEL_MAP_S_TO_S */
776 /* GL_PIXEL_MAP_I_TO_R */
776 /* GL_PIXEL_MAP_I_TO_R */
777 /* GL_PIXEL_MAP_I_TO_G */
777 /* GL_PIXEL_MAP_I_TO_G */
778 /* GL_PIXEL_MAP_I_TO_B */
778 /* GL_PIXEL_MAP_I_TO_B */
779 /* GL_PIXEL_MAP_I_TO_A */
779 /* GL_PIXEL_MAP_I_TO_A */
780 /* GL_PIXEL_MAP_R_TO_R */
780 /* GL_PIXEL_MAP_R_TO_R */
781 /* GL_PIXEL_MAP_G_TO_G */
781 /* GL_PIXEL_MAP_G_TO_G */
782 /* GL_PIXEL_MAP_B_TO_B */
782 /* GL_PIXEL_MAP_B_TO_B */
783 /* GL_PIXEL_MAP_A_TO_A */
783 /* GL_PIXEL_MAP_A_TO_A */
784
784
785 /* PixelStore */
785 /* PixelStore */
786 /* GL_UNPACK_SWAP_BYTES */
786 /* GL_UNPACK_SWAP_BYTES */
787 /* GL_UNPACK_LSB_FIRST */
787 /* GL_UNPACK_LSB_FIRST */
788 /* GL_UNPACK_ROW_LENGTH */
788 /* GL_UNPACK_ROW_LENGTH */
789 /* GL_UNPACK_SKIP_ROWS */
789 /* GL_UNPACK_SKIP_ROWS */
790 /* GL_UNPACK_SKIP_PIXELS */
790 /* GL_UNPACK_SKIP_PIXELS */
791 /* GL_UNPACK_ALIGNMENT */
791 /* GL_UNPACK_ALIGNMENT */
792 /* GL_PACK_SWAP_BYTES */
792 /* GL_PACK_SWAP_BYTES */
793 /* GL_PACK_LSB_FIRST */
793 /* GL_PACK_LSB_FIRST */
794 /* GL_PACK_ROW_LENGTH */
794 /* GL_PACK_ROW_LENGTH */
795 /* GL_PACK_SKIP_ROWS */
795 /* GL_PACK_SKIP_ROWS */
796 /* GL_PACK_SKIP_PIXELS */
796 /* GL_PACK_SKIP_PIXELS */
797 /* GL_PACK_ALIGNMENT */
797 /* GL_PACK_ALIGNMENT */
798
798
799 /* PixelTransfer */
799 /* PixelTransfer */
800 /* GL_MAP_COLOR */
800 /* GL_MAP_COLOR */
801 /* GL_MAP_STENCIL */
801 /* GL_MAP_STENCIL */
802 /* GL_INDEX_SHIFT */
802 /* GL_INDEX_SHIFT */
803 /* GL_INDEX_OFFSET */
803 /* GL_INDEX_OFFSET */
804 /* GL_RED_SCALE */
804 /* GL_RED_SCALE */
805 /* GL_RED_BIAS */
805 /* GL_RED_BIAS */
806 /* GL_GREEN_SCALE */
806 /* GL_GREEN_SCALE */
807 /* GL_GREEN_BIAS */
807 /* GL_GREEN_BIAS */
808 /* GL_BLUE_SCALE */
808 /* GL_BLUE_SCALE */
809 /* GL_BLUE_BIAS */
809 /* GL_BLUE_BIAS */
810 /* GL_ALPHA_SCALE */
810 /* GL_ALPHA_SCALE */
811 /* GL_ALPHA_BIAS */
811 /* GL_ALPHA_BIAS */
812 /* GL_DEPTH_SCALE */
812 /* GL_DEPTH_SCALE */
813 /* GL_DEPTH_BIAS */
813 /* GL_DEPTH_BIAS */
814
814
815 /* PixelType */
815 /* PixelType */
816 #define GL_BITMAP 0x1A00
816 #define GL_BITMAP 0x1A00
817 /* GL_BYTE */
817 /* GL_BYTE */
818 /* GL_UNSIGNED_BYTE */
818 /* GL_UNSIGNED_BYTE */
819 /* GL_SHORT */
819 /* GL_SHORT */
820 /* GL_UNSIGNED_SHORT */
820 /* GL_UNSIGNED_SHORT */
821 /* GL_INT */
821 /* GL_INT */
822 /* GL_UNSIGNED_INT */
822 /* GL_UNSIGNED_INT */
823 /* GL_FLOAT */
823 /* GL_FLOAT */
824
824
825 /* PolygonMode */
825 /* PolygonMode */
826 #define GL_POINT 0x1B00
826 #define GL_POINT 0x1B00
827 #define GL_LINE 0x1B01
827 #define GL_LINE 0x1B01
828 #define GL_FILL 0x1B02
828 #define GL_FILL 0x1B02
829
829
830 /* ReadBufferMode */
830 /* ReadBufferMode */
831 /* GL_FRONT_LEFT */
831 /* GL_FRONT_LEFT */
832 /* GL_FRONT_RIGHT */
832 /* GL_FRONT_RIGHT */
833 /* GL_BACK_LEFT */
833 /* GL_BACK_LEFT */
834 /* GL_BACK_RIGHT */
834 /* GL_BACK_RIGHT */
835 /* GL_FRONT */
835 /* GL_FRONT */
836 /* GL_BACK */
836 /* GL_BACK */
837 /* GL_LEFT */
837 /* GL_LEFT */
838 /* GL_RIGHT */
838 /* GL_RIGHT */
839 /* GL_AUX0 */
839 /* GL_AUX0 */
840 /* GL_AUX1 */
840 /* GL_AUX1 */
841 /* GL_AUX2 */
841 /* GL_AUX2 */
842 /* GL_AUX3 */
842 /* GL_AUX3 */
843
843
844 /* RenderingMode */
844 /* RenderingMode */
845 #define GL_RENDER 0x1C00
845 #define GL_RENDER 0x1C00
846 #define GL_FEEDBACK 0x1C01
846 #define GL_FEEDBACK 0x1C01
847 #define GL_SELECT 0x1C02
847 #define GL_SELECT 0x1C02
848
848
849 /* ShadingModel */
849 /* ShadingModel */
850 #define GL_FLAT 0x1D00
850 #define GL_FLAT 0x1D00
851 #define GL_SMOOTH 0x1D01
851 #define GL_SMOOTH 0x1D01
852
852
853
853
854 /* StencilFunction */
854 /* StencilFunction */
855 /* GL_NEVER */
855 /* GL_NEVER */
856 /* GL_LESS */
856 /* GL_LESS */
857 /* GL_EQUAL */
857 /* GL_EQUAL */
858 /* GL_LEQUAL */
858 /* GL_LEQUAL */
859 /* GL_GREATER */
859 /* GL_GREATER */
860 /* GL_NOTEQUAL */
860 /* GL_NOTEQUAL */
861 /* GL_GEQUAL */
861 /* GL_GEQUAL */
862 /* GL_ALWAYS */
862 /* GL_ALWAYS */
863
863
864 /* StencilOp */
864 /* StencilOp */
865 /* GL_ZERO */
865 /* GL_ZERO */
866 #define GL_KEEP 0x1E00
866 #define GL_KEEP 0x1E00
867 #define GL_REPLACE 0x1E01
867 #define GL_REPLACE 0x1E01
868 #define GL_INCR 0x1E02
868 #define GL_INCR 0x1E02
869 #define GL_DECR 0x1E03
869 #define GL_DECR 0x1E03
870 /* GL_INVERT */
870 /* GL_INVERT */
871
871
872 /* StringName */
872 /* StringName */
873 #define GL_VENDOR 0x1F00
873 #define GL_VENDOR 0x1F00
874 #define GL_RENDERER 0x1F01
874 #define GL_RENDERER 0x1F01
875 #define GL_VERSION 0x1F02
875 #define GL_VERSION 0x1F02
876 #define GL_EXTENSIONS 0x1F03
876 #define GL_EXTENSIONS 0x1F03
877
877
878 /* TextureCoordName */
878 /* TextureCoordName */
879 #define GL_S 0x2000
879 #define GL_S 0x2000
880 #define GL_T 0x2001
880 #define GL_T 0x2001
881 #define GL_R 0x2002
881 #define GL_R 0x2002
882 #define GL_Q 0x2003
882 #define GL_Q 0x2003
883
883
884 /* TexCoordPointerType */
884 /* TexCoordPointerType */
885 /* GL_SHORT */
885 /* GL_SHORT */
886 /* GL_INT */
886 /* GL_INT */
887 /* GL_FLOAT */
887 /* GL_FLOAT */
888 /* GL_DOUBLE */
888 /* GL_DOUBLE */
889
889
890 /* TextureEnvMode */
890 /* TextureEnvMode */
891 #define GL_MODULATE 0x2100
891 #define GL_MODULATE 0x2100
892 #define GL_DECAL 0x2101
892 #define GL_DECAL 0x2101
893 /* GL_BLEND */
893 /* GL_BLEND */
894 /* GL_REPLACE */
894 /* GL_REPLACE */
895
895
896 /* TextureEnvParameter */
896 /* TextureEnvParameter */
897 #define GL_TEXTURE_ENV_MODE 0x2200
897 #define GL_TEXTURE_ENV_MODE 0x2200
898 #define GL_TEXTURE_ENV_COLOR 0x2201
898 #define GL_TEXTURE_ENV_COLOR 0x2201
899
899
900 /* TextureEnvTarget */
900 /* TextureEnvTarget */
901 #define GL_TEXTURE_ENV 0x2300
901 #define GL_TEXTURE_ENV 0x2300
902
902
903 /* TextureGenMode */
903 /* TextureGenMode */
904 #define GL_EYE_LINEAR 0x2400
904 #define GL_EYE_LINEAR 0x2400
905 #define GL_OBJECT_LINEAR 0x2401
905 #define GL_OBJECT_LINEAR 0x2401
906 #define GL_SPHERE_MAP 0x2402
906 #define GL_SPHERE_MAP 0x2402
907
907
908 /* TextureGenParameter */
908 /* TextureGenParameter */
909 #define GL_TEXTURE_GEN_MODE 0x2500
909 #define GL_TEXTURE_GEN_MODE 0x2500
910 #define GL_OBJECT_PLANE 0x2501
910 #define GL_OBJECT_PLANE 0x2501
911 #define GL_EYE_PLANE 0x2502
911 #define GL_EYE_PLANE 0x2502
912
912
913 /* TextureMagFilter */
913 /* TextureMagFilter */
914 #define GL_NEAREST 0x2600
914 #define GL_NEAREST 0x2600
915 #define GL_LINEAR 0x2601
915 #define GL_LINEAR 0x2601
916
916
917 /* TextureMinFilter */
917 /* TextureMinFilter */
918 /* GL_NEAREST */
918 /* GL_NEAREST */
919 /* GL_LINEAR */
919 /* GL_LINEAR */
920 #define GL_NEAREST_MIPMAP_NEAREST 0x2700
920 #define GL_NEAREST_MIPMAP_NEAREST 0x2700
921 #define GL_LINEAR_MIPMAP_NEAREST 0x2701
921 #define GL_LINEAR_MIPMAP_NEAREST 0x2701
922 #define GL_NEAREST_MIPMAP_LINEAR 0x2702
922 #define GL_NEAREST_MIPMAP_LINEAR 0x2702
923 #define GL_LINEAR_MIPMAP_LINEAR 0x2703
923 #define GL_LINEAR_MIPMAP_LINEAR 0x2703
924
924
925 /* TextureParameterName */
925 /* TextureParameterName */
926 #define GL_TEXTURE_MAG_FILTER 0x2800
926 #define GL_TEXTURE_MAG_FILTER 0x2800
927 #define GL_TEXTURE_MIN_FILTER 0x2801
927 #define GL_TEXTURE_MIN_FILTER 0x2801
928 #define GL_TEXTURE_WRAP_S 0x2802
928 #define GL_TEXTURE_WRAP_S 0x2802
929 #define GL_TEXTURE_WRAP_T 0x2803
929 #define GL_TEXTURE_WRAP_T 0x2803
930 /* GL_TEXTURE_BORDER_COLOR */
930 /* GL_TEXTURE_BORDER_COLOR */
931 /* GL_TEXTURE_PRIORITY */
931 /* GL_TEXTURE_PRIORITY */
932
932
933 /* TextureTarget */
933 /* TextureTarget */
934 /* GL_TEXTURE_1D */
934 /* GL_TEXTURE_1D */
935 /* GL_TEXTURE_2D */
935 /* GL_TEXTURE_2D */
936 /* GL_PROXY_TEXTURE_1D */
936 /* GL_PROXY_TEXTURE_1D */
937 /* GL_PROXY_TEXTURE_2D */
937 /* GL_PROXY_TEXTURE_2D */
938
938
939 /* TextureWrapMode */
939 /* TextureWrapMode */
940 #define GL_CLAMP 0x2900
940 #define GL_CLAMP 0x2900
941 #define GL_REPEAT 0x2901
941 #define GL_REPEAT 0x2901
942
942
943 /* VertexPointerType */
943 /* VertexPointerType */
944 /* GL_SHORT */
944 /* GL_SHORT */
945 /* GL_INT */
945 /* GL_INT */
946 /* GL_FLOAT */
946 /* GL_FLOAT */
947 /* GL_DOUBLE */
947 /* GL_DOUBLE */
948
948
949 /* ClientAttribMask */
949 /* ClientAttribMask */
950 #define GL_CLIENT_PIXEL_STORE_BIT 0x00000001
950 #define GL_CLIENT_PIXEL_STORE_BIT 0x00000001
951 #define GL_CLIENT_VERTEX_ARRAY_BIT 0x00000002
951 #define GL_CLIENT_VERTEX_ARRAY_BIT 0x00000002
952 #define GL_CLIENT_ALL_ATTRIB_BITS 0xffffffff
952 #define GL_CLIENT_ALL_ATTRIB_BITS 0xffffffff
953
953
954 /* polygon_offset */
954 /* polygon_offset */
955 #define GL_POLYGON_OFFSET_FACTOR 0x8038
955 #define GL_POLYGON_OFFSET_FACTOR 0x8038
956 #define GL_POLYGON_OFFSET_UNITS 0x2A00
956 #define GL_POLYGON_OFFSET_UNITS 0x2A00
957 #define GL_POLYGON_OFFSET_POINT 0x2A01
957 #define GL_POLYGON_OFFSET_POINT 0x2A01
958 #define GL_POLYGON_OFFSET_LINE 0x2A02
958 #define GL_POLYGON_OFFSET_LINE 0x2A02
959 #define GL_POLYGON_OFFSET_FILL 0x8037
959 #define GL_POLYGON_OFFSET_FILL 0x8037
960
960
961 /* texture */
961 /* texture */
962 #define GL_ALPHA4 0x803B
962 #define GL_ALPHA4 0x803B
963 #define GL_ALPHA8 0x803C
963 #define GL_ALPHA8 0x803C
964 #define GL_ALPHA12 0x803D
964 #define GL_ALPHA12 0x803D
965 #define GL_ALPHA16 0x803E
965 #define GL_ALPHA16 0x803E
966 #define GL_LUMINANCE4 0x803F
966 #define GL_LUMINANCE4 0x803F
967 #define GL_LUMINANCE8 0x8040
967 #define GL_LUMINANCE8 0x8040
968 #define GL_LUMINANCE12 0x8041
968 #define GL_LUMINANCE12 0x8041
969 #define GL_LUMINANCE16 0x8042
969 #define GL_LUMINANCE16 0x8042
970 #define GL_LUMINANCE4_ALPHA4 0x8043
970 #define GL_LUMINANCE4_ALPHA4 0x8043
971 #define GL_LUMINANCE6_ALPHA2 0x8044
971 #define GL_LUMINANCE6_ALPHA2 0x8044
972 #define GL_LUMINANCE8_ALPHA8 0x8045
972 #define GL_LUMINANCE8_ALPHA8 0x8045
973 #define GL_LUMINANCE12_ALPHA4 0x8046
973 #define GL_LUMINANCE12_ALPHA4 0x8046
974 #define GL_LUMINANCE12_ALPHA12 0x8047
974 #define GL_LUMINANCE12_ALPHA12 0x8047
975 #define GL_LUMINANCE16_ALPHA16 0x8048
975 #define GL_LUMINANCE16_ALPHA16 0x8048
976 #define GL_INTENSITY 0x8049
976 #define GL_INTENSITY 0x8049
977 #define GL_INTENSITY4 0x804A
977 #define GL_INTENSITY4 0x804A
978 #define GL_INTENSITY8 0x804B
978 #define GL_INTENSITY8 0x804B
979 #define GL_INTENSITY12 0x804C
979 #define GL_INTENSITY12 0x804C
980 #define GL_INTENSITY16 0x804D
980 #define GL_INTENSITY16 0x804D
981 #define GL_R3_G3_B2 0x2A10
981 #define GL_R3_G3_B2 0x2A10
982 #define GL_RGB4 0x804F
982 #define GL_RGB4 0x804F
983 #define GL_RGB5 0x8050
983 #define GL_RGB5 0x8050
984 #define GL_RGB8 0x8051
984 #define GL_RGB8 0x8051
985 #define GL_RGB10 0x8052
985 #define GL_RGB10 0x8052
986 #define GL_RGB12 0x8053
986 #define GL_RGB12 0x8053
987 #define GL_RGB16 0x8054
987 #define GL_RGB16 0x8054
988 #define GL_RGBA2 0x8055
988 #define GL_RGBA2 0x8055
989 #define GL_RGBA4 0x8056
989 #define GL_RGBA4 0x8056
990 #define GL_RGB5_A1 0x8057
990 #define GL_RGB5_A1 0x8057
991 #define GL_RGBA8 0x8058
991 #define GL_RGBA8 0x8058
992 #define GL_RGB10_A2 0x8059
992 #define GL_RGB10_A2 0x8059
993 #define GL_RGBA12 0x805A
993 #define GL_RGBA12 0x805A
994 #define GL_RGBA16 0x805B
994 #define GL_RGBA16 0x805B
995 #define GL_TEXTURE_RED_SIZE 0x805C
995 #define GL_TEXTURE_RED_SIZE 0x805C
996 #define GL_TEXTURE_GREEN_SIZE 0x805D
996 #define GL_TEXTURE_GREEN_SIZE 0x805D
997 #define GL_TEXTURE_BLUE_SIZE 0x805E
997 #define GL_TEXTURE_BLUE_SIZE 0x805E
998 #define GL_TEXTURE_ALPHA_SIZE 0x805F
998 #define GL_TEXTURE_ALPHA_SIZE 0x805F
999 #define GL_TEXTURE_LUMINANCE_SIZE 0x8060
999 #define GL_TEXTURE_LUMINANCE_SIZE 0x8060
1000 #define GL_TEXTURE_INTENSITY_SIZE 0x8061
1000 #define GL_TEXTURE_INTENSITY_SIZE 0x8061
1001 #define GL_PROXY_TEXTURE_1D 0x8063
1001 #define GL_PROXY_TEXTURE_1D 0x8063
1002 #define GL_PROXY_TEXTURE_2D 0x8064
1002 #define GL_PROXY_TEXTURE_2D 0x8064
1003
1003
1004 /* texture_object */
1004 /* texture_object */
1005 #define GL_TEXTURE_PRIORITY 0x8066
1005 #define GL_TEXTURE_PRIORITY 0x8066
1006 #define GL_TEXTURE_RESIDENT 0x8067
1006 #define GL_TEXTURE_RESIDENT 0x8067
1007 #define GL_TEXTURE_BINDING_1D 0x8068
1007 #define GL_TEXTURE_BINDING_1D 0x8068
1008 #define GL_TEXTURE_BINDING_2D 0x8069
1008 #define GL_TEXTURE_BINDING_2D 0x8069
1009
1009
1010 /* vertex_array */
1010 /* vertex_array */
1011 #define GL_VERTEX_ARRAY 0x8074
1011 #define GL_VERTEX_ARRAY 0x8074
1012 #define GL_NORMAL_ARRAY 0x8075
1012 #define GL_NORMAL_ARRAY 0x8075
1013 #define GL_COLOR_ARRAY 0x8076
1013 #define GL_COLOR_ARRAY 0x8076
1014 #define GL_INDEX_ARRAY 0x8077
1014 #define GL_INDEX_ARRAY 0x8077
1015 #define GL_TEXTURE_COORD_ARRAY 0x8078
1015 #define GL_TEXTURE_COORD_ARRAY 0x8078
1016 #define GL_EDGE_FLAG_ARRAY 0x8079
1016 #define GL_EDGE_FLAG_ARRAY 0x8079
1017 #define GL_VERTEX_ARRAY_SIZE 0x807A
1017 #define GL_VERTEX_ARRAY_SIZE 0x807A
1018 #define GL_VERTEX_ARRAY_TYPE 0x807B
1018 #define GL_VERTEX_ARRAY_TYPE 0x807B
1019 #define GL_VERTEX_ARRAY_STRIDE 0x807C
1019 #define GL_VERTEX_ARRAY_STRIDE 0x807C
1020 #define GL_NORMAL_ARRAY_TYPE 0x807E
1020 #define GL_NORMAL_ARRAY_TYPE 0x807E
1021 #define GL_NORMAL_ARRAY_STRIDE 0x807F
1021 #define GL_NORMAL_ARRAY_STRIDE 0x807F
1022 #define GL_COLOR_ARRAY_SIZE 0x8081
1022 #define GL_COLOR_ARRAY_SIZE 0x8081
1023 #define GL_COLOR_ARRAY_TYPE 0x8082
1023 #define GL_COLOR_ARRAY_TYPE 0x8082
1024 #define GL_COLOR_ARRAY_STRIDE 0x8083
1024 #define GL_COLOR_ARRAY_STRIDE 0x8083
1025 #define GL_INDEX_ARRAY_TYPE 0x8085
1025 #define GL_INDEX_ARRAY_TYPE 0x8085
1026 #define GL_INDEX_ARRAY_STRIDE 0x8086
1026 #define GL_INDEX_ARRAY_STRIDE 0x8086
1027 #define GL_TEXTURE_COORD_ARRAY_SIZE 0x8088
1027 #define GL_TEXTURE_COORD_ARRAY_SIZE 0x8088
1028 #define GL_TEXTURE_COORD_ARRAY_TYPE 0x8089
1028 #define GL_TEXTURE_COORD_ARRAY_TYPE 0x8089
1029 #define GL_TEXTURE_COORD_ARRAY_STRIDE 0x808A
1029 #define GL_TEXTURE_COORD_ARRAY_STRIDE 0x808A
1030 #define GL_EDGE_FLAG_ARRAY_STRIDE 0x808C
1030 #define GL_EDGE_FLAG_ARRAY_STRIDE 0x808C
1031 #define GL_VERTEX_ARRAY_POINTER 0x808E
1031 #define GL_VERTEX_ARRAY_POINTER 0x808E
1032 #define GL_NORMAL_ARRAY_POINTER 0x808F
1032 #define GL_NORMAL_ARRAY_POINTER 0x808F
1033 #define GL_COLOR_ARRAY_POINTER 0x8090
1033 #define GL_COLOR_ARRAY_POINTER 0x8090
1034 #define GL_INDEX_ARRAY_POINTER 0x8091
1034 #define GL_INDEX_ARRAY_POINTER 0x8091
1035 #define GL_TEXTURE_COORD_ARRAY_POINTER 0x8092
1035 #define GL_TEXTURE_COORD_ARRAY_POINTER 0x8092
1036 #define GL_EDGE_FLAG_ARRAY_POINTER 0x8093
1036 #define GL_EDGE_FLAG_ARRAY_POINTER 0x8093
1037 #define GL_V2F 0x2A20
1037 #define GL_V2F 0x2A20
1038 #define GL_V3F 0x2A21
1038 #define GL_V3F 0x2A21
1039 #define GL_C4UB_V2F 0x2A22
1039 #define GL_C4UB_V2F 0x2A22
1040 #define GL_C4UB_V3F 0x2A23
1040 #define GL_C4UB_V3F 0x2A23
1041 #define GL_C3F_V3F 0x2A24
1041 #define GL_C3F_V3F 0x2A24
1042 #define GL_N3F_V3F 0x2A25
1042 #define GL_N3F_V3F 0x2A25
1043 #define GL_C4F_N3F_V3F 0x2A26
1043 #define GL_C4F_N3F_V3F 0x2A26
1044 #define GL_T2F_V3F 0x2A27
1044 #define GL_T2F_V3F 0x2A27
1045 #define GL_T4F_V4F 0x2A28
1045 #define GL_T4F_V4F 0x2A28
1046 #define GL_T2F_C4UB_V3F 0x2A29
1046 #define GL_T2F_C4UB_V3F 0x2A29
1047 #define GL_T2F_C3F_V3F 0x2A2A
1047 #define GL_T2F_C3F_V3F 0x2A2A
1048 #define GL_T2F_N3F_V3F 0x2A2B
1048 #define GL_T2F_N3F_V3F 0x2A2B
1049 #define GL_T2F_C4F_N3F_V3F 0x2A2C
1049 #define GL_T2F_C4F_N3F_V3F 0x2A2C
1050 #define GL_T4F_C4F_N3F_V4F 0x2A2D
1050 #define GL_T4F_C4F_N3F_V4F 0x2A2D
1051
1051
1052 /* Extensions */
1052 /* Extensions */
1053 #define GL_EXT_vertex_array 1
1053 #define GL_EXT_vertex_array 1
1054 #define GL_EXT_bgra 1
1054 #define GL_EXT_bgra 1
1055 #define GL_EXT_paletted_texture 1
1055 #define GL_EXT_paletted_texture 1
1056 #define GL_WIN_swap_hint 1
1056 #define GL_WIN_swap_hint 1
1057 #define GL_WIN_draw_range_elements 1
1057 #define GL_WIN_draw_range_elements 1
1058 // #define GL_WIN_phong_shading 1
1058 // #define GL_WIN_phong_shading 1
1059 // #define GL_WIN_specular_fog 1
1059 // #define GL_WIN_specular_fog 1
1060
1060
1061 /* EXT_vertex_array */
1061 /* EXT_vertex_array */
1062 #define GL_VERTEX_ARRAY_EXT 0x8074
1062 #define GL_VERTEX_ARRAY_EXT 0x8074
1063 #define GL_NORMAL_ARRAY_EXT 0x8075
1063 #define GL_NORMAL_ARRAY_EXT 0x8075
1064 #define GL_COLOR_ARRAY_EXT 0x8076
1064 #define GL_COLOR_ARRAY_EXT 0x8076
1065 #define GL_INDEX_ARRAY_EXT 0x8077
1065 #define GL_INDEX_ARRAY_EXT 0x8077
1066 #define GL_TEXTURE_COORD_ARRAY_EXT 0x8078
1066 #define GL_TEXTURE_COORD_ARRAY_EXT 0x8078
1067 #define GL_EDGE_FLAG_ARRAY_EXT 0x8079
1067 #define GL_EDGE_FLAG_ARRAY_EXT 0x8079
1068 #define GL_VERTEX_ARRAY_SIZE_EXT 0x807A
1068 #define GL_VERTEX_ARRAY_SIZE_EXT 0x807A
1069 #define GL_VERTEX_ARRAY_TYPE_EXT 0x807B
1069 #define GL_VERTEX_ARRAY_TYPE_EXT 0x807B
1070 #define GL_VERTEX_ARRAY_STRIDE_EXT 0x807C
1070 #define GL_VERTEX_ARRAY_STRIDE_EXT 0x807C
1071 #define GL_VERTEX_ARRAY_COUNT_EXT 0x807D
1071 #define GL_VERTEX_ARRAY_COUNT_EXT 0x807D
1072 #define GL_NORMAL_ARRAY_TYPE_EXT 0x807E
1072 #define GL_NORMAL_ARRAY_TYPE_EXT 0x807E
1073 #define GL_NORMAL_ARRAY_STRIDE_EXT 0x807F
1073 #define GL_NORMAL_ARRAY_STRIDE_EXT 0x807F
1074 #define GL_NORMAL_ARRAY_COUNT_EXT 0x8080
1074 #define GL_NORMAL_ARRAY_COUNT_EXT 0x8080
1075 #define GL_COLOR_ARRAY_SIZE_EXT 0x8081
1075 #define GL_COLOR_ARRAY_SIZE_EXT 0x8081
1076 #define GL_COLOR_ARRAY_TYPE_EXT 0x8082
1076 #define GL_COLOR_ARRAY_TYPE_EXT 0x8082
1077 #define GL_COLOR_ARRAY_STRIDE_EXT 0x8083
1077 #define GL_COLOR_ARRAY_STRIDE_EXT 0x8083
1078 #define GL_COLOR_ARRAY_COUNT_EXT 0x8084
1078 #define GL_COLOR_ARRAY_COUNT_EXT 0x8084
1079 #define GL_INDEX_ARRAY_TYPE_EXT 0x8085
1079 #define GL_INDEX_ARRAY_TYPE_EXT 0x8085
1080 #define GL_INDEX_ARRAY_STRIDE_EXT 0x8086
1080 #define GL_INDEX_ARRAY_STRIDE_EXT 0x8086
1081 #define GL_INDEX_ARRAY_COUNT_EXT 0x8087
1081 #define GL_INDEX_ARRAY_COUNT_EXT 0x8087
1082 #define GL_TEXTURE_COORD_ARRAY_SIZE_EXT 0x8088
1082 #define GL_TEXTURE_COORD_ARRAY_SIZE_EXT 0x8088
1083 #define GL_TEXTURE_COORD_ARRAY_TYPE_EXT 0x8089
1083 #define GL_TEXTURE_COORD_ARRAY_TYPE_EXT 0x8089
1084 #define GL_TEXTURE_COORD_ARRAY_STRIDE_EXT 0x808A
1084 #define GL_TEXTURE_COORD_ARRAY_STRIDE_EXT 0x808A
1085 #define GL_TEXTURE_COORD_ARRAY_COUNT_EXT 0x808B
1085 #define GL_TEXTURE_COORD_ARRAY_COUNT_EXT 0x808B
1086 #define GL_EDGE_FLAG_ARRAY_STRIDE_EXT 0x808C
1086 #define GL_EDGE_FLAG_ARRAY_STRIDE_EXT 0x808C
1087 #define GL_EDGE_FLAG_ARRAY_COUNT_EXT 0x808D
1087 #define GL_EDGE_FLAG_ARRAY_COUNT_EXT 0x808D
1088 #define GL_VERTEX_ARRAY_POINTER_EXT 0x808E
1088 #define GL_VERTEX_ARRAY_POINTER_EXT 0x808E
1089 #define GL_NORMAL_ARRAY_POINTER_EXT 0x808F
1089 #define GL_NORMAL_ARRAY_POINTER_EXT 0x808F
1090 #define GL_COLOR_ARRAY_POINTER_EXT 0x8090
1090 #define GL_COLOR_ARRAY_POINTER_EXT 0x8090
1091 #define GL_INDEX_ARRAY_POINTER_EXT 0x8091
1091 #define GL_INDEX_ARRAY_POINTER_EXT 0x8091
1092 #define GL_TEXTURE_COORD_ARRAY_POINTER_EXT 0x8092
1092 #define GL_TEXTURE_COORD_ARRAY_POINTER_EXT 0x8092
1093 #define GL_EDGE_FLAG_ARRAY_POINTER_EXT 0x8093
1093 #define GL_EDGE_FLAG_ARRAY_POINTER_EXT 0x8093
1094 #define GL_DOUBLE_EXT GL_DOUBLE
1094 #define GL_DOUBLE_EXT GL_DOUBLE
1095
1095
1096 /* EXT_bgra */
1096 /* EXT_bgra */
1097 #define GL_BGR_EXT 0x80E0
1097 #define GL_BGR_EXT 0x80E0
1098 #define GL_BGRA_EXT 0x80E1
1098 #define GL_BGRA_EXT 0x80E1
1099
1099
1100 /* EXT_paletted_texture */
1100 /* EXT_paletted_texture */
1101
1101
1102 /* These must match the GL_COLOR_TABLE_*_SGI enumerants */
1102 /* These must match the GL_COLOR_TABLE_*_SGI enumerants */
1103 #define GL_COLOR_TABLE_FORMAT_EXT 0x80D8
1103 #define GL_COLOR_TABLE_FORMAT_EXT 0x80D8
1104 #define GL_COLOR_TABLE_WIDTH_EXT 0x80D9
1104 #define GL_COLOR_TABLE_WIDTH_EXT 0x80D9
1105 #define GL_COLOR_TABLE_RED_SIZE_EXT 0x80DA
1105 #define GL_COLOR_TABLE_RED_SIZE_EXT 0x80DA
1106 #define GL_COLOR_TABLE_GREEN_SIZE_EXT 0x80DB
1106 #define GL_COLOR_TABLE_GREEN_SIZE_EXT 0x80DB
1107 #define GL_COLOR_TABLE_BLUE_SIZE_EXT 0x80DC
1107 #define GL_COLOR_TABLE_BLUE_SIZE_EXT 0x80DC
1108 #define GL_COLOR_TABLE_ALPHA_SIZE_EXT 0x80DD
1108 #define GL_COLOR_TABLE_ALPHA_SIZE_EXT 0x80DD
1109 #define GL_COLOR_TABLE_LUMINANCE_SIZE_EXT 0x80DE
1109 #define GL_COLOR_TABLE_LUMINANCE_SIZE_EXT 0x80DE
1110 #define GL_COLOR_TABLE_INTENSITY_SIZE_EXT 0x80DF
1110 #define GL_COLOR_TABLE_INTENSITY_SIZE_EXT 0x80DF
1111
1111
1112 #define GL_COLOR_INDEX1_EXT 0x80E2
1112 #define GL_COLOR_INDEX1_EXT 0x80E2
1113 #define GL_COLOR_INDEX2_EXT 0x80E3
1113 #define GL_COLOR_INDEX2_EXT 0x80E3
1114 #define GL_COLOR_INDEX4_EXT 0x80E4
1114 #define GL_COLOR_INDEX4_EXT 0x80E4
1115 #define GL_COLOR_INDEX8_EXT 0x80E5
1115 #define GL_COLOR_INDEX8_EXT 0x80E5
1116 #define GL_COLOR_INDEX12_EXT 0x80E6
1116 #define GL_COLOR_INDEX12_EXT 0x80E6
1117 #define GL_COLOR_INDEX16_EXT 0x80E7
1117 #define GL_COLOR_INDEX16_EXT 0x80E7
1118
1118
1119 /* WIN_draw_range_elements */
1119 /* WIN_draw_range_elements */
1120 #define GL_MAX_ELEMENTS_VERTICES_WIN 0x80E8
1120 #define GL_MAX_ELEMENTS_VERTICES_WIN 0x80E8
1121 #define GL_MAX_ELEMENTS_INDICES_WIN 0x80E9
1121 #define GL_MAX_ELEMENTS_INDICES_WIN 0x80E9
1122
1122
1123 /* WIN_phong_shading */
1123 /* WIN_phong_shading */
1124 #define GL_PHONG_WIN 0x80EA
1124 #define GL_PHONG_WIN 0x80EA
1125 #define GL_PHONG_HINT_WIN 0x80EB
1125 #define GL_PHONG_HINT_WIN 0x80EB
1126
1126
1127 /* WIN_specular_fog */
1127 /* WIN_specular_fog */
1128 #define GL_FOG_SPECULAR_TEXTURE_WIN 0x80EC
1128 #define GL_FOG_SPECULAR_TEXTURE_WIN 0x80EC
1129
1129
1130 /* For compatibility with OpenGL v1.0 */
1130 /* For compatibility with OpenGL v1.0 */
1131 #define GL_LOGIC_OP GL_INDEX_LOGIC_OP
1131 #define GL_LOGIC_OP GL_INDEX_LOGIC_OP
1132 #define GL_TEXTURE_COMPONENTS GL_TEXTURE_INTERNAL_FORMAT
1132 #define GL_TEXTURE_COMPONENTS GL_TEXTURE_INTERNAL_FORMAT
1133 #include <QtOpenGL/QtOpenGL>
1133 #include <QtOpenGL/QtOpenGL>
1134 #endif // QT_NO_OPENGL
1134 #endif // QT_NO_OPENGL
@@ -1,109 +1,111
1 /****************************************************************************
1 /****************************************************************************
2 **
2 **
3 ** Copyright (C) 1992-2008 Trolltech ASA. All rights reserved.
3 ** Copyright (C) 1992-2008 Trolltech ASA. All rights reserved.
4 **
4 **
5 ** This file is part of the Qt Script Generator project on Trolltech Labs.
5 ** This file is part of the Qt Script Generator project on Trolltech Labs.
6 **
6 **
7 ** This file may be used under the terms of the GNU General Public
7 ** This file may be used under the terms of the GNU General Public
8 ** License version 2.0 as published by the Free Software Foundation
8 ** License version 2.0 as published by the Free Software Foundation
9 ** and appearing in the file LICENSE.GPL included in the packaging of
9 ** and appearing in the file LICENSE.GPL included in the packaging of
10 ** this file. Please review the following information to ensure GNU
10 ** this file. Please review the following information to ensure GNU
11 ** General Public Licensing requirements will be met:
11 ** General Public Licensing requirements will be met:
12 ** http://www.trolltech.com/products/qt/opensource.html
12 ** http://www.trolltech.com/products/qt/opensource.html
13 **
13 **
14 ** If you are unsure which license is appropriate for your use, please
14 ** If you are unsure which license is appropriate for your use, please
15 ** review the following information:
15 ** review the following information:
16 ** http://www.trolltech.com/products/qt/licensing.html or contact the
16 ** http://www.trolltech.com/products/qt/licensing.html or contact the
17 ** sales department at sales@trolltech.com.
17 ** sales department at sales@trolltech.com.
18 **
18 **
19 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
19 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
20 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
20 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
21 **
21 **
22 ****************************************************************************/
22 ****************************************************************************/
23
23
24 #include "setupgenerator.h"
24 #include "setupgenerator.h"
25 #include "classgenerator.h"
25 #include "classgenerator.h"
26 #include "reporthandler.h"
26 #include "reporthandler.h"
27 #include "fileout.h"
27 #include "fileout.h"
28
28
29 //#define Q_SCRIPT_LAZY_GENERATOR
29 //#define Q_SCRIPT_LAZY_GENERATOR
30
30
31 void SetupGenerator::addClass(const AbstractMetaClass *cls)
31 void SetupGenerator::addClass(const AbstractMetaClass *cls)
32 {
32 {
33 packHash[cls->package()].append(cls);
33 packHash[cls->package()].append(cls);
34 }
34 }
35
35
36 void writeQtScriptQtBindingsLicense(QTextStream &stream);
36 void writeQtScriptQtBindingsLicense(QTextStream &stream);
37
37
38 void maybeDeclareMetaType(QTextStream &stream, const QString &typeName,
38 void maybeDeclareMetaType(QTextStream &stream, const QString &typeName,
39 QSet<QString> &registeredTypeNames);
39 QSet<QString> &registeredTypeNames);
40 bool hasDefaultConstructor(const AbstractMetaClass *meta_class);
40 bool hasDefaultConstructor(const AbstractMetaClass *meta_class);
41
41
42 void SetupGenerator::generate()
42 void SetupGenerator::generate()
43 {
43 {
44 QHashIterator<QString, QList<const AbstractMetaClass*> > pack(packHash);
44 QHashIterator<QString, QList<const AbstractMetaClass*> > pack(packHash);
45 while (pack.hasNext()) {
45 while (pack.hasNext()) {
46 pack.next();
46 pack.next();
47 QList<const AbstractMetaClass*> list = pack.value();
47 QList<const AbstractMetaClass*> list = pack.value();
48 if (list.isEmpty())
48 if (list.isEmpty())
49 continue;
49 continue;
50
50
51 QString packKey = pack.key();
51 QString packName = pack.key();
52 QString packName = pack.key();
52 QStringList components = packName.split(".");
53 QStringList components = packName.split(".");
53 if ((components.size() > 2) && (components.at(0) == "com")
54 if ((components.size() > 2) && (components.at(0) == "com")
54 && (components.at(1) == "trolltech")) {
55 && (components.at(1) == "trolltech")) {
55 // kill com.trolltech in key
56 // kill com.trolltech in key
56 components.removeAt(0);
57 components.removeAt(0);
57 components.removeAt(0);
58 components.removeAt(0);
58 }
59 }
59 packName.replace(".", "_");
60 packName.replace(".", "_");
61 packKey.replace(".", "_");
60
62
61 QString shortPackName;
63 QString shortPackName;
62 foreach (QString comp, components) {
64 foreach (QString comp, components) {
63 comp[0] = comp[0].toUpper();
65 comp[0] = comp[0].toUpper();
64 shortPackName += comp;
66 shortPackName += comp;
65 }
67 }
66 // add missing camel case (workaround..)
68 // add missing camel case (workaround..)
67 if (shortPackName == "QtWebkit") {
69 if (shortPackName == "QtWebkit") {
68 shortPackName = "QtWebKit";
70 shortPackName = "QtWebKit";
69 } else if (shortPackName == "QtXmlpatterns") {
71 } else if (shortPackName == "QtXmlpatterns") {
70 shortPackName = "QtXmlPatterns";
72 shortPackName = "QtXmlPatterns";
71 } else if (shortPackName == "QtOpengl") {
73 } else if (shortPackName == "QtOpengl") {
72 shortPackName = "QtOpenGL";
74 shortPackName = "QtOpenGL";
73 }
75 }
74
76
75
77
76 {
78 {
77 FileOut initFile(m_out_dir + "/generated_cpp/" + packName + "/init.cpp");
79 FileOut initFile(m_out_dir + "/generated_cpp/" + packName + "/" + packKey + "_init.cpp");
78 QTextStream &s = initFile.stream;
80 QTextStream &s = initFile.stream;
79
81
80 if (FileOut::license)
82 if (FileOut::license)
81 writeQtScriptQtBindingsLicense(s);
83 writeQtScriptQtBindingsLicense(s);
82
84
83 s << "#include <PythonQt.h>" << endl;
85 s << "#include <PythonQt.h>" << endl;
84
86
85 foreach (const AbstractMetaClass *cls, list) {
87 foreach (const AbstractMetaClass *cls, list) {
86 s << "#include \"PythonQtWrapper_" << cls->name() << ".h\"" << endl;
88 s << "#include \"PythonQtWrapper_" << cls->name() << ".h\"" << endl;
87 }
89 }
88 s << endl;
90 s << endl;
89
91
90 // declare individual class creation functions
92 // declare individual class creation functions
91 s << "void PythonQt_init_" << shortPackName << "() {" << endl;
93 s << "void PythonQt_init_" << shortPackName << "() {" << endl;
92 QStringList cppClassNames;
94 QStringList cppClassNames;
93 foreach (const AbstractMetaClass *cls, list) {
95 foreach (const AbstractMetaClass *cls, list) {
94 if (ClassGenerator::isBuiltIn(cls->name())) { continue; }
96 if (ClassGenerator::isBuiltIn(cls->name())) { continue; }
95
97
96 if (cls->isQObject()) {
98 if (cls->isQObject()) {
97 s << "PythonQt::self()->registerClass(&" << cls->qualifiedCppName() << "::staticMetaObject, \"" << shortPackName <<"\", PythonQtCreateObject<PythonQtWrapper_" << cls->name() << ">);" << endl;
99 s << "PythonQt::self()->registerClass(&" << cls->qualifiedCppName() << "::staticMetaObject, \"" << shortPackName <<"\", PythonQtCreateObject<PythonQtWrapper_" << cls->name() << ">);" << endl;
98 } else {
100 } else {
99 QString baseName = cls->baseClass()?cls->baseClass()->qualifiedCppName():"";
101 QString baseName = cls->baseClass()?cls->baseClass()->qualifiedCppName():"";
100 s << "PythonQt::self()->registerCPPClass(\""<< cls->qualifiedCppName() << "\", \"" << baseName << "\", \"" << shortPackName <<"\", PythonQtCreateObject<PythonQtWrapper_" << cls->name() << ">);" << endl;
102 s << "PythonQt::self()->registerCPPClass(\""<< cls->qualifiedCppName() << "\", \"" << baseName << "\", \"" << shortPackName <<"\", PythonQtCreateObject<PythonQtWrapper_" << cls->name() << ">);" << endl;
101 }
103 }
102 }
104 }
103 s << endl;
105 s << endl;
104
106
105 s << "}";
107 s << "}";
106 s << endl;
108 s << endl;
107 }
109 }
108 }
110 }
109 }
111 }
1 NO CONTENT: file was removed, binary diff hidden
NO CONTENT: file was removed, binary diff hidden
General Comments 0
You need to be logged in to leave comments. Login now