#52 Possible fix for getting shaders to work on macOS
This commit is contained in:
parent
e295515694
commit
7d4075e314
6 changed files with 891 additions and 3 deletions
|
@ -1,14 +1,13 @@
|
|||
#ifndef OPENGL_UTILS_H
|
||||
#define OPENGL_UTILS_H
|
||||
#include "glcorearb.h"
|
||||
#include "wglext.h"
|
||||
|
||||
// wgl
|
||||
typedef HGLRC (APIENTRYP PFNWGLCREATECONTEXTPROC)(HDC);
|
||||
typedef BOOL (APIENTRYP PFNWGLDELETECONTEXTPROC)(HGLRC);
|
||||
typedef PROC (APIENTRYP PFNWGLGETPROCADDRESSPROC)(LPCSTR);
|
||||
typedef BOOL (APIENTRYP PFNWGLMAKECURRENTPROC)(HDC, HGLRC);
|
||||
typedef void (APIENTRYP PFNWGLSWAPINTERVALEXTPROC) (int interval);
|
||||
typedef const char* (APIENTRYP PFNWGLGETEXTENSIONSSTRINGARBPROC)(HDC hdc);
|
||||
|
||||
extern PFNWGLCREATECONTEXTPROC xwglCreateContext;
|
||||
extern PFNWGLDELETECONTEXTPROC xwglDeleteContext;
|
||||
|
@ -16,6 +15,7 @@ extern PFNWGLGETPROCADDRESSPROC xwglGetProcAddress;
|
|||
extern PFNWGLMAKECURRENTPROC xwglMakeCurrent;
|
||||
extern PFNWGLSWAPINTERVALEXTPROC wglSwapIntervalEXT;
|
||||
extern PFNWGLGETEXTENSIONSSTRINGARBPROC wglGetExtensionsStringARB;
|
||||
extern PFNWGLCREATECONTEXTATTRIBSARBPROC wglCreateContextAttribsARB;
|
||||
|
||||
|
||||
//compat profile only --->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue