Guest User

Untitled

a guest
Nov 18th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. #include <Windows.h>
  2. #include <glGL.h>
  3. #include "glcorearb.h"
  4. #include "glext.h"
  5. #include "wglext.h"
  6. ...
  7. wglCreateContextAttribsARB = // Not recognised
  8. (PFNWGLCREATECONTEXTATTRIBSARBPROC) wglGetProcAddress("wglCreateContextAttribsARB"); // Recognised (Why this and not the function name?)
  9.  
  10. typedef HGLRC (WINAPI * PFNWGLCREATECONTEXTATTRIBSARBPROC) (HDC hDC, HGLRC hShareContext, const int *attribList);
  11. #ifdef WGL_WGLEXT_PROTOTYPES
  12. HGLRC WINAPI wglCreateContextAttribsARB (HDC hDC, HGLRC hShareContext, const int *attribList);
  13. #endif
  14.  
  15. PFNWGLCREATECONTEXTATTRIBSARBPROC wglCreateContextAttribsARB =
  16. (PFNWGLCREATECONTEXTATTRIBSARBPROC) wglGetProcAddress("wglCreateContextAttribsARB");
Add Comment
Please, Sign In to add comment