OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Tieto Corporation. | 2 * Copyright (C) 2010 Tieto Corporation. |
3 * Copyright (C) 2011 Igalia S.L. | 3 * Copyright (C) 2011 Igalia S.L. |
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 * You should have received a copy of the GNU Lesser General Public | 15 * You should have received a copy of the GNU Lesser General Public |
16 * License along with this library; if not, write to the Free Software | 16 * License along with this library; if not, write to the Free Software |
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 U
SA | 17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 U
SA |
18 */ | 18 */ |
19 | 19 |
20 #ifndef OpenGLShims_h | 20 #ifndef OpenGLShims_h |
21 #define OpenGLShims_h | 21 #define OpenGLShims_h |
22 | 22 |
23 #if PLATFORM(QT) | |
24 #include <qglobal.h> | |
25 #include <qopenglfunctions.h> | |
26 #include <QOpenGLContext> | |
27 #include <QSurface> | |
28 #else | |
29 #include <GL/gl.h> | 23 #include <GL/gl.h> |
30 #endif | |
31 | 24 |
32 #if defined(GL_ES_VERSION_2_0) | 25 #if defined(GL_ES_VERSION_2_0) |
33 // Some openGL ES systems miss this typedef. | 26 // Some openGL ES systems miss this typedef. |
34 typedef char GLchar; | 27 typedef char GLchar; |
35 #endif | 28 #endif |
36 | 29 |
37 typedef struct _OpenGLFunctionTable OpenGLFunctionTable; | 30 typedef struct _OpenGLFunctionTable OpenGLFunctionTable; |
38 | 31 |
39 namespace WebCore { | 32 namespace WebCore { |
40 bool initializeOpenGLShims(); | 33 bool initializeOpenGLShims(); |
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 #define glVertexAttrib2f LOOKUP_GL_FUNCTION(glVertexAttrib
2f) | 355 #define glVertexAttrib2f LOOKUP_GL_FUNCTION(glVertexAttrib
2f) |
363 #define glVertexAttrib2fv LOOKUP_GL_FUNCTION(glVertexAttrib
2fv) | 356 #define glVertexAttrib2fv LOOKUP_GL_FUNCTION(glVertexAttrib
2fv) |
364 #define glVertexAttrib3f LOOKUP_GL_FUNCTION(glVertexAttrib
3f) | 357 #define glVertexAttrib3f LOOKUP_GL_FUNCTION(glVertexAttrib
3f) |
365 #define glVertexAttrib3fv LOOKUP_GL_FUNCTION(glVertexAttrib
3fv) | 358 #define glVertexAttrib3fv LOOKUP_GL_FUNCTION(glVertexAttrib
3fv) |
366 #define glVertexAttrib4f LOOKUP_GL_FUNCTION(glVertexAttrib
4f) | 359 #define glVertexAttrib4f LOOKUP_GL_FUNCTION(glVertexAttrib
4f) |
367 #define glVertexAttrib4fv LOOKUP_GL_FUNCTION(glVertexAttrib
4fv) | 360 #define glVertexAttrib4fv LOOKUP_GL_FUNCTION(glVertexAttrib
4fv) |
368 #define glVertexAttribPointer LOOKUP_GL_FUNCTION(glVertexAttrib
Pointer) | 361 #define glVertexAttribPointer LOOKUP_GL_FUNCTION(glVertexAttrib
Pointer) |
369 #endif | 362 #endif |
370 | 363 |
371 #endif | 364 #endif |
OLD | NEW |