arbeit
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

wglinfo.c File Reference

#include <stdio.h>
#include <windows.h>
#include <GL/gl.h>
#include <GL/glu.h>

Go to the source code of this file.

Defines

#define WGL_DRAW_TO_PBUFFER_ARB   0x202D
#define WGL_NUMBER_PIXEL_FORMATS_ARB   0x2000

Typedefs

typedef const char *APIENTRY * wglGetExtensionsStringARBPROC (HDC hdc)
typedef const char *APIENTRY * wglGetExtensionsStringEXTPROC ()
typedef int iPixelFormat
typedef int int iLayerPlane
typedef int int UINT nAttributes
typedef int int UINT const
int * 
piAttributes
typedef int int UINT const
int int * 
piValues
typedef const int * piAttribIList
typedef const int const FLOAT * pfAttribFList
typedef const int const FLOAT
UINT 
nMaxFormats
typedef const int const FLOAT
UINT int * 
piFormats
typedef const int const FLOAT
UINT int UINT * 
nNumFormats

Functions

typedef BOOL (APIENTRY *wglGetPixelFormatAttribivARBPROC)(HDC hdc
void VisualInfo (HDC hDC, int verbose)
LONG WINAPI WindowProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
HWND CreateGLWindow (char *title, int x, int y, int width, int height, BYTE type, DWORD flags)
void PrintExtensions (char *s)
int main (int argc, char **argv)

Variables

int drawableonly = 0
int pixelformatok = 0
int dontcreatecontext = 0
int displaystdout = 0
int verbose = 0
FILE * file = stdout
wglGetExtensionsStringARBPROC wglGetExtensionsStringARB = NULL
wglGetExtensionsStringEXTPROC wglGetExtensionsStringEXT = NULL
wglGetPixelFormatAttribivARBPROC wglGetPixelFormatAttribivARB = NULL
wglChoosePixelFormatARBPROC wglChoosePixelFormatARB = NULL


Define Documentation

#define WGL_DRAW_TO_PBUFFER_ARB   0x202D
 

Definition at line 53 of file wglinfo.c.

Referenced by main().

#define WGL_NUMBER_PIXEL_FORMATS_ARB   0x2000
 

Definition at line 54 of file wglinfo.c.

Referenced by main().


Typedef Documentation

typedef int int iLayerPlane
 

Definition at line 58 of file wglinfo.c.

typedef int iPixelFormat
 

Definition at line 58 of file wglinfo.c.

typedef int int UINT nAttributes
 

Definition at line 58 of file wglinfo.c.

typedef const int const FLOAT UINT nMaxFormats
 

Definition at line 59 of file wglinfo.c.

typedef const int const FLOAT UINT int UINT* nNumFormats
 

Definition at line 59 of file wglinfo.c.

typedef const int const FLOAT* pfAttribFList
 

Definition at line 59 of file wglinfo.c.

typedef const int* piAttribIList
 

Definition at line 59 of file wglinfo.c.

typedef int int UINT const int* piAttributes
 

Definition at line 58 of file wglinfo.c.

typedef const int const FLOAT UINT int* piFormats
 

Definition at line 59 of file wglinfo.c.

typedef int int UINT const int int* piValues
 

Definition at line 58 of file wglinfo.c.

typedef const char* APIENTRY* wglGetExtensionsStringARBPROC(HDC hdc)
 

Definition at line 56 of file wglinfo.c.

Referenced by main().

typedef const char* APIENTRY* wglGetExtensionsStringEXTPROC()
 

Definition at line 57 of file wglinfo.c.

Referenced by main().


Function Documentation

typedef BOOL APIENTRY *  wglChoosePixelFormatARBPROC  ) 
 

HWND CreateGLWindow char *  title,
int  x,
int  y,
int  width,
int  height,
BYTE  type,
DWORD  flags
 

Definition at line 219 of file wglinfo.c.

References height, pixelformatok, width, WindowProc(), x, and y.

Referenced by main().

int main int  argc,
char **  argv
 

Definition at line 333 of file wglinfo.c.

References CreateGLWindow(), displaystdout, dontcreatecontext, drawableonly, file, GL_EXTENSIONS, GL_RENDERER, GL_TRUE, GL_VENDOR, GL_VERSION, glGetString(), pixelformatok, PrintExtensions(), value, verbose, VisualInfo(), WGL_DRAW_TO_PBUFFER_ARB, WGL_NUMBER_PIXEL_FORMATS_ARB, wglChoosePixelFormatARB, wglGetExtensionsStringARB, wglGetExtensionsStringARBPROC, wglGetExtensionsStringEXT, wglGetExtensionsStringEXTPROC, and wglGetPixelFormatAttribivARB.

void PrintExtensions char *  s  ) 
 

Definition at line 296 of file wglinfo.c.

References file, s, and t.

Referenced by main().

void VisualInfo HDC  hDC,
int  verbose
 

Definition at line 67 of file wglinfo.c.

References drawableonly, file, and verbose.

Referenced by main().

LONG WINAPI WindowProc HWND  hWnd,
UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam
 

Definition at line 185 of file wglinfo.c.

Referenced by CreateGLWindow().


Variable Documentation

int displaystdout = 0
 

Definition at line 49 of file wglinfo.c.

Referenced by main().

int dontcreatecontext = 0
 

Definition at line 48 of file wglinfo.c.

Referenced by main().

int drawableonly = 0
 

Definition at line 46 of file wglinfo.c.

Referenced by main(), and VisualInfo().

FILE* file = stdout
 

Definition at line 51 of file wglinfo.c.

Referenced by SlicerBase::confMenu(), PShaderWin::confMenu(), main(), PrintExtensions(), Nrro::readNrrd(), and VisualInfo().

int pixelformatok = 0
 

Definition at line 47 of file wglinfo.c.

Referenced by CreateGLWindow(), and main().

int verbose = 0
 

Definition at line 50 of file wglinfo.c.

Referenced by main(), and VisualInfo().

wglChoosePixelFormatARBPROC wglChoosePixelFormatARB = NULL
 

Definition at line 64 of file wglinfo.c.

Referenced by main().

wglGetExtensionsStringARBPROC wglGetExtensionsStringARB = NULL
 

Definition at line 61 of file wglinfo.c.

Referenced by main().

wglGetExtensionsStringEXTPROC wglGetExtensionsStringEXT = NULL
 

Definition at line 62 of file wglinfo.c.

Referenced by main().

wglGetPixelFormatAttribivARBPROC wglGetPixelFormatAttribivARB = NULL
 

Definition at line 63 of file wglinfo.c.

Referenced by main().


Send questions, comments, and bug reports to:
jmk