#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <GL/gl.h>
Go to the source code of this file.
|
enum | _GLX_CONFIGS {
GLX_USE_GL = 1
, GLX_BUFFER_SIZE = 2
, GLX_LEVEL = 3
, GLX_RGBA = 4
,
GLX_DOUBLEBUFFER = 5
, GLX_STEREO = 6
, GLX_AUX_BUFFERS = 7
, GLX_RED_SIZE = 8
,
GLX_GREEN_SIZE = 9
, GLX_BLUE_SIZE = 10
, GLX_ALPHA_SIZE = 11
, GLX_DEPTH_SIZE = 12
,
GLX_STENCIL_SIZE = 13
, GLX_ACCUM_RED_SIZE = 14
, GLX_ACCUM_GREEN_SIZE = 15
, GLX_ACCUM_BLUE_SIZE = 16
,
GLX_ACCUM_ALPHA_SIZE = 17
, GLX_X_VISUAL_TYPE_EXT = 0x22
, GLX_TRANSPARENT_TYPE_EXT = 0x23
, GLX_TRANSPARENT_INDEX_VALUE_EXT = 0x24
,
GLX_TRANSPARENT_RED_VALUE_EXT = 0x25
, GLX_TRANSPARENT_GREEN_VALUE_EXT = 0x26
, GLX_TRANSPARENT_BLUE_VALUE_EXT = 0x27
, GLX_TRANSPARENT_ALPHA_VALUE_EXT = 0x28
} |
|
|
XVisualInfo * | glXChooseVisual (Display *dpy, int screen, int *attribList) |
|
GLXContext | glXCreateContext (Display *dpy, XVisualInfo *vis, GLXContext shareList, Bool direct) |
|
void | glXDestroyContext (Display *dpy, GLXContext ctx) |
|
Bool | glXMakeCurrent (Display *dpy, GLXDrawable drawable, GLXContext ctx) |
|
void | glXCopyContext (Display *dpy, GLXContext src, GLXContext dst, GLuint mask) |
|
void | glXSwapBuffers (Display *dpy, GLXDrawable drawable) |
|
GLXPixmap | glXCreateGLXPixmap (Display *dpy, XVisualInfo *visual, Pixmap pixmap) |
|
void | glXDestroyGLXPixmap (Display *dpy, GLXPixmap pixmap) |
|
Bool | glXQueryExtension (Display *dpy, int *errorb, int *event) |
|
Bool | glXQueryVersion (Display *dpy, int *maj, int *min) |
|
Bool | glXIsDirect (Display *dpy, GLXContext ctx) |
|
int | glXGetConfig (Display *dpy, XVisualInfo *visual, int attrib, int *value) |
|
GLXContext | glXGetCurrentContext (void) |
|
GLXDrawable | glXGetCurrentDrawable (void) |
|
void | glXWaitGL (void) |
|
void | glXWaitX (void) |
|
void | glXUseXFont (Font font, int first, int count, int list) |
|
const char * | glXQueryExtensionsString (Display *dpy, int screen) |
|
const char * | glXQueryServerString (Display *dpy, int screen, int name) |
|
const char * | glXGetClientString (Display *dpy, int name) |
|
◆ GLX_BAD_ATTRIBUTE
#define GLX_BAD_ATTRIBUTE 2 |
Definition at line 56 of file glx.h.
◆ GLX_BAD_CONTEXT
#define GLX_BAD_CONTEXT 5 |
Definition at line 59 of file glx.h.
◆ GLX_BAD_ENUM
Definition at line 61 of file glx.h.
◆ GLX_BAD_SCREEN
Definition at line 55 of file glx.h.
◆ GLX_BAD_VALUE
Definition at line 60 of file glx.h.
◆ GLX_BAD_VISUAL
Definition at line 58 of file glx.h.
◆ GLX_DIRECT_COLOR_EXT
#define GLX_DIRECT_COLOR_EXT 0x8003 |
Definition at line 76 of file glx.h.
◆ GLX_EXTENSIONS
Definition at line 69 of file glx.h.
◆ GLX_GRAY_SCALE_EXT
#define GLX_GRAY_SCALE_EXT 0x8006 |
Definition at line 79 of file glx.h.
◆ GLX_NO_EXTENSION
#define GLX_NO_EXTENSION 3 |
Definition at line 57 of file glx.h.
◆ GLX_NONE_EXT
#define GLX_NONE_EXT 0x8000 |
Definition at line 81 of file glx.h.
◆ GLX_PSEUDO_COLOR_EXT
#define GLX_PSEUDO_COLOR_EXT 0x8004 |
Definition at line 77 of file glx.h.
◆ GLX_STATIC_COLOR_EXT
#define GLX_STATIC_COLOR_EXT 0x8005 |
Definition at line 78 of file glx.h.
◆ GLX_STATIC_GRAY_EXT
#define GLX_STATIC_GRAY_EXT 0x8007 |
Definition at line 80 of file glx.h.
◆ GLX_TRANSPARENT_INDEX_EXT
#define GLX_TRANSPARENT_INDEX_EXT 0x8009 |
Definition at line 83 of file glx.h.
◆ GLX_TRANSPARENT_RGB_EXT
#define GLX_TRANSPARENT_RGB_EXT 0x8008 |
Definition at line 82 of file glx.h.
◆ GLX_TRUE_COLOR_EXT
#define GLX_TRUE_COLOR_EXT 0x8002 |
Definition at line 75 of file glx.h.
◆ GLX_VENDOR
Definition at line 67 of file glx.h.
◆ GLX_VERSION
Definition at line 68 of file glx.h.
◆ GLX_VERSION_1_1
#define GLX_VERSION_1_1 1 |
Definition at line 16 of file glx.h.
◆ GLXContext
Definition at line 86 of file glx.h.
◆ GLXContextID
Definition at line 89 of file glx.h.
◆ GLXDrawable
Definition at line 88 of file glx.h.
◆ GLXPixmap
Definition at line 87 of file glx.h.
◆ _GLX_CONFIGS
Enumerator |
---|
GLX_USE_GL | |
GLX_BUFFER_SIZE | |
GLX_LEVEL | |
GLX_RGBA | |
GLX_DOUBLEBUFFER | |
GLX_STEREO | |
GLX_AUX_BUFFERS | |
GLX_RED_SIZE | |
GLX_GREEN_SIZE | |
GLX_BLUE_SIZE | |
GLX_ALPHA_SIZE | |
GLX_DEPTH_SIZE | |
GLX_STENCIL_SIZE | |
GLX_ACCUM_RED_SIZE | |
GLX_ACCUM_GREEN_SIZE | |
GLX_ACCUM_BLUE_SIZE | |
GLX_ACCUM_ALPHA_SIZE | |
GLX_X_VISUAL_TYPE_EXT | |
GLX_TRANSPARENT_TYPE_EXT | |
GLX_TRANSPARENT_INDEX_VALUE_EXT | |
GLX_TRANSPARENT_RED_VALUE_EXT | |
GLX_TRANSPARENT_GREEN_VALUE_EXT | |
GLX_TRANSPARENT_BLUE_VALUE_EXT | |
GLX_TRANSPARENT_ALPHA_VALUE_EXT | |
Definition at line 22 of file glx.h.
◆ glXChooseVisual()
XVisualInfo * glXChooseVisual |
( |
Display * |
dpy, |
|
|
int |
screen, |
|
|
int * |
attribList |
|
) |
| |
Definition at line 30 of file glx.c.
◆ glXCopyContext()
◆ glXCreateContext()
Definition at line 57 of file glx.c.
◆ glXCreateGLXPixmap()
GLXPixmap glXCreateGLXPixmap |
( |
Display * |
dpy, |
|
|
XVisualInfo * |
visual, |
|
|
Pixmap |
pixmap |
|
) |
| |
◆ glXDestroyContext()
void glXDestroyContext |
( |
Display * |
dpy, |
|
|
GLXContext |
ctx |
|
) |
| |
Definition at line 72 of file glx.c.
◆ glXDestroyGLXPixmap()
void glXDestroyGLXPixmap |
( |
Display * |
dpy, |
|
|
GLXPixmap |
pixmap |
|
) |
| |
◆ glXGetClientString()
const char * glXGetClientString |
( |
Display * |
dpy, |
|
|
int |
name |
|
) |
| |
◆ glXGetConfig()
int glXGetConfig |
( |
Display * |
dpy, |
|
|
XVisualInfo * |
visual, |
|
|
int |
attrib, |
|
|
int * |
value |
|
) |
| |
◆ glXGetCurrentContext()
◆ glXGetCurrentDrawable()
◆ glXIsDirect()
Bool glXIsDirect |
( |
Display * |
dpy, |
|
|
GLXContext |
ctx |
|
) |
| |
◆ glXMakeCurrent()
◆ glXQueryExtension()
Bool glXQueryExtension |
( |
Display * |
dpy, |
|
|
int * |
errorb, |
|
|
int * |
event |
|
) |
| |
Definition at line 24 of file glx.c.
◆ glXQueryExtensionsString()
const char * glXQueryExtensionsString |
( |
Display * |
dpy, |
|
|
int |
screen |
|
) |
| |
◆ glXQueryServerString()
const char * glXQueryServerString |
( |
Display * |
dpy, |
|
|
int |
screen, |
|
|
int |
name |
|
) |
| |
◆ glXQueryVersion()
Bool glXQueryVersion |
( |
Display * |
dpy, |
|
|
int * |
maj, |
|
|
int * |
min |
|
) |
| |
◆ glXSwapBuffers()
void glXSwapBuffers |
( |
Display * |
dpy, |
|
|
GLXDrawable |
drawable |
|
) |
| |
◆ glXUseXFont()
void glXUseXFont |
( |
Font |
font, |
|
|
int |
first, |
|
|
int |
count, |
|
|
int |
list |
|
) |
| |
◆ glXWaitGL()
◆ glXWaitX()