TinyGL 0.4.1 for MinGW
Macros | Typedefs | Enumerations | Functions
glx.h File Reference
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <GL/gl.h>

Go to the source code of this file.

Macros

#define GLX_VERSION_1_1   1
 
#define GLX_BAD_SCREEN   1
 
#define GLX_BAD_ATTRIBUTE   2
 
#define GLX_NO_EXTENSION   3
 
#define GLX_BAD_VISUAL   4
 
#define GLX_BAD_CONTEXT   5
 
#define GLX_BAD_VALUE   6
 
#define GLX_BAD_ENUM   7
 
#define GLX_VENDOR   1
 
#define GLX_VERSION   2
 
#define GLX_EXTENSIONS   3
 
#define GLX_TRUE_COLOR_EXT   0x8002
 
#define GLX_DIRECT_COLOR_EXT   0x8003
 
#define GLX_PSEUDO_COLOR_EXT   0x8004
 
#define GLX_STATIC_COLOR_EXT   0x8005
 
#define GLX_GRAY_SCALE_EXT   0x8006
 
#define GLX_STATIC_GRAY_EXT   0x8007
 
#define GLX_NONE_EXT   0x8000
 
#define GLX_TRANSPARENT_RGB_EXT   0x8008
 
#define GLX_TRANSPARENT_INDEX_EXT   0x8009
 

Typedefs

typedef void * GLXContext
 
typedef Pixmap GLXPixmap
 
typedef Drawable GLXDrawable
 
typedef XID GLXContextID
 

Enumerations

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
}
 

Functions

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)
 

Macro Definition Documentation

◆ 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

#define GLX_BAD_ENUM   7

Definition at line 61 of file glx.h.

◆ GLX_BAD_SCREEN

#define GLX_BAD_SCREEN   1

Definition at line 55 of file glx.h.

◆ GLX_BAD_VALUE

#define GLX_BAD_VALUE   6

Definition at line 60 of file glx.h.

◆ GLX_BAD_VISUAL

#define GLX_BAD_VISUAL   4

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

#define GLX_EXTENSIONS   3

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

#define GLX_VENDOR   1

Definition at line 67 of file glx.h.

◆ GLX_VERSION

#define GLX_VERSION   2

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.

Typedef Documentation

◆ GLXContext

typedef void* GLXContext

Definition at line 86 of file glx.h.

◆ GLXContextID

typedef XID GLXContextID

Definition at line 89 of file glx.h.

◆ GLXDrawable

typedef Drawable GLXDrawable

Definition at line 88 of file glx.h.

◆ GLXPixmap

typedef Pixmap GLXPixmap

Definition at line 87 of file glx.h.

Enumeration Type Documentation

◆ _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.

Function Documentation

◆ glXChooseVisual()

XVisualInfo * glXChooseVisual ( Display *  dpy,
int  screen,
int *  attribList 
)

Definition at line 30 of file glx.c.

◆ glXCopyContext()

void glXCopyContext ( Display *  dpy,
GLXContext  src,
GLXContext  dst,
GLuint  mask 
)

◆ glXCreateContext()

GLXContext glXCreateContext ( Display *  dpy,
XVisualInfo *  vis,
GLXContext  shareList,
Bool  direct 
)

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()

GLXContext glXGetCurrentContext ( void  )

◆ glXGetCurrentDrawable()

GLXDrawable glXGetCurrentDrawable ( void  )

◆ glXIsDirect()

Bool glXIsDirect ( Display *  dpy,
GLXContext  ctx 
)

◆ glXMakeCurrent()

Bool glXMakeCurrent ( Display *  dpy,
GLXDrawable  drawable,
GLXContext  ctx 
)

Definition at line 258 of file glx.c.

◆ 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 
)

Definition at line 372 of file glx.c.

◆ glXUseXFont()

void glXUseXFont ( Font  font,
int  first,
int  count,
int  list 
)

◆ glXWaitGL()

void glXWaitGL ( void  )

Definition at line 407 of file glx.c.

◆ glXWaitX()

void glXWaitX ( void  )

Definition at line 411 of file glx.c.