|
|
@ -31,12 +31,9 @@ |
|
|
|
#ifndef _platform_h_ |
|
|
|
#ifndef _platform_h_ |
|
|
|
#define _platform_h_ |
|
|
|
#define _platform_h_ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// This is the X11 version of GLFW
|
|
|
|
// This is the X11 version of GLFW
|
|
|
|
#define _GLFW_X11 |
|
|
|
#define _GLFW_X11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Include files
|
|
|
|
|
|
|
|
#include <sys/time.h> |
|
|
|
#include <sys/time.h> |
|
|
|
#include <unistd.h> |
|
|
|
#include <unistd.h> |
|
|
|
#include <signal.h> |
|
|
|
#include <signal.h> |
|
|
@ -92,10 +89,21 @@ typedef XID GLXFBConfigIDSGIX; |
|
|
|
typedef struct __GLXFBConfigRec* GLXFBConfigSGIX; |
|
|
|
typedef struct __GLXFBConfigRec* GLXFBConfigSGIX; |
|
|
|
|
|
|
|
|
|
|
|
/* Function signatures for GLX_SGIX_fbconfig */ |
|
|
|
/* Function signatures for GLX_SGIX_fbconfig */ |
|
|
|
typedef int ( * PFNGLXGETFBCONFIGATTRIBSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, int attribute, int *value); |
|
|
|
typedef int (*PFNGLXGETFBCONFIGATTRIBSGIXPROC)(Display* dpy, |
|
|
|
typedef GLXFBConfigSGIX * ( * PFNGLXCHOOSEFBCONFIGSGIXPROC) (Display *dpy, int screen, int *attrib_list, int *nelements); |
|
|
|
GLXFBConfigSGIX config, |
|
|
|
typedef GLXContext ( * PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, int render_type, GLXContext share_list, Bool direct); |
|
|
|
int attribute, |
|
|
|
typedef XVisualInfo * ( * PFNGLXGETVISUALFROMFBCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config); |
|
|
|
int* value); |
|
|
|
|
|
|
|
typedef GLXFBConfigSGIX* (*PFNGLXCHOOSEFBCONFIGSGIXPROC)(Display* dpy, |
|
|
|
|
|
|
|
int screen, |
|
|
|
|
|
|
|
int* attrib_list, |
|
|
|
|
|
|
|
int* nelements); |
|
|
|
|
|
|
|
typedef GLXContext (*PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC)(Display* dpy, |
|
|
|
|
|
|
|
GLXFBConfigSGIX config, |
|
|
|
|
|
|
|
int render_type, |
|
|
|
|
|
|
|
GLXContext share_list, |
|
|
|
|
|
|
|
Bool direct); |
|
|
|
|
|
|
|
typedef XVisualInfo* (*PFNGLXGETVISUALFROMFBCONFIGSGIXPROC)(Display* dpy, |
|
|
|
|
|
|
|
GLXFBConfigSGIX config); |
|
|
|
|
|
|
|
|
|
|
|
/* Tokens for GLX_SGIX_fbconfig */ |
|
|
|
/* Tokens for GLX_SGIX_fbconfig */ |
|
|
|
#define GLX_WINDOW_BIT_SGIX 0x00000001 |
|
|
|
#define GLX_WINDOW_BIT_SGIX 0x00000001 |
|
|
@ -125,7 +133,11 @@ typedef XVisualInfo * ( * PFNGLXGETVISUALFROMFBCONFIGSGIXPROC) (Display *dpy, GL |
|
|
|
#define GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x0002 |
|
|
|
#define GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x0002 |
|
|
|
|
|
|
|
|
|
|
|
/* Prototype for glXCreateContextAttribs */ |
|
|
|
/* Prototype for glXCreateContextAttribs */ |
|
|
|
typedef GLXContext (*PFNGLXCREATECONTEXTATTRIBSARBPROC)( Display *display, GLXFBConfig config, GLXContext share_context, Bool direct, const int *attrib_list); |
|
|
|
typedef GLXContext (*PFNGLXCREATECONTEXTATTRIBSARBPROC)(Display* display, |
|
|
|
|
|
|
|
GLXFBConfig config, |
|
|
|
|
|
|
|
GLXContext share_context, |
|
|
|
|
|
|
|
Bool direct, |
|
|
|
|
|
|
|
const int* attrib_list); |
|
|
|
|
|
|
|
|
|
|
|
#endif /*GLX_ARB_create_context*/ |
|
|
|
#endif /*GLX_ARB_create_context*/ |
|
|
|
|
|
|
|
|
|
|
|