TinyGL 0.4.1 for MinGW
Data Structures | Functions
glx.c File Reference
#include <GL/glx.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <X11/extensions/XShm.h>
#include "zgl.h"

Go to the source code of this file.

Data Structures

struct  TinyGLXContext
 

Functions

Bool glXQueryExtension (Display *dpy, int *errorb, int *event)
 
XVisualInfo * glXChooseVisual (Display *dpy, int screen, int *attribList)
 
GLXContext glXCreateContext (Display *dpy, XVisualInfo *vis, GLXContext shareList, Bool direct)
 
void glXDestroyContext (Display *dpy, GLXContext ctx1)
 
int glX_resize_viewport (GLContext *c, int *xsize_ptr, int *ysize_ptr)
 
Bool glXMakeCurrent (Display *dpy, GLXDrawable drawable, GLXContext ctx1)
 
void glXSwapBuffers (Display *dpy, GLXDrawable drawable)
 
void glXWaitGL (void)
 
void glXWaitX (void)
 

Function Documentation

◆ glX_resize_viewport()

int glX_resize_viewport ( GLContext c,
int *  xsize_ptr,
int *  ysize_ptr 
)

Definition at line 220 of file glx.c.

◆ glXChooseVisual()

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

Definition at line 30 of file glx.c.

◆ glXCreateContext()

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

Definition at line 57 of file glx.c.

◆ glXDestroyContext()

void glXDestroyContext ( Display *  dpy,
GLXContext  ctx1 
)

Definition at line 72 of file glx.c.

◆ glXMakeCurrent()

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

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.

◆ glXSwapBuffers()

void glXSwapBuffers ( Display *  dpy,
GLXDrawable  drawable 
)

Definition at line 372 of file glx.c.

◆ glXWaitGL()

void glXWaitGL ( void  )

Definition at line 407 of file glx.c.

◆ glXWaitX()

void glXWaitX ( void  )

Definition at line 411 of file glx.c.