• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // GENERATED FILE - DO NOT EDIT.
2 // Generated by generate_loader.py using data from wgl.xml.
3 //
4 // Copyright 2018 The ANGLE Project Authors. All rights reserved.
5 // Use of this source code is governed by a BSD-style license that can be
6 // found in the LICENSE file.
7 //
8 // wgl_loader_autogen.h:
9 //   Simple WGL function loader.
10 
11 #ifndef UTIL_WINDOWS_WGL_LOADER_AUTOGEN_H_
12 #define UTIL_WINDOWS_WGL_LOADER_AUTOGEN_H_
13 
14 #include <GLES2/gl2.h>
15 #include <WGL/wgl.h>
16 
17 // We add an underscore before each function name to ensure common names like "ChoosePixelFormat"
18 // and "SwapBuffers" don't conflict with our function pointers. We can't use a namespace because
19 // some functions conflict with preprocessor definitions.
20 
21 #define _ChoosePixelFormat l__ChoosePixelFormat
22 #define _DescribePixelFormat l__DescribePixelFormat
23 #define _GetEnhMetaFilePixelFormat l__GetEnhMetaFilePixelFormat
24 #define _GetPixelFormat l__GetPixelFormat
25 #define _SetPixelFormat l__SetPixelFormat
26 #define _SwapBuffers l__SwapBuffers
27 #define _wglCopyContext l__wglCopyContext
28 #define _wglCreateContext l__wglCreateContext
29 #define _wglCreateLayerContext l__wglCreateLayerContext
30 #define _wglDeleteContext l__wglDeleteContext
31 #define _wglDescribeLayerPlane l__wglDescribeLayerPlane
32 #define _wglGetCurrentContext l__wglGetCurrentContext
33 #define _wglGetCurrentDC l__wglGetCurrentDC
34 #define _wglGetLayerPaletteEntries l__wglGetLayerPaletteEntries
35 #define _wglGetProcAddress l__wglGetProcAddress
36 #define _wglMakeCurrent l__wglMakeCurrent
37 #define _wglRealizeLayerPalette l__wglRealizeLayerPalette
38 #define _wglSetLayerPaletteEntries l__wglSetLayerPaletteEntries
39 #define _wglShareLists l__wglShareLists
40 #define _wglSwapLayerBuffers l__wglSwapLayerBuffers
41 #define _wglUseFontBitmaps l__wglUseFontBitmaps
42 #define _wglUseFontBitmapsA l__wglUseFontBitmapsA
43 #define _wglUseFontBitmapsW l__wglUseFontBitmapsW
44 #define _wglUseFontOutlines l__wglUseFontOutlines
45 #define _wglUseFontOutlinesA l__wglUseFontOutlinesA
46 #define _wglUseFontOutlinesW l__wglUseFontOutlinesW
47 #define _wglCreateContextAttribsARB l__wglCreateContextAttribsARB
48 #define _wglGetExtensionsStringARB l__wglGetExtensionsStringARB
49 #define _wglGetSwapIntervalEXT l__wglGetSwapIntervalEXT
50 #define _wglSwapIntervalEXT l__wglSwapIntervalEXT
51 extern PFNCHOOSEPIXELFORMATPROC l__ChoosePixelFormat;
52 extern PFNDESCRIBEPIXELFORMATPROC l__DescribePixelFormat;
53 extern PFNGETENHMETAFILEPIXELFORMATPROC l__GetEnhMetaFilePixelFormat;
54 extern PFNGETPIXELFORMATPROC l__GetPixelFormat;
55 extern PFNSETPIXELFORMATPROC l__SetPixelFormat;
56 extern PFNSWAPBUFFERSPROC l__SwapBuffers;
57 extern PFNWGLCOPYCONTEXTPROC l__wglCopyContext;
58 extern PFNWGLCREATECONTEXTPROC l__wglCreateContext;
59 extern PFNWGLCREATELAYERCONTEXTPROC l__wglCreateLayerContext;
60 extern PFNWGLDELETECONTEXTPROC l__wglDeleteContext;
61 extern PFNWGLDESCRIBELAYERPLANEPROC l__wglDescribeLayerPlane;
62 extern PFNWGLGETCURRENTCONTEXTPROC l__wglGetCurrentContext;
63 extern PFNWGLGETCURRENTDCPROC l__wglGetCurrentDC;
64 extern PFNWGLGETLAYERPALETTEENTRIESPROC l__wglGetLayerPaletteEntries;
65 extern PFNWGLGETPROCADDRESSPROC l__wglGetProcAddress;
66 extern PFNWGLMAKECURRENTPROC l__wglMakeCurrent;
67 extern PFNWGLREALIZELAYERPALETTEPROC l__wglRealizeLayerPalette;
68 extern PFNWGLSETLAYERPALETTEENTRIESPROC l__wglSetLayerPaletteEntries;
69 extern PFNWGLSHARELISTSPROC l__wglShareLists;
70 extern PFNWGLSWAPLAYERBUFFERSPROC l__wglSwapLayerBuffers;
71 extern PFNWGLUSEFONTBITMAPSPROC l__wglUseFontBitmaps;
72 extern PFNWGLUSEFONTBITMAPSAPROC l__wglUseFontBitmapsA;
73 extern PFNWGLUSEFONTBITMAPSWPROC l__wglUseFontBitmapsW;
74 extern PFNWGLUSEFONTOUTLINESPROC l__wglUseFontOutlines;
75 extern PFNWGLUSEFONTOUTLINESAPROC l__wglUseFontOutlinesA;
76 extern PFNWGLUSEFONTOUTLINESWPROC l__wglUseFontOutlinesW;
77 extern PFNWGLCREATECONTEXTATTRIBSARBPROC l__wglCreateContextAttribsARB;
78 extern PFNWGLGETEXTENSIONSSTRINGARBPROC l__wglGetExtensionsStringARB;
79 extern PFNWGLGETSWAPINTERVALEXTPROC l__wglGetSwapIntervalEXT;
80 extern PFNWGLSWAPINTERVALEXTPROC l__wglSwapIntervalEXT;
81 
82 namespace angle
83 {
84 using GenericProc = void (*)();
85 using LoadProc    = GenericProc(KHRONOS_APIENTRY *)(const char *);
86 void LoadWGL(LoadProc loadProc);
87 }  // namespace angle
88 
89 #endif  // UTIL_WINDOWS_WGL_LOADER_AUTOGEN_H_
90