Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Side by Side Diff: app/gfx/gl/gl_bindings.h

Issue 2134006: Added EGL based GLContext.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « app/gfx/gl/generate_bindings.py ('k') | app/gfx/gl/gl_context.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Includes the platform independent and platform dependent GL headers.
6 // Only include this in cc files. It pulls in system headers, including
7 // the X11 headers on linux, which define all kinds of macros that are
8 // liable to cause conflicts.
9
10 #ifndef APP_GFX_GL_GL_BINDINGS_H_
11 #define APP_GFX_GL_GL_BINDINGS_H_
12
13 #include <GL/gl.h>
14 #include <GL/glext.h>
15
16 #include "build/build_config.h"
17
18 // The standard OpenGL native extension headers are also included.
19 #if defined(OS_WIN)
20 #include <GL/wglext.h>
21 #elif defined(OS_LINUX)
22 #include <GL/glx.h>
23 #include <GL/glxext.h>
24
25 // Undefine some macros defined by X headers. This is why this file should only
26 // be included in .cc files.
27 #undef Bool
28 #undef None
29 #undef Status
30
31 #elif defined(OS_MACOSX)
32 #include <OpenGL/OpenGL.h>
33 #endif
34
35 #if defined(OS_WIN)
36 #define GL_BINDING_CALL WINAPI
37 #else
38 #define GL_BINDING_CALL
39 #endif
40
41 // Forward declare OSMesa types.
42 typedef struct osmesa_context *OSMesaContext;
43 typedef void (*OSMESAproc)();
44
45 #if defined(OS_WIN)
46
47 // Forward declare EGL types.
48 typedef unsigned int EGLBoolean;
49 typedef unsigned int EGLenum;
50 typedef int EGLint;
51 typedef void *EGLConfig;
52 typedef void *EGLContext;
53 typedef void *EGLDisplay;
54 typedef void *EGLSurface;
55 typedef void *EGLClientBuffer;
56 typedef void (*__eglMustCastToProperFunctionPointerType)(void);
57
58 #endif // OS_WIN
59
60 #include "gl_bindings_autogen_gl.h"
61 #include "gl_bindings_autogen_osmesa.h"
62
63 #if defined(OS_WIN)
64 #include "gl_bindings_autogen_egl.h"
65 #include "gl_bindings_autogen_wgl.h"
66 #elif defined(OS_LINUX)
67 #include "gl_bindings_autogen_glx.h"
68 #endif
69
70 namespace gfx {
71
72 // Find an entry point to the mock GL implementation.
73 void* GL_BINDING_CALL GetMockGLProcAddress(const char* name);
74
75 } // namespace gfx
76
77 #endif // APP_GFX_GL_GL_BINDINGS_H_
OLDNEW
« no previous file with comments | « app/gfx/gl/generate_bindings.py ('k') | app/gfx/gl/gl_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698