Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Windows.h>
- #include <glGL.h>
- #include "glcorearb.h"
- #include "glext.h"
- #include "wglext.h"
- ...
- wglCreateContextAttribsARB = // Not recognised
- (PFNWGLCREATECONTEXTATTRIBSARBPROC) wglGetProcAddress("wglCreateContextAttribsARB"); // Recognised (Why this and not the function name?)
- typedef HGLRC (WINAPI * PFNWGLCREATECONTEXTATTRIBSARBPROC) (HDC hDC, HGLRC hShareContext, const int *attribList);
- #ifdef WGL_WGLEXT_PROTOTYPES
- HGLRC WINAPI wglCreateContextAttribsARB (HDC hDC, HGLRC hShareContext, const int *attribList);
- #endif
- PFNWGLCREATECONTEXTATTRIBSARBPROC wglCreateContextAttribsARB =
- (PFNWGLCREATECONTEXTATTRIBSARBPROC) wglGetProcAddress("wglCreateContextAttribsARB");
Add Comment
Please, Sign In to add comment