• 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.cpp:
9 //   Simple WGL function loader.
10 
11 #include "wgl_loader_autogen.h"
12 
13 PFNCHOOSEPIXELFORMATPROC l__ChoosePixelFormat;
14 PFNDESCRIBEPIXELFORMATPROC l__DescribePixelFormat;
15 PFNGETENHMETAFILEPIXELFORMATPROC l__GetEnhMetaFilePixelFormat;
16 PFNGETPIXELFORMATPROC l__GetPixelFormat;
17 PFNSETPIXELFORMATPROC l__SetPixelFormat;
18 PFNSWAPBUFFERSPROC l__SwapBuffers;
19 PFNWGLCOPYCONTEXTPROC l__wglCopyContext;
20 PFNWGLCREATECONTEXTPROC l__wglCreateContext;
21 PFNWGLCREATELAYERCONTEXTPROC l__wglCreateLayerContext;
22 PFNWGLDELETECONTEXTPROC l__wglDeleteContext;
23 PFNWGLDESCRIBELAYERPLANEPROC l__wglDescribeLayerPlane;
24 PFNWGLGETCURRENTCONTEXTPROC l__wglGetCurrentContext;
25 PFNWGLGETCURRENTDCPROC l__wglGetCurrentDC;
26 PFNWGLGETLAYERPALETTEENTRIESPROC l__wglGetLayerPaletteEntries;
27 PFNWGLGETPROCADDRESSPROC l__wglGetProcAddress;
28 PFNWGLMAKECURRENTPROC l__wglMakeCurrent;
29 PFNWGLREALIZELAYERPALETTEPROC l__wglRealizeLayerPalette;
30 PFNWGLSETLAYERPALETTEENTRIESPROC l__wglSetLayerPaletteEntries;
31 PFNWGLSHARELISTSPROC l__wglShareLists;
32 PFNWGLSWAPLAYERBUFFERSPROC l__wglSwapLayerBuffers;
33 PFNWGLUSEFONTBITMAPSPROC l__wglUseFontBitmaps;
34 PFNWGLUSEFONTBITMAPSAPROC l__wglUseFontBitmapsA;
35 PFNWGLUSEFONTBITMAPSWPROC l__wglUseFontBitmapsW;
36 PFNWGLUSEFONTOUTLINESPROC l__wglUseFontOutlines;
37 PFNWGLUSEFONTOUTLINESAPROC l__wglUseFontOutlinesA;
38 PFNWGLUSEFONTOUTLINESWPROC l__wglUseFontOutlinesW;
39 PFNWGLCREATECONTEXTATTRIBSARBPROC l__wglCreateContextAttribsARB;
40 PFNWGLGETEXTENSIONSSTRINGARBPROC l__wglGetExtensionsStringARB;
41 PFNWGLGETSWAPINTERVALEXTPROC l__wglGetSwapIntervalEXT;
42 PFNWGLSWAPINTERVALEXTPROC l__wglSwapIntervalEXT;
43 
44 namespace angle
45 {
LoadWGL(LoadProc loadProc)46 void LoadWGL(LoadProc loadProc)
47 {
48     l__ChoosePixelFormat =
49         reinterpret_cast<PFNCHOOSEPIXELFORMATPROC>(loadProc("ChoosePixelFormat"));
50     l__DescribePixelFormat =
51         reinterpret_cast<PFNDESCRIBEPIXELFORMATPROC>(loadProc("DescribePixelFormat"));
52     l__GetEnhMetaFilePixelFormat =
53         reinterpret_cast<PFNGETENHMETAFILEPIXELFORMATPROC>(loadProc("GetEnhMetaFilePixelFormat"));
54     l__GetPixelFormat   = reinterpret_cast<PFNGETPIXELFORMATPROC>(loadProc("GetPixelFormat"));
55     l__SetPixelFormat   = reinterpret_cast<PFNSETPIXELFORMATPROC>(loadProc("SetPixelFormat"));
56     l__SwapBuffers      = reinterpret_cast<PFNSWAPBUFFERSPROC>(loadProc("SwapBuffers"));
57     l__wglCopyContext   = reinterpret_cast<PFNWGLCOPYCONTEXTPROC>(loadProc("wglCopyContext"));
58     l__wglCreateContext = reinterpret_cast<PFNWGLCREATECONTEXTPROC>(loadProc("wglCreateContext"));
59     l__wglCreateLayerContext =
60         reinterpret_cast<PFNWGLCREATELAYERCONTEXTPROC>(loadProc("wglCreateLayerContext"));
61     l__wglDeleteContext = reinterpret_cast<PFNWGLDELETECONTEXTPROC>(loadProc("wglDeleteContext"));
62     l__wglDescribeLayerPlane =
63         reinterpret_cast<PFNWGLDESCRIBELAYERPLANEPROC>(loadProc("wglDescribeLayerPlane"));
64     l__wglGetCurrentContext =
65         reinterpret_cast<PFNWGLGETCURRENTCONTEXTPROC>(loadProc("wglGetCurrentContext"));
66     l__wglGetCurrentDC = reinterpret_cast<PFNWGLGETCURRENTDCPROC>(loadProc("wglGetCurrentDC"));
67     l__wglGetLayerPaletteEntries =
68         reinterpret_cast<PFNWGLGETLAYERPALETTEENTRIESPROC>(loadProc("wglGetLayerPaletteEntries"));
69     l__wglGetProcAddress =
70         reinterpret_cast<PFNWGLGETPROCADDRESSPROC>(loadProc("wglGetProcAddress"));
71     l__wglMakeCurrent = reinterpret_cast<PFNWGLMAKECURRENTPROC>(loadProc("wglMakeCurrent"));
72     l__wglRealizeLayerPalette =
73         reinterpret_cast<PFNWGLREALIZELAYERPALETTEPROC>(loadProc("wglRealizeLayerPalette"));
74     l__wglSetLayerPaletteEntries =
75         reinterpret_cast<PFNWGLSETLAYERPALETTEENTRIESPROC>(loadProc("wglSetLayerPaletteEntries"));
76     l__wglShareLists = reinterpret_cast<PFNWGLSHARELISTSPROC>(loadProc("wglShareLists"));
77     l__wglSwapLayerBuffers =
78         reinterpret_cast<PFNWGLSWAPLAYERBUFFERSPROC>(loadProc("wglSwapLayerBuffers"));
79     l__wglUseFontBitmaps =
80         reinterpret_cast<PFNWGLUSEFONTBITMAPSPROC>(loadProc("wglUseFontBitmaps"));
81     l__wglUseFontBitmapsA =
82         reinterpret_cast<PFNWGLUSEFONTBITMAPSAPROC>(loadProc("wglUseFontBitmapsA"));
83     l__wglUseFontBitmapsW =
84         reinterpret_cast<PFNWGLUSEFONTBITMAPSWPROC>(loadProc("wglUseFontBitmapsW"));
85     l__wglUseFontOutlines =
86         reinterpret_cast<PFNWGLUSEFONTOUTLINESPROC>(loadProc("wglUseFontOutlines"));
87     l__wglUseFontOutlinesA =
88         reinterpret_cast<PFNWGLUSEFONTOUTLINESAPROC>(loadProc("wglUseFontOutlinesA"));
89     l__wglUseFontOutlinesW =
90         reinterpret_cast<PFNWGLUSEFONTOUTLINESWPROC>(loadProc("wglUseFontOutlinesW"));
91     l__wglCreateContextAttribsARB =
92         reinterpret_cast<PFNWGLCREATECONTEXTATTRIBSARBPROC>(loadProc("wglCreateContextAttribsARB"));
93     l__wglGetExtensionsStringARB =
94         reinterpret_cast<PFNWGLGETEXTENSIONSSTRINGARBPROC>(loadProc("wglGetExtensionsStringARB"));
95     l__wglGetSwapIntervalEXT =
96         reinterpret_cast<PFNWGLGETSWAPINTERVALEXTPROC>(loadProc("wglGetSwapIntervalEXT"));
97     l__wglSwapIntervalEXT =
98         reinterpret_cast<PFNWGLSWAPINTERVALEXTPROC>(loadProc("wglSwapIntervalEXT"));
99 }
100 }  // namespace angle
101