mirror of
https://github.com/glfw/glfw.git
synced 2024-11-29 13:32:01 +00:00
Formatting (no code changes).
This commit is contained in:
parent
d46b222e08
commit
9b443e5bfd
@ -31,12 +31,9 @@
|
||||
#ifndef _platform_h_
|
||||
#define _platform_h_
|
||||
|
||||
|
||||
// This is the X11 version of GLFW
|
||||
#define _GLFW_X11
|
||||
|
||||
|
||||
// Include files
|
||||
#include <sys/time.h>
|
||||
#include <unistd.h>
|
||||
#include <signal.h>
|
||||
@ -92,10 +89,21 @@ typedef XID GLXFBConfigIDSGIX;
|
||||
typedef struct __GLXFBConfigRec* GLXFBConfigSGIX;
|
||||
|
||||
/* Function signatures for GLX_SGIX_fbconfig */
|
||||
typedef int ( * PFNGLXGETFBCONFIGATTRIBSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, int attribute, 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);
|
||||
typedef int (*PFNGLXGETFBCONFIGATTRIBSGIXPROC)(Display* dpy,
|
||||
GLXFBConfigSGIX config,
|
||||
int attribute,
|
||||
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 */
|
||||
#define GLX_WINDOW_BIT_SGIX 0x00000001
|
||||
@ -125,7 +133,11 @@ typedef XVisualInfo * ( * PFNGLXGETVISUALFROMFBCONFIGSGIXPROC) (Display *dpy, GL
|
||||
#define GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x0002
|
||||
|
||||
/* 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*/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user