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 PFNWGLCHOOSEPIXELFORMATARBPROC l__wglChoosePixelFormatARB; 42 PFNWGLGETPIXELFORMATATTRIBFVARBPROC l__wglGetPixelFormatAttribfvARB; 43 PFNWGLGETPIXELFORMATATTRIBIVARBPROC l__wglGetPixelFormatAttribivARB; 44 PFNWGLGETSWAPINTERVALEXTPROC l__wglGetSwapIntervalEXT; 45 PFNWGLSWAPINTERVALEXTPROC l__wglSwapIntervalEXT; 46 47 namespace angle 48 { LoadWGL(LoadProc loadProc)49void LoadWGL(LoadProc loadProc) 50 { 51 l__ChoosePixelFormat = 52 reinterpret_cast<PFNCHOOSEPIXELFORMATPROC>(loadProc("ChoosePixelFormat")); 53 l__DescribePixelFormat = 54 reinterpret_cast<PFNDESCRIBEPIXELFORMATPROC>(loadProc("DescribePixelFormat")); 55 l__GetEnhMetaFilePixelFormat = 56 reinterpret_cast<PFNGETENHMETAFILEPIXELFORMATPROC>(loadProc("GetEnhMetaFilePixelFormat")); 57 l__GetPixelFormat = reinterpret_cast<PFNGETPIXELFORMATPROC>(loadProc("GetPixelFormat")); 58 l__SetPixelFormat = reinterpret_cast<PFNSETPIXELFORMATPROC>(loadProc("SetPixelFormat")); 59 l__SwapBuffers = reinterpret_cast<PFNSWAPBUFFERSPROC>(loadProc("SwapBuffers")); 60 l__wglCopyContext = reinterpret_cast<PFNWGLCOPYCONTEXTPROC>(loadProc("wglCopyContext")); 61 l__wglCreateContext = reinterpret_cast<PFNWGLCREATECONTEXTPROC>(loadProc("wglCreateContext")); 62 l__wglCreateLayerContext = 63 reinterpret_cast<PFNWGLCREATELAYERCONTEXTPROC>(loadProc("wglCreateLayerContext")); 64 l__wglDeleteContext = reinterpret_cast<PFNWGLDELETECONTEXTPROC>(loadProc("wglDeleteContext")); 65 l__wglDescribeLayerPlane = 66 reinterpret_cast<PFNWGLDESCRIBELAYERPLANEPROC>(loadProc("wglDescribeLayerPlane")); 67 l__wglGetCurrentContext = 68 reinterpret_cast<PFNWGLGETCURRENTCONTEXTPROC>(loadProc("wglGetCurrentContext")); 69 l__wglGetCurrentDC = reinterpret_cast<PFNWGLGETCURRENTDCPROC>(loadProc("wglGetCurrentDC")); 70 l__wglGetLayerPaletteEntries = 71 reinterpret_cast<PFNWGLGETLAYERPALETTEENTRIESPROC>(loadProc("wglGetLayerPaletteEntries")); 72 l__wglGetProcAddress = 73 reinterpret_cast<PFNWGLGETPROCADDRESSPROC>(loadProc("wglGetProcAddress")); 74 l__wglMakeCurrent = reinterpret_cast<PFNWGLMAKECURRENTPROC>(loadProc("wglMakeCurrent")); 75 l__wglRealizeLayerPalette = 76 reinterpret_cast<PFNWGLREALIZELAYERPALETTEPROC>(loadProc("wglRealizeLayerPalette")); 77 l__wglSetLayerPaletteEntries = 78 reinterpret_cast<PFNWGLSETLAYERPALETTEENTRIESPROC>(loadProc("wglSetLayerPaletteEntries")); 79 l__wglShareLists = reinterpret_cast<PFNWGLSHARELISTSPROC>(loadProc("wglShareLists")); 80 l__wglSwapLayerBuffers = 81 reinterpret_cast<PFNWGLSWAPLAYERBUFFERSPROC>(loadProc("wglSwapLayerBuffers")); 82 l__wglUseFontBitmaps = 83 reinterpret_cast<PFNWGLUSEFONTBITMAPSPROC>(loadProc("wglUseFontBitmaps")); 84 l__wglUseFontBitmapsA = 85 reinterpret_cast<PFNWGLUSEFONTBITMAPSAPROC>(loadProc("wglUseFontBitmapsA")); 86 l__wglUseFontBitmapsW = 87 reinterpret_cast<PFNWGLUSEFONTBITMAPSWPROC>(loadProc("wglUseFontBitmapsW")); 88 l__wglUseFontOutlines = 89 reinterpret_cast<PFNWGLUSEFONTOUTLINESPROC>(loadProc("wglUseFontOutlines")); 90 l__wglUseFontOutlinesA = 91 reinterpret_cast<PFNWGLUSEFONTOUTLINESAPROC>(loadProc("wglUseFontOutlinesA")); 92 l__wglUseFontOutlinesW = 93 reinterpret_cast<PFNWGLUSEFONTOUTLINESWPROC>(loadProc("wglUseFontOutlinesW")); 94 l__wglCreateContextAttribsARB = 95 reinterpret_cast<PFNWGLCREATECONTEXTATTRIBSARBPROC>(loadProc("wglCreateContextAttribsARB")); 96 l__wglGetExtensionsStringARB = 97 reinterpret_cast<PFNWGLGETEXTENSIONSSTRINGARBPROC>(loadProc("wglGetExtensionsStringARB")); 98 l__wglChoosePixelFormatARB = 99 reinterpret_cast<PFNWGLCHOOSEPIXELFORMATARBPROC>(loadProc("wglChoosePixelFormatARB")); 100 l__wglGetPixelFormatAttribfvARB = reinterpret_cast<PFNWGLGETPIXELFORMATATTRIBFVARBPROC>( 101 loadProc("wglGetPixelFormatAttribfvARB")); 102 l__wglGetPixelFormatAttribivARB = reinterpret_cast<PFNWGLGETPIXELFORMATATTRIBIVARBPROC>( 103 loadProc("wglGetPixelFormatAttribivARB")); 104 l__wglGetSwapIntervalEXT = 105 reinterpret_cast<PFNWGLGETSWAPINTERVALEXTPROC>(loadProc("wglGetSwapIntervalEXT")); 106 l__wglSwapIntervalEXT = 107 reinterpret_cast<PFNWGLSWAPINTERVALEXTPROC>(loadProc("wglSwapIntervalEXT")); 108 } 109 } // namespace angle 110