Go to the source code of this file.
Classes | |
struct | _GLFWcontextWGL |
struct | _GLFWlibraryWGL |
Typedefs | |
typedef struct _GLFWcontextWGL | _GLFWcontextWGL |
typedef struct _GLFWlibraryWGL | _GLFWlibraryWGL |
typedef HGLRC(WINAPI * | PFN_wglCreateContext) (HDC) |
typedef BOOL(WINAPI * | PFN_wglDeleteContext) (HGLRC) |
typedef HGLRC(WINAPI * | PFN_wglGetCurrentContext) (void) |
typedef HDC(WINAPI * | PFN_wglGetCurrentDC) (void) |
typedef PROC(WINAPI * | PFN_wglGetProcAddress) (LPCSTR) |
typedef BOOL(WINAPI * | PFN_wglMakeCurrent) (HDC, HGLRC) |
typedef BOOL(WINAPI * | PFN_wglShareLists) (HGLRC, HGLRC) |
typedef HGLRC(WINAPI * | PFNWGLCREATECONTEXTATTRIBSARBPROC) (HDC, HGLRC, const int *) |
typedef const char *(WINAPI * | PFNWGLGETEXTENSIONSSTRINGARBPROC) (HDC) |
typedef const char *(WINAPI * | PFNWGLGETEXTENSIONSSTRINGEXTPROC) (void) |
typedef BOOL(WINAPI * | PFNWGLGETPIXELFORMATATTRIBIVARBPROC) (HDC, int, int, UINT, const int *, int *) |
typedef BOOL(WINAPI * | PFNWGLSWAPINTERVALEXTPROC) (int) |
Functions | |
GLFWbool | _glfwCreateContextWGL (_GLFWwindow *window, const _GLFWctxconfig *ctxconfig, const _GLFWfbconfig *fbconfig) |
GLFWbool | _glfwInitWGL (void) |
void | _glfwTerminateWGL (void) |
#define _GLFW_PLATFORM_CONTEXT_STATE _GLFWcontextWGL wgl |
Definition at line 106 of file wgl_context.h.
#define _GLFW_PLATFORM_LIBRARY_CONTEXT_STATE _GLFWlibraryWGL wgl |
Definition at line 107 of file wgl_context.h.
#define _GLFW_RECREATION_IMPOSSIBLE 2 |
Definition at line 104 of file wgl_context.h.
#define _GLFW_RECREATION_NOT_NEEDED 0 |
Definition at line 102 of file wgl_context.h.
#define _GLFW_RECREATION_REQUIRED 1 |
Definition at line 103 of file wgl_context.h.
#define ERROR_INCOMPATIBLE_DEVICE_CONTEXTS_ARB 0x2054 |
Definition at line 77 of file wgl_context.h.
#define ERROR_INVALID_PROFILE_ARB 0x2096 |
Definition at line 76 of file wgl_context.h.
#define ERROR_INVALID_VERSION_ARB 0x2095 |
Definition at line 75 of file wgl_context.h.
#define WGL_ACCELERATION_ARB 0x2003 |
Definition at line 33 of file wgl_context.h.
#define WGL_ACCUM_ALPHA_BITS_ARB 0x2021 |
Definition at line 47 of file wgl_context.h.
#define WGL_ACCUM_BITS_ARB 0x201d |
Definition at line 43 of file wgl_context.h.
#define WGL_ACCUM_BLUE_BITS_ARB 0x2020 |
Definition at line 46 of file wgl_context.h.
#define WGL_ACCUM_GREEN_BITS_ARB 0x201f |
Definition at line 45 of file wgl_context.h.
#define WGL_ACCUM_RED_BITS_ARB 0x201e |
Definition at line 44 of file wgl_context.h.
#define WGL_ALPHA_BITS_ARB 0x201b |
Definition at line 41 of file wgl_context.h.
#define WGL_ALPHA_SHIFT_ARB 0x201c |
Definition at line 42 of file wgl_context.h.
#define WGL_AUX_BUFFERS_ARB 0x2024 |
Definition at line 50 of file wgl_context.h.
#define WGL_BLUE_BITS_ARB 0x2019 |
Definition at line 39 of file wgl_context.h.
#define WGL_BLUE_SHIFT_ARB 0x201a |
Definition at line 40 of file wgl_context.h.
#define WGL_COLORSPACE_EXT 0x309d |
Definition at line 72 of file wgl_context.h.
#define WGL_COLORSPACE_SRGB_EXT 0x3089 |
Definition at line 73 of file wgl_context.h.
#define WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002 |
Definition at line 59 of file wgl_context.h.
#define WGL_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001 |
Definition at line 58 of file wgl_context.h.
#define WGL_CONTEXT_DEBUG_BIT_ARB 0x00000001 |
Definition at line 55 of file wgl_context.h.
#define WGL_CONTEXT_ES2_PROFILE_BIT_EXT 0x00000004 |
Definition at line 63 of file wgl_context.h.
#define WGL_CONTEXT_FLAGS_ARB 0x2094 |
Definition at line 62 of file wgl_context.h.
#define WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x00000002 |
Definition at line 56 of file wgl_context.h.
#define WGL_CONTEXT_MAJOR_VERSION_ARB 0x2091 |
Definition at line 60 of file wgl_context.h.
#define WGL_CONTEXT_MINOR_VERSION_ARB 0x2092 |
Definition at line 61 of file wgl_context.h.
#define WGL_CONTEXT_OPENGL_NO_ERROR_ARB 0x31b3 |
Definition at line 71 of file wgl_context.h.
#define WGL_CONTEXT_PROFILE_MASK_ARB 0x9126 |
Definition at line 57 of file wgl_context.h.
#define WGL_CONTEXT_RELEASE_BEHAVIOR_ARB 0x2097 |
Definition at line 68 of file wgl_context.h.
#define WGL_CONTEXT_RELEASE_BEHAVIOR_FLUSH_ARB 0x2098 |
Definition at line 70 of file wgl_context.h.
#define WGL_CONTEXT_RELEASE_BEHAVIOR_NONE_ARB 0 |
Definition at line 69 of file wgl_context.h.
#define WGL_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB 0x8256 |
Definition at line 66 of file wgl_context.h.
#define WGL_CONTEXT_ROBUST_ACCESS_BIT_ARB 0x00000004 |
Definition at line 64 of file wgl_context.h.
#define WGL_DEPTH_BITS_ARB 0x2022 |
Definition at line 48 of file wgl_context.h.
#define WGL_DOUBLE_BUFFER_ARB 0x2011 |
Definition at line 52 of file wgl_context.h.
#define WGL_DRAW_TO_WINDOW_ARB 0x2001 |
Definition at line 30 of file wgl_context.h.
#define WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB 0x20a9 |
Definition at line 54 of file wgl_context.h.
#define WGL_GREEN_BITS_ARB 0x2017 |
Definition at line 37 of file wgl_context.h.
#define WGL_GREEN_SHIFT_ARB 0x2018 |
Definition at line 38 of file wgl_context.h.
#define WGL_LOSE_CONTEXT_ON_RESET_ARB 0x8252 |
Definition at line 65 of file wgl_context.h.
#define WGL_NO_ACCELERATION_ARB 0x2025 |
Definition at line 34 of file wgl_context.h.
#define WGL_NO_RESET_NOTIFICATION_ARB 0x8261 |
Definition at line 67 of file wgl_context.h.
#define WGL_NUMBER_PIXEL_FORMATS_ARB 0x2000 |
Definition at line 28 of file wgl_context.h.
#define WGL_PIXEL_TYPE_ARB 0x2013 |
Definition at line 31 of file wgl_context.h.
#define WGL_RED_BITS_ARB 0x2015 |
Definition at line 35 of file wgl_context.h.
#define WGL_RED_SHIFT_ARB 0x2016 |
Definition at line 36 of file wgl_context.h.
#define WGL_SAMPLES_ARB 0x2042 |
Definition at line 53 of file wgl_context.h.
#define WGL_STENCIL_BITS_ARB 0x2023 |
Definition at line 49 of file wgl_context.h.
#define WGL_STEREO_ARB 0x2012 |
Definition at line 51 of file wgl_context.h.
#define WGL_SUPPORT_OPENGL_ARB 0x2010 |
Definition at line 29 of file wgl_context.h.
#define WGL_TYPE_RGBA_ARB 0x202b |
Definition at line 32 of file wgl_context.h.
#define wglCreateContext _glfw.wgl.CreateContext |
Definition at line 94 of file wgl_context.h.
#define wglDeleteContext _glfw.wgl.DeleteContext |
Definition at line 95 of file wgl_context.h.
#define wglGetCurrentContext _glfw.wgl.GetCurrentContext |
Definition at line 98 of file wgl_context.h.
#define wglGetCurrentDC _glfw.wgl.GetCurrentDC |
Definition at line 97 of file wgl_context.h.
#define wglGetProcAddress _glfw.wgl.GetProcAddress |
Definition at line 96 of file wgl_context.h.
#define wglMakeCurrent _glfw.wgl.MakeCurrent |
Definition at line 99 of file wgl_context.h.
#define wglShareLists _glfw.wgl.ShareLists |
Definition at line 100 of file wgl_context.h.
typedef struct _GLFWcontextWGL _GLFWcontextWGL |
typedef struct _GLFWlibraryWGL _GLFWlibraryWGL |
typedef HGLRC(WINAPI * PFN_wglCreateContext) (HDC) |
Definition at line 85 of file wgl_context.h.
typedef BOOL(WINAPI * PFN_wglDeleteContext) (HGLRC) |
Definition at line 86 of file wgl_context.h.
typedef HGLRC(WINAPI * PFN_wglGetCurrentContext) (void) |
Definition at line 89 of file wgl_context.h.
typedef HDC(WINAPI * PFN_wglGetCurrentDC) (void) |
Definition at line 88 of file wgl_context.h.
typedef PROC(WINAPI * PFN_wglGetProcAddress) (LPCSTR) |
Definition at line 87 of file wgl_context.h.
typedef BOOL(WINAPI * PFN_wglMakeCurrent) (HDC, HGLRC) |
Definition at line 90 of file wgl_context.h.
typedef BOOL(WINAPI * PFN_wglShareLists) (HGLRC, HGLRC) |
Definition at line 91 of file wgl_context.h.
typedef HGLRC(WINAPI * PFNWGLCREATECONTEXTATTRIBSARBPROC) (HDC, HGLRC, const int *) |
Definition at line 83 of file wgl_context.h.
typedef const char*(WINAPI * PFNWGLGETEXTENSIONSSTRINGARBPROC) (HDC) |
Definition at line 82 of file wgl_context.h.
typedef const char*(WINAPI * PFNWGLGETEXTENSIONSSTRINGEXTPROC) (void) |
Definition at line 81 of file wgl_context.h.
typedef BOOL(WINAPI * PFNWGLGETPIXELFORMATATTRIBIVARBPROC) (HDC, int, int, UINT, const int *, int *) |
Definition at line 80 of file wgl_context.h.
typedef BOOL(WINAPI * PFNWGLSWAPINTERVALEXTPROC) (int) |
Definition at line 79 of file wgl_context.h.
GLFWbool _glfwCreateContextWGL | ( | _GLFWwindow * | window, |
const _GLFWctxconfig * | ctxconfig, | ||
const _GLFWfbconfig * | fbconfig | ||
) |
Definition at line 478 of file wgl_context.c.
Definition at line 343 of file wgl_context.c.
Definition at line 463 of file wgl_context.c.