Changeset View
Changeset View
Standalone View
Standalone View
libraries/source/glad/include/glad/wgl.h
/** | |||||
* Loader generated by glad 2.0.0-beta on Sun Dec 12 00:56:42 2021 | |||||
* | |||||
* Generator: C/C++ | |||||
* Specification: wgl | |||||
* Extensions: 3 | |||||
* | |||||
* APIs: | |||||
* - wgl=1.0 | |||||
* | |||||
* Options: | |||||
* - ALIAS = False | |||||
* - DEBUG = False | |||||
* - HEADER_ONLY = False | |||||
* - LOADER = False | |||||
* - MX = False | |||||
* - MX_GLOBAL = False | |||||
* - ON_DEMAND = False | |||||
* | |||||
* Commandline: | |||||
* --api='wgl=1.0' --extensions='WGL_ARB_extensions_string,WGL_EXT_extensions_string,WGL_EXT_swap_control' c | |||||
* | |||||
* Online: | |||||
* http://glad.sh/#api=wgl%3D1.0&extensions=WGL_ARB_extensions_string%2CWGL_EXT_extensions_string%2CWGL_EXT_swap_control&generator=c&options= | |||||
* | |||||
*/ | |||||
#ifndef GLAD_WGL_H_ | |||||
#define GLAD_WGL_H_ | |||||
#include <windows.h> | |||||
#include <glad/gl.h> | |||||
#define GLAD_WGL | |||||
#ifdef __cplusplus | |||||
extern "C" { | |||||
#endif | |||||
#ifndef GLAD_PLATFORM_H_ | |||||
#define GLAD_PLATFORM_H_ | |||||
#ifndef GLAD_PLATFORM_WIN32 | |||||
#if defined(_WIN32) || defined(__WIN32__) || defined(WIN32) || defined(__MINGW32__) | |||||
#define GLAD_PLATFORM_WIN32 1 | |||||
#else | |||||
#define GLAD_PLATFORM_WIN32 0 | |||||
#endif | |||||
#endif | |||||
#ifndef GLAD_PLATFORM_APPLE | |||||
#ifdef __APPLE__ | |||||
#define GLAD_PLATFORM_APPLE 1 | |||||
#else | |||||
#define GLAD_PLATFORM_APPLE 0 | |||||
#endif | |||||
#endif | |||||
#ifndef GLAD_PLATFORM_EMSCRIPTEN | |||||
#ifdef __EMSCRIPTEN__ | |||||
#define GLAD_PLATFORM_EMSCRIPTEN 1 | |||||
#else | |||||
#define GLAD_PLATFORM_EMSCRIPTEN 0 | |||||
#endif | |||||
#endif | |||||
#ifndef GLAD_PLATFORM_UWP | |||||
#if defined(_MSC_VER) && !defined(GLAD_INTERNAL_HAVE_WINAPIFAMILY) | |||||
#ifdef __has_include | |||||
#if __has_include(<winapifamily.h>) | |||||
#define GLAD_INTERNAL_HAVE_WINAPIFAMILY 1 | |||||
#endif | |||||
#elif _MSC_VER >= 1700 && !_USING_V110_SDK71_ | |||||
#define GLAD_INTERNAL_HAVE_WINAPIFAMILY 1 | |||||
#endif | |||||
#endif | |||||
#ifdef GLAD_INTERNAL_HAVE_WINAPIFAMILY | |||||
#include <winapifamily.h> | |||||
#if !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) && WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) | |||||
#define GLAD_PLATFORM_UWP 1 | |||||
#endif | |||||
#endif | |||||
#ifndef GLAD_PLATFORM_UWP | |||||
#define GLAD_PLATFORM_UWP 0 | |||||
#endif | |||||
#endif | |||||
#ifdef __GNUC__ | |||||
#define GLAD_GNUC_EXTENSION __extension__ | |||||
#else | |||||
#define GLAD_GNUC_EXTENSION | |||||
#endif | |||||
#ifndef GLAD_API_CALL | |||||
#if defined(GLAD_API_CALL_EXPORT) | |||||
#if GLAD_PLATFORM_WIN32 || defined(__CYGWIN__) | |||||
#if defined(GLAD_API_CALL_EXPORT_BUILD) | |||||
#if defined(__GNUC__) | |||||
#define GLAD_API_CALL __attribute__ ((dllexport)) extern | |||||
#else | |||||
#define GLAD_API_CALL __declspec(dllexport) extern | |||||
#endif | |||||
#else | |||||
#if defined(__GNUC__) | |||||
#define GLAD_API_CALL __attribute__ ((dllimport)) extern | |||||
#else | |||||
#define GLAD_API_CALL __declspec(dllimport) extern | |||||
#endif | |||||
#endif | |||||
#elif defined(__GNUC__) && defined(GLAD_API_CALL_EXPORT_BUILD) | |||||
#define GLAD_API_CALL __attribute__ ((visibility ("default"))) extern | |||||
#else | |||||
#define GLAD_API_CALL extern | |||||
#endif | |||||
#else | |||||
#define GLAD_API_CALL extern | |||||
#endif | |||||
#endif | |||||
#ifdef APIENTRY | |||||
#define GLAD_API_PTR APIENTRY | |||||
#elif GLAD_PLATFORM_WIN32 | |||||
#define GLAD_API_PTR __stdcall | |||||
#else | |||||
#define GLAD_API_PTR | |||||
#endif | |||||
#ifndef GLAPI | |||||
#define GLAPI GLAD_API_CALL | |||||
#endif | |||||
#ifndef GLAPIENTRY | |||||
#define GLAPIENTRY GLAD_API_PTR | |||||
#endif | |||||
#define GLAD_MAKE_VERSION(major, minor) (major * 10000 + minor) | |||||
#define GLAD_VERSION_MAJOR(version) (version / 10000) | |||||
#define GLAD_VERSION_MINOR(version) (version % 10000) | |||||
#define GLAD_GENERATOR_VERSION "2.0.0-beta" | |||||
typedef void (*GLADapiproc)(void); | |||||
typedef GLADapiproc (*GLADloadfunc)(const char *name); | |||||
typedef GLADapiproc (*GLADuserptrloadfunc)(void *userptr, const char *name); | |||||
typedef void (*GLADprecallback)(const char *name, GLADapiproc apiproc, int len_args, ...); | |||||
typedef void (*GLADpostcallback)(void *ret, const char *name, GLADapiproc apiproc, int len_args, ...); | |||||
#endif /* GLAD_PLATFORM_H_ */ | |||||
#define WGL_FONT_LINES 0 | |||||
#define WGL_FONT_POLYGONS 1 | |||||
#define WGL_SWAP_MAIN_PLANE 0x00000001 | |||||
#define WGL_SWAP_OVERLAY1 0x00000002 | |||||
#define WGL_SWAP_OVERLAY10 0x00000400 | |||||
#define WGL_SWAP_OVERLAY11 0x00000800 | |||||
#define WGL_SWAP_OVERLAY12 0x00001000 | |||||
#define WGL_SWAP_OVERLAY13 0x00002000 | |||||
#define WGL_SWAP_OVERLAY14 0x00004000 | |||||
#define WGL_SWAP_OVERLAY15 0x00008000 | |||||
#define WGL_SWAP_OVERLAY2 0x00000004 | |||||
#define WGL_SWAP_OVERLAY3 0x00000008 | |||||
#define WGL_SWAP_OVERLAY4 0x00000010 | |||||
#define WGL_SWAP_OVERLAY5 0x00000020 | |||||
#define WGL_SWAP_OVERLAY6 0x00000040 | |||||
#define WGL_SWAP_OVERLAY7 0x00000080 | |||||
#define WGL_SWAP_OVERLAY8 0x00000100 | |||||
#define WGL_SWAP_OVERLAY9 0x00000200 | |||||
#define WGL_SWAP_UNDERLAY1 0x00010000 | |||||
#define WGL_SWAP_UNDERLAY10 0x02000000 | |||||
#define WGL_SWAP_UNDERLAY11 0x04000000 | |||||
#define WGL_SWAP_UNDERLAY12 0x08000000 | |||||
#define WGL_SWAP_UNDERLAY13 0x10000000 | |||||
#define WGL_SWAP_UNDERLAY14 0x20000000 | |||||
#define WGL_SWAP_UNDERLAY15 0x40000000 | |||||
#define WGL_SWAP_UNDERLAY2 0x00020000 | |||||
#define WGL_SWAP_UNDERLAY3 0x00040000 | |||||
#define WGL_SWAP_UNDERLAY4 0x00080000 | |||||
#define WGL_SWAP_UNDERLAY5 0x00100000 | |||||
#define WGL_SWAP_UNDERLAY6 0x00200000 | |||||
#define WGL_SWAP_UNDERLAY7 0x00400000 | |||||
#define WGL_SWAP_UNDERLAY8 0x00800000 | |||||
#define WGL_SWAP_UNDERLAY9 0x01000000 | |||||
struct _GPU_DEVICE { | |||||
DWORD cb; | |||||
CHAR DeviceName[32]; | |||||
CHAR DeviceString[128]; | |||||
DWORD Flags; | |||||
RECT rcVirtualScreen; | |||||
}; | |||||
DECLARE_HANDLE(HPBUFFERARB); | |||||
DECLARE_HANDLE(HPBUFFEREXT); | |||||
DECLARE_HANDLE(HVIDEOOUTPUTDEVICENV); | |||||
DECLARE_HANDLE(HPVIDEODEV); | |||||
DECLARE_HANDLE(HPGPUNV); | |||||
DECLARE_HANDLE(HGPUNV); | |||||
DECLARE_HANDLE(HVIDEOINPUTDEVICENV); | |||||
typedef struct _GPU_DEVICE GPU_DEVICE; | |||||
typedef struct _GPU_DEVICE *PGPU_DEVICE; | |||||
#define WGL_VERSION_1_0 1 | |||||
GLAD_API_CALL int GLAD_WGL_VERSION_1_0; | |||||
#define WGL_ARB_extensions_string 1 | |||||
GLAD_API_CALL int GLAD_WGL_ARB_extensions_string; | |||||
#define WGL_EXT_extensions_string 1 | |||||
GLAD_API_CALL int GLAD_WGL_EXT_extensions_string; | |||||
#define WGL_EXT_swap_control 1 | |||||
GLAD_API_CALL int GLAD_WGL_EXT_swap_control; | |||||
typedef int (GLAD_API_PTR *PFNCHOOSEPIXELFORMATPROC)(HDC hDc, const PIXELFORMATDESCRIPTOR * pPfd); | |||||
typedef int (GLAD_API_PTR *PFNDESCRIBEPIXELFORMATPROC)(HDC hdc, int ipfd, UINT cjpfd, const PIXELFORMATDESCRIPTOR * ppfd); | |||||
typedef UINT (GLAD_API_PTR *PFNGETENHMETAFILEPIXELFORMATPROC)(HENHMETAFILE hemf, const PIXELFORMATDESCRIPTOR * ppfd); | |||||
typedef int (GLAD_API_PTR *PFNGETPIXELFORMATPROC)(HDC hdc); | |||||
typedef BOOL (GLAD_API_PTR *PFNSETPIXELFORMATPROC)(HDC hdc, int ipfd, const PIXELFORMATDESCRIPTOR * ppfd); | |||||
typedef BOOL (GLAD_API_PTR *PFNSWAPBUFFERSPROC)(HDC hdc); | |||||
typedef BOOL (GLAD_API_PTR *PFNWGLCOPYCONTEXTPROC)(HGLRC hglrcSrc, HGLRC hglrcDst, UINT mask); | |||||
typedef HGLRC (GLAD_API_PTR *PFNWGLCREATECONTEXTPROC)(HDC hDc); | |||||
typedef HGLRC (GLAD_API_PTR *PFNWGLCREATELAYERCONTEXTPROC)(HDC hDc, int level); | |||||
typedef BOOL (GLAD_API_PTR *PFNWGLDELETECONTEXTPROC)(HGLRC oldContext); | |||||
typedef BOOL (GLAD_API_PTR *PFNWGLDESCRIBELAYERPLANEPROC)(HDC hDc, int pixelFormat, int layerPlane, UINT nBytes, const LAYERPLANEDESCRIPTOR * plpd); | |||||
typedef HGLRC (GLAD_API_PTR *PFNWGLGETCURRENTCONTEXTPROC)(void); | |||||
typedef HDC (GLAD_API_PTR *PFNWGLGETCURRENTDCPROC)(void); | |||||
typedef const char * (GLAD_API_PTR *PFNWGLGETEXTENSIONSSTRINGARBPROC)(HDC hdc); | |||||
typedef const char * (GLAD_API_PTR *PFNWGLGETEXTENSIONSSTRINGEXTPROC)(void); | |||||
typedef int (GLAD_API_PTR *PFNWGLGETLAYERPALETTEENTRIESPROC)(HDC hdc, int iLayerPlane, int iStart, int cEntries, const COLORREF * pcr); | |||||
typedef PROC (GLAD_API_PTR *PFNWGLGETPROCADDRESSPROC)(LPCSTR lpszProc); | |||||
typedef int (GLAD_API_PTR *PFNWGLGETSWAPINTERVALEXTPROC)(void); | |||||
typedef BOOL (GLAD_API_PTR *PFNWGLMAKECURRENTPROC)(HDC hDc, HGLRC newContext); | |||||
typedef BOOL (GLAD_API_PTR *PFNWGLREALIZELAYERPALETTEPROC)(HDC hdc, int iLayerPlane, BOOL bRealize); | |||||
typedef int (GLAD_API_PTR *PFNWGLSETLAYERPALETTEENTRIESPROC)(HDC hdc, int iLayerPlane, int iStart, int cEntries, const COLORREF * pcr); | |||||
typedef BOOL (GLAD_API_PTR *PFNWGLSHARELISTSPROC)(HGLRC hrcSrvShare, HGLRC hrcSrvSource); | |||||
typedef BOOL (GLAD_API_PTR *PFNWGLSWAPINTERVALEXTPROC)(int interval); | |||||
typedef BOOL (GLAD_API_PTR *PFNWGLSWAPLAYERBUFFERSPROC)(HDC hdc, UINT fuFlags); | |||||
typedef BOOL (GLAD_API_PTR *PFNWGLUSEFONTBITMAPSPROC)(HDC hDC, DWORD first, DWORD count, DWORD listBase); | |||||
typedef BOOL (GLAD_API_PTR *PFNWGLUSEFONTBITMAPSAPROC)(HDC hDC, DWORD first, DWORD count, DWORD listBase); | |||||
typedef BOOL (GLAD_API_PTR *PFNWGLUSEFONTBITMAPSWPROC)(HDC hDC, DWORD first, DWORD count, DWORD listBase); | |||||
typedef BOOL (GLAD_API_PTR *PFNWGLUSEFONTOUTLINESPROC)(HDC hDC, DWORD first, DWORD count, DWORD listBase, FLOAT deviation, FLOAT extrusion, int format, LPGLYPHMETRICSFLOAT lpgmf); | |||||
typedef BOOL (GLAD_API_PTR *PFNWGLUSEFONTOUTLINESAPROC)(HDC hDC, DWORD first, DWORD count, DWORD listBase, FLOAT deviation, FLOAT extrusion, int format, LPGLYPHMETRICSFLOAT lpgmf); | |||||
typedef BOOL (GLAD_API_PTR *PFNWGLUSEFONTOUTLINESWPROC)(HDC hDC, DWORD first, DWORD count, DWORD listBase, FLOAT deviation, FLOAT extrusion, int format, LPGLYPHMETRICSFLOAT lpgmf); | |||||
GLAD_API_CALL PFNWGLGETEXTENSIONSSTRINGARBPROC glad_wglGetExtensionsStringARB; | |||||
#define wglGetExtensionsStringARB glad_wglGetExtensionsStringARB | |||||
GLAD_API_CALL PFNWGLGETEXTENSIONSSTRINGEXTPROC glad_wglGetExtensionsStringEXT; | |||||
#define wglGetExtensionsStringEXT glad_wglGetExtensionsStringEXT | |||||
GLAD_API_CALL PFNWGLGETSWAPINTERVALEXTPROC glad_wglGetSwapIntervalEXT; | |||||
#define wglGetSwapIntervalEXT glad_wglGetSwapIntervalEXT | |||||
GLAD_API_CALL PFNWGLSWAPINTERVALEXTPROC glad_wglSwapIntervalEXT; | |||||
#define wglSwapIntervalEXT glad_wglSwapIntervalEXT | |||||
GLAD_API_CALL int gladLoadWGLUserPtr(HDC hdc, GLADuserptrloadfunc load, void *userptr); | |||||
GLAD_API_CALL int gladLoadWGL(HDC hdc, GLADloadfunc load); | |||||
#ifdef __cplusplus | |||||
} | |||||
#endif | |||||
#endif |
Wildfire Games · Phabricator