zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
visualinfo.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <GL/glew.h>
#include <GL/glxew.h>

Go to the source code of this file.

Typedefs

typedef struct GLContextStruct GLContext
 

Functions

GLboolean CreateContext (GLContext *ctx)
 
void DestroyContext (GLContext *ctx)
 
void InitContext (GLContext *ctx)
 
int main (int argc, char **argv)
 
GLboolean ParseArgs (int argc, char **argv)
 
void PrintExtensions (const char *s)
 
void VisualInfo (GLContext *ctx)
 

Variables

char * display = NULL
 
int displaystdout = 0
 
int drawableonly = 0
 
FILE * file = 0
 
int showall = 0
 
int verbose = 0
 
int visual = -1
 

Typedef Documentation

typedef struct GLContextStruct GLContext

Function Documentation

GLboolean CreateContext ( GLContext ctx)
void DestroyContext ( GLContext ctx)

Definition at line 1120 of file visualinfo.c.

References glXDestroyContext, NULL, XCloseDisplay, and XDestroyWindow.

Referenced by main().

void InitContext ( GLContext ctx)

Definition at line 1079 of file visualinfo.c.

References NULL.

Referenced by alcCreateContext(), and main().

GLboolean ParseArgs ( int  argc,
char **  argv 
)

Definition at line 1131 of file visualinfo.c.

References display, displaystdout, GL_FALSE, GL_TRUE, int, NULL, showall, and visual.

Referenced by main().

void PrintExtensions ( const char *  s)

Definition at line 206 of file visualinfo.c.

References file, i, and int.

Referenced by main().

Variable Documentation

int displaystdout = 0

Definition at line 81 of file visualinfo.c.

Referenced by main(), and ParseArgs().

int drawableonly = 0

Definition at line 83 of file visualinfo.c.

int showall = 0

Definition at line 80 of file visualinfo.c.

Referenced by ParseArgs().

int verbose = 0

Definition at line 82 of file visualinfo.c.

Referenced by main(), test_one_file(), and VisualInfo().

int visual = -1

Definition at line 86 of file visualinfo.c.

Referenced by main(), and ParseArgs().