/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 1.3u-20000712-1502 (Alpha 3)
 * 
 * This file is not intended to be easily readable and contains a number of 
 * coding conventions designed to improve portability and efficiency. Do not make
 * changes to this file unless you know what you are doing--modify the SWIG 
 * interface file instead. 
 * ----------------------------------------------------------------------------- */

#define SWIGPYTHON
/***********************************************************************
 * common.swg
 *
 *     This file contains generic SWIG runtime support for pointer
 *     type checking as well as a few commonly used macros to control
 *     external linkage.
 *
 * Author : David Beazley (beazley@cs.uchicago.edu)
 *
 * Copyright (c) 1999-2000, The University of Chicago
 * 
 * This file may be freely redistributed without license or fee provided
 * this copyright message remains intact.
 ************************************************************************/

#include <string.h>

#if defined(_WIN32) || defined(__WIN32__)
#       if defined(_MSC_VER)
#               if defined(STATIC_LINKED)
#                       define SWIGEXPORT(a) a
#               else
#                       define SWIGEXPORT(a) __declspec(dllexport) a
#               endif
#       else
#               if defined(__BORLANDC__)
#                       define SWIGEXPORT(a) a _export
#               else
#                       define SWIGEXPORT(a) a
#       endif
#endif
#else
#       define SWIGEXPORT(a) a
#endif

#ifdef SWIG_GLOBAL
#define SWIGRUNTIME(a) SWIGEXPORT(a)
#else
#define SWIGRUNTIME(a) static a
#endif

#ifdef __cplusplus
extern "C" {
#endif

typedef struct swig_type_info {
  char  *name;                 
  void *(*converter)(void *);
  char  *str;
  struct swig_type_info  *next;
  struct swig_type_info  *prev;
} swig_type_info;

#ifdef SWIG_NOINCLUDE
SWIGEXPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
SWIGEXPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
SWIGEXPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
#else

static swig_type_info *swig_type_list = 0;

/* Register a type mapping with the type-checking */
SWIGRUNTIME(swig_type_info *)
SWIG_TypeRegister(swig_type_info *ti)
{
  swig_type_info *tc, *head, *ret, *next;
  /* Check to see if this type has already been registered */
  tc = swig_type_list;
  while (tc) {
    if (strcmp(tc->name, ti->name) == 0) {
      /* Already exists in the table.  Just add additional types to the list */
      head = tc;
      next = tc->next;
      goto l1;
    }
    tc = tc->prev;
  }
  head = ti;
  next = 0;

  /* Place in list */
  ti->prev = swig_type_list;
  swig_type_list = ti;

  /* Build linked lists */
 l1:
  ret = head;
  tc = ti + 1;
  /* Patch up the rest of the links */
  while (tc->name) {
    head->next = tc;
    tc->prev = head;
    head = tc;
    tc++;
  }
  head->next = next;
  return ret;
}

/* Check the typename */
SWIGRUNTIME(swig_type_info *) 
SWIG_TypeCheck(char *c, swig_type_info *ty)
{
  swig_type_info *s;
  if (!ty) return 0;        /* Void pointer */
  s = ty->next;             /* First element always just a name */
  while (s) {
    if (strcmp(s->name,c) == 0) {
      if (s == ty->next) return s;
      /* Move s to the top of the linked list */
      s->prev->next = s->next;
      if (s->next) {
	s->next->prev = s->prev;
      }
      /* Insert s as second element in the list */
      s->next = ty->next;
      if (ty->next) ty->next->prev = s;
      ty->next = s;
      return s;
    }
    s = s->next;
  }
  return 0;
}

/* Cast a pointer (needed for C++ inheritance */
SWIGRUNTIME(void *) 
SWIG_TypeCast(swig_type_info *ty, void *ptr) 
{
  if ((!ty) || (!ty->converter)) return ptr;
  return (*ty->converter)(ptr);
}

/* Search for a swig_type_info structure */
SWIGRUNTIME(void *)
SWIG_TypeQuery(const char *name) {
  swig_type_info *ty = swig_type_list;
  while (ty) {
    if (ty->str && (strcmp(name,ty->str) == 0)) return ty;
    if (ty->name && (strcmp(name,ty->name) == 0)) return ty;
    ty = ty->prev;
  }
  return 0;
}

#endif

#ifdef __cplusplus
}
#endif



/***********************************************************************
 * python.swg
 *
 *     This file contains the runtime support for Python modules
 *     and includes code for managing global variables and pointer
 *     type checking.
 *
 * Author : David Beazley (beazley@cs.uchicago.edu)
 ************************************************************************/

#include <stdlib.h>
#include "Python.h"

#ifdef __cplusplus
extern "C" {
#endif

#define SWIG_PY_INT     1
#define SWIG_PY_FLOAT   2
#define SWIG_PY_STRING  3
#define SWIG_PY_POINTER 4

/* Constant information structure */
typedef struct swig_const_info {
    int type;
    char *name;
    long lvalue;
    double dvalue;
    void   *pvalue;
    swig_type_info **ptype;
} swig_const_info;

#ifdef SWIG_NOINCLUDE

SWIGEXPORT(PyObject *)        SWIG_newvarlink();
SWIGEXPORT(void)              SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
SWIGEXPORT(int)               SWIG_ConvertPtr(PyObject *, void **, swig_type_info *, int);
SWIGEXPORT(void)              SWIG_MakePtr(char *c, void *, swig_type_info *);
SWIGEXPORT(PyObject *)        SWIG_NewPointerObj(void *, swig_type_info *);
SWIGEXPORT(void)              SWIG_InstallConstants(PyObject *d, swig_const_info constants[]);

#else

/* -----------------------------------------------------------------------------
 * global variable support code.
 * ----------------------------------------------------------------------------- */

typedef struct swig_globalvar {   
  char       *name;                  /* Name of global variable */
  PyObject *(*get_attr)(void);       /* Return the current value */
  int       (*set_attr)(PyObject *); /* Set the value */
  struct swig_globalvar *next;
} swig_globalvar;

typedef struct swig_varlinkobject {
  PyObject_HEAD
  swig_globalvar *vars;
} swig_varlinkobject;

static PyObject *
swig_varlink_repr(swig_varlinkobject *v) {
  v = v;
  return PyString_FromString("<Global variables>");
}

static int
swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) {
  swig_globalvar  *var;
  flags = flags;
  fprintf(fp,"Global variables { ");
  for (var = v->vars; var; var=var->next) {
    fprintf(fp,"%s", var->name);
    if (var->next) fprintf(fp,", ");
  }
  fprintf(fp," }\n");
  return 0;
}

static PyObject *
swig_varlink_getattr(swig_varlinkobject *v, char *n) {
  swig_globalvar *var = v->vars;
  while (var) {
    if (strcmp(var->name,n) == 0) {
      return (*var->get_attr)();
    }
    var = var->next;
  }
  PyErr_SetString(PyExc_NameError,"Unknown C global variable");
  return NULL;
}

static int
swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
  swig_globalvar *var = v->vars;
  while (var) {
    if (strcmp(var->name,n) == 0) {
      return (*var->set_attr)(p);
    }
    var = var->next;
  }
  PyErr_SetString(PyExc_NameError,"Unknown C global variable");
  return 1;
}

statichere PyTypeObject varlinktype = {
  PyObject_HEAD_INIT(0)              
  0,
  "swigvarlink",                      /* Type name    */
  sizeof(swig_varlinkobject),         /* Basic size   */
  0,                                  /* Itemsize     */
  0,                                  /* Deallocator  */ 
  (printfunc) swig_varlink_print,     /* Print        */
  (getattrfunc) swig_varlink_getattr, /* get attr     */
  (setattrfunc) swig_varlink_setattr, /* Set attr     */
  0,                                  /* tp_compare   */
  (reprfunc) swig_varlink_repr,       /* tp_repr      */    
  0,                                  /* tp_as_number */
  0,                                  /* tp_as_mapping*/
  0,                                  /* tp_hash      */
};

/* Create a variable linking object for use later */
SWIGRUNTIME(PyObject *)
SWIG_newvarlink(void) {
  swig_varlinkobject *result = 0;
  result = PyMem_NEW(swig_varlinkobject,1);
  varlinktype.ob_type = &PyType_Type;    /* Patch varlinktype into a PyType */
  result->ob_type = &varlinktype;
  result->vars = 0;
  result->ob_refcnt = 0;
  Py_XINCREF((PyObject *) result);
  return ((PyObject*) result);
}

SWIGRUNTIME(void)
SWIG_addvarlink(PyObject *p, char *name,
	   PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
  swig_varlinkobject *v;
  swig_globalvar *gv;
  v= (swig_varlinkobject *) p;
  gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
  gv->name = (char *) malloc(strlen(name)+1);
  strcpy(gv->name,name);
  gv->get_attr = get_attr;
  gv->set_attr = set_attr;
  gv->next = v->vars;
  v->vars = gv;
}
/* Convert a pointer value */
SWIGRUNTIME(int)
SWIG_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) {
  unsigned long p;
  register int d;
  swig_type_info *tc;
  char  *c;
  static PyObject *SWIG_this = 0;
  int    newref = 0;

  if (!obj || (obj == Py_None)) {
    *ptr = 0;
    return 0;
  }
#ifdef SWIG_COBJECT_TYPES
  if (!(PyCObject_Check(obj))) {
    if (!SWIG_this)
      SWIG_this = PyString_InternFromString("this");
    obj = PyObject_GetAttr(obj,SWIG_this);
    newref = 1;
    if (!obj) goto type_error;
    if (!PyCObject_Check(obj)) {
      Py_DECREF(obj);
      goto type_error;
    }
  } 
  *ptr = PyCObject_AsVoidPtr(obj);
  c = (char *) PyCObject_GetDesc(obj);
  if (newref) Py_DECREF(obj);
  goto cobject;
#else
  if (!(PyString_Check(obj))) {
    if (!SWIG_this)
      SWIG_this = PyString_InternFromString("this");
    obj = PyObject_GetAttr(obj,SWIG_this);
    newref = 1;
    if (!obj) goto type_error;
    if (!PyString_Check(obj)) {
      Py_DECREF(obj);
      goto type_error;
    }
  } 
  c = PyString_AsString(obj);
  p = 0;
  /* Pointer values must start with leading underscore */
  if (*c != '_') {
    *ptr = (void *) 0;
    if (strcmp(c,"NULL") == 0) {
      if (newref) Py_DECREF(obj);
      return 0;
    } else {
      if (newref) Py_DECREF(obj);
      goto type_error;
    }
  }
  c++;
  /* Extract hex value from pointer */
  while ((d = *c)) {
    if ((d >= '0') && (d <= '9'))
      p = (p << 4) + (d - '0');
    else if ((d >= 'a') && (d <= 'f'))
      p = (p << 4) + (d - ('a'-10));
    else
      break; 
    c++;
  }
  *ptr = (void *) p;
  if (newref) Py_DECREF(obj);
#endif

#ifdef SWIG_COBJECT_TYPES
cobject:
#endif

  if (ty) {
    tc = SWIG_TypeCheck(c,ty);
    if (!tc) goto type_error;
    *ptr = SWIG_TypeCast(tc,(void*)p);
  }
  return 0;

type_error:

  if (flags) {
    if (ty) {
      char *temp = (char *) malloc(64+strlen(ty->name));
      sprintf(temp,"Type error. Expected %s", ty->name);
      PyErr_SetString(PyExc_TypeError, temp);
      free((char *) temp);
    } else {
      PyErr_SetString(PyExc_TypeError,"Expected a pointer");
    }
  }
  return -1;
}

/* Take a pointer and convert it to a string */
SWIGRUNTIME(void) 
SWIG_MakePtr(char *c, void *ptr, swig_type_info *ty) {
  static char hex[17] = "0123456789abcdef";
  unsigned long p, s;
  char result[32], *r; 
  r = result;
  p = (unsigned long) ptr;
  if (p > 0) {
    while (p > 0) {
      s = p & 0xf;
      *(r++) = hex[s];
      p = p >> 4;
    }
    *r = '_';
    while (r >= result)
      *(c++) = *(r--);
    strcpy (c, ty->name);
  } else {
    strcpy (c, "NULL");
  }
}

/* Create a new pointer object */
SWIGRUNTIME(PyObject *)
SWIG_NewPointerObj(void *ptr, swig_type_info *type) {
  char result[512];
  PyObject *robj;
  if (!ptr) {
    Py_INCREF(Py_None);
    return Py_None;
  }
#ifdef SWIG_COBJECT_TYPES
  robj = PyCObject_FromVoidPtrAndDesc((void *) ptr, type->name, NULL);
#else
  SWIG_MakePtr(result,ptr,type);
  robj = PyString_FromString(result);
#endif
  return robj;
}

/* Install Constants */
SWIGRUNTIME(void)
SWIG_InstallConstants(PyObject *d, swig_const_info constants[]) {
  int i;
  PyObject *obj;
  for (i = 0; constants[i].type; i++) {
    switch(constants[i].type) {
    case SWIG_PY_INT:
      obj = PyInt_FromLong(constants[i].lvalue);
      break;
    case SWIG_PY_FLOAT:
      obj = PyFloat_FromDouble(constants[i].dvalue);
      break;
    case SWIG_PY_STRING:
      obj = PyString_FromString((char *) constants[i].pvalue);
      break;
    case SWIG_PY_POINTER:
      obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype);
      break;
    default:
      obj = 0;
      break;
    }
    if (obj) {
      PyDict_SetItemString(d,constants[i].name,obj);
      Py_DECREF(obj);
    }
  }
}

#endif

#ifdef __cplusplus
}
#endif



/* -------- TYPES TABLE (BEGIN) -------- */

#define  SWIGTYPE_p_GLYPHMETRICSFLOAT swig_types[0] 
#define  SWIGTYPE_p_q_const__PIXELFORMATDESCRIPTOR swig_types[1] 
#define  SWIGTYPE_p_PIXELFORMATDESCRIPTOR swig_types[2] 
#define  SWIGTYPE_p_LAYERPLANEDESCRIPTOR swig_types[3] 
#define  SWIGTYPE_p_POINTFLOAT swig_types[4] 
static swig_type_info *swig_types[6];

/* -------- TYPES TABLE (END) -------- */


/*-----------------------------------------------
              @(target):= __init___.so
  ------------------------------------------------*/
#define SWIG_init    init__init___

#define SWIG_name    "__init___"

/**
 *
 * WGL Module for PyOpenGL
 * 
 * Date: May 2000
 *
 * Authors: Tarn Weisner Burton <twburton@users.sourceforge.net>
 * 
***/


int __PyObject_AsArray_Size(PyObject* x);

#ifdef NUMERIC

#define _PyObject_AsArray_Size(x) ((x == Py_None) ? 0 : ((PyArray_Check(x)) ? PyArray_Size(x) : __PyObject_AsArray_Size(x)))

#else /* NUMERIC */

#define _PyObject_AsArray_Size(x) ((x == Py_None) ? 0 : __PyObject_AsArray_Size(x))

#endif /* NUMERIC */


#define _PyObject_As(NAME, BASE) BASE* _PyObject_As##NAME(PyObject* source, PyObject** temp, int* len);

#define _PyObject_AsArray_Cleanup(target, temp) if (temp) Py_XDECREF(temp); else PyMem_Del(target)

_PyObject_As(FloatArray, float)

_PyObject_As(DoubleArray, double)

_PyObject_As(CharArray, signed char)

_PyObject_As(UnsignedCharArray, unsigned char)

_PyObject_As(ShortArray, short)

_PyObject_As(UnsignedShortArray, unsigned short)

_PyObject_As(IntArray, int)

_PyObject_As(UnsignedIntArray, unsigned int)

void* _PyObject_AsArray(GLenum type, PyObject* source, PyObject** temp, int* len);



#define PyErr_XPrint() if (PyErr_Occurred()) PyErr_Print()


#if HAS_DYNAMIC_EXT

#define DECLARE_EXT(PROC_NAME, RET, ERROR_RET, PROTO, CALL)\
RET PROC_NAME PROTO\
{\
	typedef RET (APIENTRY *proc_##PROC_NAME) PROTO;\
	proc_##PROC_NAME proc = (proc_##PROC_NAME)GL_GetProcAddress(#PROC_NAME);\
	if (proc) return proc CALL;\
	PyErr_SetGLerror(GL_INVALID_OPERATION);\
	return ERROR_RET;\
}

#define DECLARE_VOID_EXT(PROC_NAME, PROTO, CALL)\
void PROC_NAME PROTO\
{\
	typedef void (APIENTRY *proc_##PROC_NAME) PROTO;\
	proc_##PROC_NAME proc = (proc_##PROC_NAME)GL_GetProcAddress(#PROC_NAME);\
	if (proc) proc CALL;\
	else PyErr_SetGLerror(GL_INVALID_OPERATION);\
}

#else

#define DECLARE_EXT(PROC_NAME, RET, ERROR_RET, PROTO, CALL)\
RET PROC_NAME PROTO\
{\
	PyErr_SetGLerror(GL_INVALID_OPERATION);\
	return ERROR_RET;\
}

#define DECLARE_VOID_EXT(PROC_NAME, PROTO, CALL)\
void PROC_NAME PROTO\
{\
	PyErr_SetGLerror(GL_INVALID_OPERATION);\
}

#endif


#define _PyTuple_From(NAME, BASE) PyObject* _PyTuple_From##NAME(int len, BASE* data);

_PyTuple_From(UnsignedCharArray, unsigned char)

_PyTuple_From(CharArray, signed char)

_PyTuple_From(UnsignedShortArray, unsigned short)

_PyTuple_From(ShortArray, short)

_PyTuple_From(UnsignedIntArray, unsigned int)

_PyTuple_From(IntArray, int)

_PyTuple_From(FloatArray, float)

_PyTuple_From(DoubleArray, double)


#define _PyObject_From(NAME, BASE) PyObject* _PyObject_From##NAME(int nd, int* dims, BASE* data, int own);

_PyObject_From(UnsignedCharArray, unsigned char)

_PyObject_From(CharArray, signed char)

_PyObject_From(UnsignedShortArray, unsigned short)

_PyObject_From(ShortArray, short)

_PyObject_From(UnsignedIntArray, unsigned int)

_PyObject_From(IntArray, int)

_PyObject_From(FloatArray, float)

_PyObject_From(DoubleArray, double)


PyObject* _PyObject_FromArray(GLenum type, int nd, int *dims, void* data, int own);

void* SetupPixelRead(int rank, GLenum format, GLenum type, int *dims);

void SetupPixelWrite(int rank);

void* SetupRawPixelRead(GLenum format, GLenum type, int n, const int *dims, int* size);

void* _PyObject_AsPointer(PyObject* x);

void init_util();

typedef void *PTR;

typedef struct
{
	void (*_decrement)(void* pointer);
	void (*_decrementPointer)(GLenum pname);
	int (*_incrementLock)(void *pointer);
	int (*_incrementPointerLock)(GLenum pname);
	void (*_acquire)(void* pointer);
	void (*_acquirePointer)(GLenum pname);
#if HAS_DYNAMIC_EXT
	PTR (*GL_GetProcAddress)(const char* name);
#endif
	int (*InitExtension)(const char *name, const char** procs);
	PyObject *_GLerror;
	PyObject *_GLUerror;
}  util_API;


static util_API *_util_API = NULL;

#define decrementLock(x) (*_util_API)._decrement(x)
#define decrementPointerLock(x) (*_util_API)._decrementPointer(x)
#define incrementLock(x) (*_util_API)._incrementLock(x)
#define incrementPointerLock(x) (*_util_API)._incrementPointerLock(x)
#define acquire(x) (*_util_API)._acquire(x)
#define acquirePointer(x) (*_util_API)._acquirePointer(x)
#define GLerror (*_util_API)._GLerror
#define GLUerror (*_util_API)._GLUerror
#if HAS_DYNAMIC_EXT
#define GL_GetProcAddress(x) (*_util_API).GL_GetProcAddress(x)
#endif
#define InitExtension(x, y) (*_util_API).InitExtension(x, (const char**)y)


#define PyErr_SetGLerror(code) PyErr_SetObject(GLerror, Py_BuildValue("is", code, gluErrorString(code)));
#define PyErr_SetGLUerror(code) PyErr_SetObject(GLUerror, Py_BuildValue("is", code, gluErrorString(code)));

int _PyObject_Dimension(PyObject* x, int rank);

#define ERROR_MSG_SEP ", "
#define ERROR_MSG_SEP_LEN 2

int GLErrOccurred()
{
	if (PyErr_Occurred()) return 1;

	if (CurrentContextIsValid())
	{
		GLenum error, *errors = NULL;
		char *msg = NULL;
		const char *this_msg;
		int count = 0;
	
		error = glGetError();

		while (error != GL_NO_ERROR)
		{
			this_msg = gluErrorString(error);
			if (count)
			{
				msg = realloc(msg, (strlen(msg) + strlen(this_msg) + ERROR_MSG_SEP_LEN + 1)*sizeof(char));
				strcat(msg, ERROR_MSG_SEP);
				strcat(msg, this_msg);
				
				errors = realloc(errors, (count + 1)*sizeof(GLenum));
			}
			else
			{
				msg = malloc((strlen(this_msg) + 1)*sizeof(char));
				strcpy(msg, this_msg);
				
				errors = malloc(sizeof(GLenum));
			}
			
			errors[count++] = error;
			error = glGetError();
		}
		
		if (count)
		{
			PyErr_SetObject(GLerror, Py_BuildValue("Os", _PyTuple_FromIntArray(count, (int*)errors), msg));
			free(errors);
			free(msg);
			return 1;
		}
	}

	return 0;
}


#if PY_MAJOR_VERSION < 2
#define PyExc_WindowsError PyExc_OSError
#endif

int WGLErrOccurred()
{
	DWORD error = GetLastError();
	if (error != ERROR_SUCCESS)
	{
		LPSTR buffer;
		FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_ALLOCATE_BUFFER, NULL, error, 0, (LPSTR)&buffer, 0, NULL);
		PyErr_SetObject(PyExc_WindowsError, Py_BuildValue("is", error, buffer));
		LocalFree(buffer);
		return 1;
	}

	return 0;
}

PIXELFORMATDESCRIPTOR* new_PIXELFORMATDESCRIPTOR()
{
	PIXELFORMATDESCRIPTOR *result = PyMem_New(PIXELFORMATDESCRIPTOR, 1);
	memset(result, 0, sizeof(PIXELFORMATDESCRIPTOR));
	result->nSize = sizeof(PIXELFORMATDESCRIPTOR);
	result->nVersion = 1;
	return result;
}

void delete_PIXELFORMATDESCRIPTOR(PIXELFORMATDESCRIPTOR *x)
{
	PyMem_Del(x);
}

GLYPHMETRICSFLOAT* new_GLYPHMETRICSFLOAT()
{
	GLYPHMETRICSFLOAT *result = PyMem_New(GLYPHMETRICSFLOAT, 1);
	memset(result, 0, sizeof(GLYPHMETRICSFLOAT));
	return result;
}

void delete_GLYPHMETRICSFLOAT(GLYPHMETRICSFLOAT *x)
{
	PyMem_Del(x);
}

LAYERPLANEDESCRIPTOR* new_LAYERPLANEDESCRIPTOR()
{
	LAYERPLANEDESCRIPTOR *result = PyMem_New(LAYERPLANEDESCRIPTOR, 1);
	memset(result, 0, sizeof(LAYERPLANEDESCRIPTOR));
	result->nSize = sizeof(LAYERPLANEDESCRIPTOR);
	result->nVersion = 1;
	return result;
}

void delete_LAYERPLANEDESCRIPTOR(LAYERPLANEDESCRIPTOR *x)
{
	PyMem_Del(x);
}
 static char _doc_ChoosePixelFormat[] = "ChoosePixelFormat(hdc, ppfd) -> int";
 static char _doc_DescribePixelFormat[] = "DescribePixelFormat(hdc, iPixelFormat, nBytes, ppfd) -> int";
 static char _doc_GetPixelFormat[] = "GetPixelFormat(hdc) -> int";
 static char _doc_SetPixelFormat[] = "SetPixelFormat(hdc, iPixelFormat, ppfd) -> int";
 static char _doc_SwapBuffers[] = "SwapBuffers(hdc) -> BOOL";
 static char _doc_wglCreateContext[] = "wglCreateContext(hdc) -> HGLRC";
 static char _doc_wglCreateLayerContext[] = "wglCreateLayerContext(hdc, iLayerPlane) -> HGLRC";
 static char _doc_wglCopyContext[] = "wglCopyContext(hglrcSrc, hglrcDst, mask) -> BOOL";
 static char _doc_wglDeleteContext[] = "wglDeleteContext(hglrc) -> BOOL";
 static char _doc_wglDescribeLayerPlane[] = "wglDescribeLayerPlane(hdc, iPixelFormat, iLayerPlane, nBytes, plpd) -> BOOL";
 static char _doc_wglGetCurrentContext[] = "wglGetCurrentContext() -> HGLRC";
 static char _doc_wglGetCurrentDC[] = "wglGetCurrentDC() -> HDC";

PyObject* _wglGetLayerPaletteEntries(HDC hdc, int iLayerPlane, int iStart, int cEntries)
{
	COLORREF *pcr = PyMem_New(COLORREF, cEntries);
	int n = wglGetLayerPaletteEntries(hdc, iLayerPlane, iStart, cEntries, pcr);
	PyObject* result;
	
	if (n == 0)
	{
		Py_INCREF(Py_None);
		return Py_None;
	}
	
	result = _PyTuple_FromUnsignedIntArray(n, pcr);
	PyMem_Del(pcr);
	return result;
}
 static char _doc_wglGetLayerPaletteEntries[] = "wglGetLayerPaletteEntries(hdc, iLayerPlane, iStart, cEntries, pcr) -> cr";
 static char _doc_wglGetProcAddress[] = "wglGetProcAddress(lpszProc) -> PROC";
 static char _doc_wglMakeCurrent[] = "wglMakeCurrent(hdc, hglrc) -> BOOL";
 static char _doc_wglRealizeLayerPalette[] = "wglRealizeLayerPalette(hdc, iLayerPlane, bRealize) -> BOOL";
 static char _doc_wglSetLayerPaletteEntries[] = "wglSetLayerPaletteEntries(hdc, iLayerPlane, iStart, cEntries, pcr) -> int";
 static char _doc_wglShareLists[] = "wglShareLists(hglrc1, hglrc2) -> BOOL";
 static char _doc_wglSwapLayerBuffers[] = "wglSwapLayerBuffers(hdc, fuPlanes) -> BOOL";
 static char _doc_wglUseFontBitmapsA[] = "wglUseFontBitmapsA(hdc, first, count, listBase) -> BOOL";
 static char _doc_wglUseFontBitmapsW[] = "wglUseFontBitmapsW(hdc, first, count, listBase) -> BOOL";
 static char _doc_wglUseFontOutlinesA[] = "wglUseFontOutlinesA(hdc, first, count, listBase, deviation, extrusion, formation, lpgmf) -> BOOL";
 static char _doc_wglUseFontOutlinesW[] = "wglUseFontOutlinesW(hdc, first, count, listBase, deviation, extrusion, formation, lpgmf) -> BOOL";
#ifdef __cplusplus
extern "C" {
#endif
static PyObject *_wrap_ChoosePixelFormat(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    HDC arg0 ;
    PIXELFORMATDESCRIPTOR *arg1 ;
    PyObject * argo1 =0 ;
    int result ;
    
    if(!PyArg_ParseTuple(args,"lO:ChoosePixelFormat",&arg0,&argo1)) return NULL;
    if ((SWIG_ConvertPtr(argo1,(void **) &arg1,SWIGTYPE_p_q_const__PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (int )ChoosePixelFormat(arg0,(PIXELFORMATDESCRIPTOR const *)arg1);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_DescribePixelFormat(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    HDC arg0 ;
    int arg1 ;
    UINT arg2 ;
    PIXELFORMATDESCRIPTOR *arg3 ;
    PyObject * argo3 =0 ;
    int result ;
    
    if(!PyArg_ParseTuple(args,"liiO:DescribePixelFormat",&arg0,&arg1,&arg2,&argo3)) return NULL;
    if ((SWIG_ConvertPtr(argo3,(void **) &arg3,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (int )DescribePixelFormat(arg0,arg1,arg2,arg3);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_GetPixelFormat(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    HDC arg0 ;
    int result ;
    
    if(!PyArg_ParseTuple(args,"l:GetPixelFormat",&arg0)) return NULL;
    {
        SetLastError(0); 	result = (int )GetPixelFormat(arg0);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_SetPixelFormat(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    HDC arg0 ;
    int arg1 ;
    PIXELFORMATDESCRIPTOR *arg2 ;
    PyObject * argo2 =0 ;
    BOOL result ;
    
    if(!PyArg_ParseTuple(args,"liO:SetPixelFormat",&arg0,&arg1,&argo2)) return NULL;
    if ((SWIG_ConvertPtr(argo2,(void **) &arg2,SWIGTYPE_p_q_const__PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (BOOL )SetPixelFormat(arg0,arg1,(PIXELFORMATDESCRIPTOR const *)arg2);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_SwapBuffers(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    HDC arg0 ;
    BOOL result ;
    
    if(!PyArg_ParseTuple(args,"l:SwapBuffers",&arg0)) return NULL;
    {
        SetLastError(0); 	result = (BOOL )SwapBuffers(arg0);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_wglCreateContext(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    HDC arg0 ;
    HGLRC result ;
    
    if(!PyArg_ParseTuple(args,"l:wglCreateContext",&arg0)) return NULL;
    {
        SetLastError(0); 	result = (HGLRC )wglCreateContext(arg0);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_wglCreateLayerContext(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    HDC arg0 ;
    int arg1 ;
    HGLRC result ;
    
    if(!PyArg_ParseTuple(args,"li:wglCreateLayerContext",&arg0,&arg1)) return NULL;
    {
        SetLastError(0); 	result = (HGLRC )wglCreateLayerContext(arg0,arg1);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_wglCopyContext(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    HGLRC arg0 ;
    HGLRC arg1 ;
    UINT arg2 ;
    BOOL result ;
    
    if(!PyArg_ParseTuple(args,"lli:wglCopyContext",&arg0,&arg1,&arg2)) return NULL;
    {
        SetLastError(0); 	result = (BOOL )wglCopyContext(arg0,arg1,arg2);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_wglDeleteContext(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    HGLRC arg0 ;
    BOOL result ;
    
    if(!PyArg_ParseTuple(args,"l:wglDeleteContext",&arg0)) return NULL;
    {
        SetLastError(0); 	result = (BOOL )wglDeleteContext(arg0);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_wglDescribeLayerPlane(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    HDC arg0 ;
    int arg1 ;
    int arg2 ;
    UINT arg3 ;
    LAYERPLANEDESCRIPTOR *arg4 ;
    PyObject * argo4 =0 ;
    BOOL result ;
    
    if(!PyArg_ParseTuple(args,"liiiO:wglDescribeLayerPlane",&arg0,&arg1,&arg2,&arg3,&argo4)) return NULL;
    if ((SWIG_ConvertPtr(argo4,(void **) &arg4,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (BOOL )wglDescribeLayerPlane(arg0,arg1,arg2,arg3,arg4);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_wglGetCurrentContext(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    HGLRC result ;
    
    if(!PyArg_ParseTuple(args,":wglGetCurrentContext")) return NULL;
    {
        SetLastError(0); 	result = (HGLRC )wglGetCurrentContext();
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_wglGetCurrentDC(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    HDC result ;
    
    if(!PyArg_ParseTuple(args,":wglGetCurrentDC")) return NULL;
    {
        SetLastError(0); 	result = (HDC )wglGetCurrentDC();
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_wglGetLayerPaletteEntries(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    HDC arg0 ;
    int arg1 ;
    int arg2 ;
    int arg3 ;
    PyObject *result ;
    
    if(!PyArg_ParseTuple(args,"liii:wglGetLayerPaletteEntries",&arg0,&arg1,&arg2,&arg3)) return NULL;
    {
        SetLastError(0); 	result = (PyObject *)_wglGetLayerPaletteEntries(arg0,arg1,arg2,arg3);
        if (WGLErrOccurred()) return NULL; 
    }{
        resultobj = result;
    }
    return resultobj;
}


static PyObject *_wrap_wglGetProcAddress(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LPCSTR arg0 ;
    PROC result ;
    
    if(!PyArg_ParseTuple(args,"s:wglGetProcAddress",&arg0)) return NULL;
    {
        SetLastError(0); 	result = (PROC )wglGetProcAddress(arg0);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_wglMakeCurrent(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    HDC arg0 ;
    HGLRC arg1 ;
    BOOL result ;
    
    if(!PyArg_ParseTuple(args,"ll:wglMakeCurrent",&arg0,&arg1)) return NULL;
    {
        SetLastError(0); 	result = (BOOL )wglMakeCurrent(arg0,arg1);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_wglRealizeLayerPalette(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    HDC arg0 ;
    int arg1 ;
    BOOL arg2 ;
    BOOL result ;
    
    if(!PyArg_ParseTuple(args,"lii:wglRealizeLayerPalette",&arg0,&arg1,&arg2)) return NULL;
    {
        SetLastError(0); 	result = (BOOL )wglRealizeLayerPalette(arg0,arg1,arg2);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_wglSetLayerPaletteEntries(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    HDC arg0 ;
    int arg1 ;
    int arg2 ;
    int arg3 ;
    COLORREF *arg4 ;
    PyObject *temp_pcr ;
    PyObject * obj4  = 0 ;
    int result ;
    
    {
    }
    if(!PyArg_ParseTuple(args,"liiO:wglSetLayerPaletteEntries",&arg0,&arg1,&arg2,&obj4)) return NULL;
    if (obj4)
    {
        arg4 = _PyObject_AsUnsignedIntArray(obj4, &temp_pcr, NULL); 
    }
    {
        arg3 = (int)_PyObject_AsArray_Size(obj4); 
    }
    {
        SetLastError(0); 	result = (int )wglSetLayerPaletteEntries(arg0,arg1,arg2,arg3,(COLORREF const *)arg4);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    {
        _PyObject_AsArray_Cleanup(arg4, temp_pcr); 
    }
    return resultobj;
}


static PyObject *_wrap_wglShareLists(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    HGLRC arg0 ;
    HGLRC arg1 ;
    BOOL result ;
    
    if(!PyArg_ParseTuple(args,"ll:wglShareLists",&arg0,&arg1)) return NULL;
    {
        SetLastError(0); 	result = (BOOL )wglShareLists(arg0,arg1);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_wglSwapLayerBuffers(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    HDC arg0 ;
    UINT arg1 ;
    BOOL result ;
    
    if(!PyArg_ParseTuple(args,"li:wglSwapLayerBuffers",&arg0,&arg1)) return NULL;
    {
        SetLastError(0); 	result = (BOOL )wglSwapLayerBuffers(arg0,arg1);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_wglUseFontBitmapsA(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    HDC arg0 ;
    DWORD arg1 ;
    DWORD arg2 ;
    DWORD arg3 ;
    BOOL result ;
    
    if(!PyArg_ParseTuple(args,"liii:wglUseFontBitmapsA",&arg0,&arg1,&arg2,&arg3)) return NULL;
    {
        SetLastError(0); 	result = (BOOL )wglUseFontBitmapsA(arg0,arg1,arg2,arg3);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_wglUseFontBitmapsW(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    HDC arg0 ;
    DWORD arg1 ;
    DWORD arg2 ;
    DWORD arg3 ;
    BOOL result ;
    
    if(!PyArg_ParseTuple(args,"liii:wglUseFontBitmapsW",&arg0,&arg1,&arg2,&arg3)) return NULL;
    {
        SetLastError(0); 	result = (BOOL )wglUseFontBitmapsW(arg0,arg1,arg2,arg3);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_wglUseFontOutlinesA(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    HDC arg0 ;
    DWORD arg1 ;
    DWORD arg2 ;
    DWORD arg3 ;
    FLOAT arg4 ;
    FLOAT arg5 ;
    int arg6 ;
    GLYPHMETRICSFLOAT *arg7 ;
    PyObject * argo7 =0 ;
    BOOL result ;
    
    if(!PyArg_ParseTuple(args,"liiiffiO:wglUseFontOutlinesA",&arg0,&arg1,&arg2,&arg3,&arg4,&arg5,&arg6,&argo7)) return NULL;
    if ((SWIG_ConvertPtr(argo7,(void **) &arg7,SWIGTYPE_p_GLYPHMETRICSFLOAT,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (BOOL )wglUseFontOutlinesA(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_wglUseFontOutlinesW(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    HDC arg0 ;
    DWORD arg1 ;
    DWORD arg2 ;
    DWORD arg3 ;
    FLOAT arg4 ;
    FLOAT arg5 ;
    int arg6 ;
    GLYPHMETRICSFLOAT *arg7 ;
    PyObject * argo7 =0 ;
    BOOL result ;
    
    if(!PyArg_ParseTuple(args,"liiiffiO:wglUseFontOutlinesW",&arg0,&arg1,&arg2,&arg3,&arg4,&arg5,&arg6,&argo7)) return NULL;
    if ((SWIG_ConvertPtr(argo7,(void **) &arg7,SWIGTYPE_p_GLYPHMETRICSFLOAT,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (BOOL )wglUseFontOutlinesW(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_nSize_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    WORD arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Oh:PIXELFORMATDESCRIPTOR_nSize_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->nSize = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_nSize_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    WORD result ;
    
    if(!PyArg_ParseTuple(args,"O:PIXELFORMATDESCRIPTOR_nSize_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (WORD ) (arg0->nSize);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_nVersion_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    WORD arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Oh:PIXELFORMATDESCRIPTOR_nVersion_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->nVersion = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_nVersion_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    WORD result ;
    
    if(!PyArg_ParseTuple(args,"O:PIXELFORMATDESCRIPTOR_nVersion_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (WORD ) (arg0->nVersion);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_dwFlags_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    DWORD arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Oi:PIXELFORMATDESCRIPTOR_dwFlags_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->dwFlags = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_dwFlags_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    DWORD result ;
    
    if(!PyArg_ParseTuple(args,"O:PIXELFORMATDESCRIPTOR_dwFlags_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (DWORD ) (arg0->dwFlags);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_iPixelType_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    BYTE arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Ob:PIXELFORMATDESCRIPTOR_iPixelType_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->iPixelType = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_iPixelType_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    BYTE result ;
    
    if(!PyArg_ParseTuple(args,"O:PIXELFORMATDESCRIPTOR_iPixelType_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (BYTE ) (arg0->iPixelType);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_cColorBits_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    BYTE arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Ob:PIXELFORMATDESCRIPTOR_cColorBits_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->cColorBits = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_cColorBits_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    BYTE result ;
    
    if(!PyArg_ParseTuple(args,"O:PIXELFORMATDESCRIPTOR_cColorBits_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (BYTE ) (arg0->cColorBits);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_cRedBits_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    BYTE arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Ob:PIXELFORMATDESCRIPTOR_cRedBits_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->cRedBits = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_cRedBits_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    BYTE result ;
    
    if(!PyArg_ParseTuple(args,"O:PIXELFORMATDESCRIPTOR_cRedBits_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (BYTE ) (arg0->cRedBits);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_cRedShift_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    BYTE arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Ob:PIXELFORMATDESCRIPTOR_cRedShift_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->cRedShift = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_cRedShift_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    BYTE result ;
    
    if(!PyArg_ParseTuple(args,"O:PIXELFORMATDESCRIPTOR_cRedShift_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (BYTE ) (arg0->cRedShift);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_cGreenBits_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    BYTE arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Ob:PIXELFORMATDESCRIPTOR_cGreenBits_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->cGreenBits = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_cGreenBits_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    BYTE result ;
    
    if(!PyArg_ParseTuple(args,"O:PIXELFORMATDESCRIPTOR_cGreenBits_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (BYTE ) (arg0->cGreenBits);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_cGreenShift_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    BYTE arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Ob:PIXELFORMATDESCRIPTOR_cGreenShift_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->cGreenShift = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_cGreenShift_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    BYTE result ;
    
    if(!PyArg_ParseTuple(args,"O:PIXELFORMATDESCRIPTOR_cGreenShift_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (BYTE ) (arg0->cGreenShift);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_cBlueBits_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    BYTE arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Ob:PIXELFORMATDESCRIPTOR_cBlueBits_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->cBlueBits = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_cBlueBits_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    BYTE result ;
    
    if(!PyArg_ParseTuple(args,"O:PIXELFORMATDESCRIPTOR_cBlueBits_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (BYTE ) (arg0->cBlueBits);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_cBlueShift_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    BYTE arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Ob:PIXELFORMATDESCRIPTOR_cBlueShift_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->cBlueShift = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_cBlueShift_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    BYTE result ;
    
    if(!PyArg_ParseTuple(args,"O:PIXELFORMATDESCRIPTOR_cBlueShift_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (BYTE ) (arg0->cBlueShift);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_cAlphaBits_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    BYTE arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Ob:PIXELFORMATDESCRIPTOR_cAlphaBits_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->cAlphaBits = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_cAlphaBits_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    BYTE result ;
    
    if(!PyArg_ParseTuple(args,"O:PIXELFORMATDESCRIPTOR_cAlphaBits_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (BYTE ) (arg0->cAlphaBits);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_cAlphaShift_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    BYTE arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Ob:PIXELFORMATDESCRIPTOR_cAlphaShift_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->cAlphaShift = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_cAlphaShift_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    BYTE result ;
    
    if(!PyArg_ParseTuple(args,"O:PIXELFORMATDESCRIPTOR_cAlphaShift_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (BYTE ) (arg0->cAlphaShift);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_cAccumBits_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    BYTE arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Ob:PIXELFORMATDESCRIPTOR_cAccumBits_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->cAccumBits = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_cAccumBits_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    BYTE result ;
    
    if(!PyArg_ParseTuple(args,"O:PIXELFORMATDESCRIPTOR_cAccumBits_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (BYTE ) (arg0->cAccumBits);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_cAccumRedBits_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    BYTE arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Ob:PIXELFORMATDESCRIPTOR_cAccumRedBits_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->cAccumRedBits = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_cAccumRedBits_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    BYTE result ;
    
    if(!PyArg_ParseTuple(args,"O:PIXELFORMATDESCRIPTOR_cAccumRedBits_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (BYTE ) (arg0->cAccumRedBits);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_cAccumGreenBits_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    BYTE arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Ob:PIXELFORMATDESCRIPTOR_cAccumGreenBits_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->cAccumGreenBits = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_cAccumGreenBits_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    BYTE result ;
    
    if(!PyArg_ParseTuple(args,"O:PIXELFORMATDESCRIPTOR_cAccumGreenBits_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (BYTE ) (arg0->cAccumGreenBits);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_cAccumBlueBits_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    BYTE arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Ob:PIXELFORMATDESCRIPTOR_cAccumBlueBits_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->cAccumBlueBits = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_cAccumBlueBits_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    BYTE result ;
    
    if(!PyArg_ParseTuple(args,"O:PIXELFORMATDESCRIPTOR_cAccumBlueBits_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (BYTE ) (arg0->cAccumBlueBits);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_cAccumAlphaBits_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    BYTE arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Ob:PIXELFORMATDESCRIPTOR_cAccumAlphaBits_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->cAccumAlphaBits = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_cAccumAlphaBits_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    BYTE result ;
    
    if(!PyArg_ParseTuple(args,"O:PIXELFORMATDESCRIPTOR_cAccumAlphaBits_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (BYTE ) (arg0->cAccumAlphaBits);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_cDepthBits_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    BYTE arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Ob:PIXELFORMATDESCRIPTOR_cDepthBits_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->cDepthBits = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_cDepthBits_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    BYTE result ;
    
    if(!PyArg_ParseTuple(args,"O:PIXELFORMATDESCRIPTOR_cDepthBits_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (BYTE ) (arg0->cDepthBits);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_cStencilBits_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    BYTE arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Ob:PIXELFORMATDESCRIPTOR_cStencilBits_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->cStencilBits = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_cStencilBits_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    BYTE result ;
    
    if(!PyArg_ParseTuple(args,"O:PIXELFORMATDESCRIPTOR_cStencilBits_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (BYTE ) (arg0->cStencilBits);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_cAuxBuffers_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    BYTE arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Ob:PIXELFORMATDESCRIPTOR_cAuxBuffers_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->cAuxBuffers = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_cAuxBuffers_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    BYTE result ;
    
    if(!PyArg_ParseTuple(args,"O:PIXELFORMATDESCRIPTOR_cAuxBuffers_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (BYTE ) (arg0->cAuxBuffers);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_iLayerType_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    BYTE arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Ob:PIXELFORMATDESCRIPTOR_iLayerType_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->iLayerType = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_iLayerType_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    BYTE result ;
    
    if(!PyArg_ParseTuple(args,"O:PIXELFORMATDESCRIPTOR_iLayerType_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (BYTE ) (arg0->iLayerType);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_bReserved_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    BYTE arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Ob:PIXELFORMATDESCRIPTOR_bReserved_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->bReserved = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_bReserved_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    BYTE result ;
    
    if(!PyArg_ParseTuple(args,"O:PIXELFORMATDESCRIPTOR_bReserved_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (BYTE ) (arg0->bReserved);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_dwLayerMask_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    DWORD arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Oi:PIXELFORMATDESCRIPTOR_dwLayerMask_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->dwLayerMask = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_dwLayerMask_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    DWORD result ;
    
    if(!PyArg_ParseTuple(args,"O:PIXELFORMATDESCRIPTOR_dwLayerMask_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (DWORD ) (arg0->dwLayerMask);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_dwVisibleMask_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    DWORD arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Oi:PIXELFORMATDESCRIPTOR_dwVisibleMask_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->dwVisibleMask = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_dwVisibleMask_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    DWORD result ;
    
    if(!PyArg_ParseTuple(args,"O:PIXELFORMATDESCRIPTOR_dwVisibleMask_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (DWORD ) (arg0->dwVisibleMask);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_dwDamageMask_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    DWORD arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Oi:PIXELFORMATDESCRIPTOR_dwDamageMask_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->dwDamageMask = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_PIXELFORMATDESCRIPTOR_dwDamageMask_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    DWORD result ;
    
    if(!PyArg_ParseTuple(args,"O:PIXELFORMATDESCRIPTOR_dwDamageMask_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (DWORD ) (arg0->dwDamageMask);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_new_PIXELFORMATDESCRIPTOR(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *result ;
    
    if(!PyArg_ParseTuple(args,":new_PIXELFORMATDESCRIPTOR")) return NULL;
    {
        SetLastError(0); 	result = (PIXELFORMATDESCRIPTOR *)new_PIXELFORMATDESCRIPTOR();
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_PIXELFORMATDESCRIPTOR);
    return resultobj;
}


static PyObject *_wrap_delete_PIXELFORMATDESCRIPTOR(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    PIXELFORMATDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"O:delete_PIXELFORMATDESCRIPTOR",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_PIXELFORMATDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	delete_PIXELFORMATDESCRIPTOR(arg0);
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_POINTFLOAT_x_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    POINTFLOAT *arg0 ;
    FLOAT arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Of:POINTFLOAT_x_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_POINTFLOAT,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->x = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_POINTFLOAT_x_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    POINTFLOAT *arg0 ;
    PyObject * argo0 =0 ;
    FLOAT result ;
    
    if(!PyArg_ParseTuple(args,"O:POINTFLOAT_x_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_POINTFLOAT,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (FLOAT ) (arg0->x);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyFloat_FromDouble(result);
    return resultobj;
}


static PyObject *_wrap_POINTFLOAT_y_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    POINTFLOAT *arg0 ;
    FLOAT arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Of:POINTFLOAT_y_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_POINTFLOAT,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->y = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_POINTFLOAT_y_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    POINTFLOAT *arg0 ;
    PyObject * argo0 =0 ;
    FLOAT result ;
    
    if(!PyArg_ParseTuple(args,"O:POINTFLOAT_y_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_POINTFLOAT,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (FLOAT ) (arg0->y);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyFloat_FromDouble(result);
    return resultobj;
}


POINTFLOAT * new_POINTFLOAT() {
    {
        POINTFLOAT *result = PyMem_New(POINTFLOAT, 1);
        memset(result, 0, sizeof(POINTFLOAT));
        return result;
    }
}


static PyObject *_wrap_new_POINTFLOAT(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    POINTFLOAT *result ;
    
    if(!PyArg_ParseTuple(args,":new_POINTFLOAT")) return NULL;
    {
        SetLastError(0); 	result = (POINTFLOAT *)new_POINTFLOAT();
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_POINTFLOAT);
    return resultobj;
}


void  delete_POINTFLOAT(POINTFLOAT *self) {
    {
        PyMem_Del(self);
    }
}


static PyObject *_wrap_delete_POINTFLOAT(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    POINTFLOAT *arg0 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"O:delete_POINTFLOAT",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_POINTFLOAT,1)) == -1) return NULL;
    {
        SetLastError(0); 	delete_POINTFLOAT(arg0);
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_GLYPHMETRICSFLOAT_gmfBlackBoxX_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    GLYPHMETRICSFLOAT *arg0 ;
    FLOAT arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Of:GLYPHMETRICSFLOAT_gmfBlackBoxX_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_GLYPHMETRICSFLOAT,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->gmfBlackBoxX = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_GLYPHMETRICSFLOAT_gmfBlackBoxX_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    GLYPHMETRICSFLOAT *arg0 ;
    PyObject * argo0 =0 ;
    FLOAT result ;
    
    if(!PyArg_ParseTuple(args,"O:GLYPHMETRICSFLOAT_gmfBlackBoxX_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_GLYPHMETRICSFLOAT,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (FLOAT ) (arg0->gmfBlackBoxX);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyFloat_FromDouble(result);
    return resultobj;
}


static PyObject *_wrap_GLYPHMETRICSFLOAT_gmfBlackBoxY_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    GLYPHMETRICSFLOAT *arg0 ;
    FLOAT arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Of:GLYPHMETRICSFLOAT_gmfBlackBoxY_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_GLYPHMETRICSFLOAT,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->gmfBlackBoxY = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_GLYPHMETRICSFLOAT_gmfBlackBoxY_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    GLYPHMETRICSFLOAT *arg0 ;
    PyObject * argo0 =0 ;
    FLOAT result ;
    
    if(!PyArg_ParseTuple(args,"O:GLYPHMETRICSFLOAT_gmfBlackBoxY_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_GLYPHMETRICSFLOAT,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (FLOAT ) (arg0->gmfBlackBoxY);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyFloat_FromDouble(result);
    return resultobj;
}


static PyObject *_wrap_GLYPHMETRICSFLOAT_gmfptGlyphOrigin_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    GLYPHMETRICSFLOAT *arg0 ;
    POINTFLOAT *arg1 ;
    PyObject * argo0 =0 ;
    PyObject * argo1 =0 ;
    
    if(!PyArg_ParseTuple(args,"OO:GLYPHMETRICSFLOAT_gmfptGlyphOrigin_set",&argo0,&argo1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_GLYPHMETRICSFLOAT,1)) == -1) return NULL;
    if ((SWIG_ConvertPtr(argo1,(void **) &arg1,SWIGTYPE_p_POINTFLOAT,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->gmfptGlyphOrigin = *arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_GLYPHMETRICSFLOAT_gmfptGlyphOrigin_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    GLYPHMETRICSFLOAT *arg0 ;
    PyObject * argo0 =0 ;
    POINTFLOAT *result ;
    
    if(!PyArg_ParseTuple(args,"O:GLYPHMETRICSFLOAT_gmfptGlyphOrigin_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_GLYPHMETRICSFLOAT,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (POINTFLOAT *)& (arg0->gmfptGlyphOrigin);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_POINTFLOAT);
    return resultobj;
}


static PyObject *_wrap_GLYPHMETRICSFLOAT_gmfCellIncX_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    GLYPHMETRICSFLOAT *arg0 ;
    FLOAT arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Of:GLYPHMETRICSFLOAT_gmfCellIncX_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_GLYPHMETRICSFLOAT,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->gmfCellIncX = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_GLYPHMETRICSFLOAT_gmfCellIncX_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    GLYPHMETRICSFLOAT *arg0 ;
    PyObject * argo0 =0 ;
    FLOAT result ;
    
    if(!PyArg_ParseTuple(args,"O:GLYPHMETRICSFLOAT_gmfCellIncX_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_GLYPHMETRICSFLOAT,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (FLOAT ) (arg0->gmfCellIncX);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyFloat_FromDouble(result);
    return resultobj;
}


static PyObject *_wrap_GLYPHMETRICSFLOAT_gmfCellIncY_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    GLYPHMETRICSFLOAT *arg0 ;
    FLOAT arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Of:GLYPHMETRICSFLOAT_gmfCellIncY_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_GLYPHMETRICSFLOAT,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->gmfCellIncY = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_GLYPHMETRICSFLOAT_gmfCellIncY_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    GLYPHMETRICSFLOAT *arg0 ;
    PyObject * argo0 =0 ;
    FLOAT result ;
    
    if(!PyArg_ParseTuple(args,"O:GLYPHMETRICSFLOAT_gmfCellIncY_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_GLYPHMETRICSFLOAT,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (FLOAT ) (arg0->gmfCellIncY);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyFloat_FromDouble(result);
    return resultobj;
}


static PyObject *_wrap_new_GLYPHMETRICSFLOAT(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    GLYPHMETRICSFLOAT *result ;
    
    if(!PyArg_ParseTuple(args,":new_GLYPHMETRICSFLOAT")) return NULL;
    {
        SetLastError(0); 	result = (GLYPHMETRICSFLOAT *)new_GLYPHMETRICSFLOAT();
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_GLYPHMETRICSFLOAT);
    return resultobj;
}


static PyObject *_wrap_delete_GLYPHMETRICSFLOAT(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    GLYPHMETRICSFLOAT *arg0 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"O:delete_GLYPHMETRICSFLOAT",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_GLYPHMETRICSFLOAT,1)) == -1) return NULL;
    {
        SetLastError(0); 	delete_GLYPHMETRICSFLOAT(arg0);
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_LAYERPLANEDESCRIPTOR_nSize_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *arg0 ;
    WORD arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Oh:LAYERPLANEDESCRIPTOR_nSize_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->nSize = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_LAYERPLANEDESCRIPTOR_nSize_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    WORD result ;
    
    if(!PyArg_ParseTuple(args,"O:LAYERPLANEDESCRIPTOR_nSize_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (WORD ) (arg0->nSize);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_LAYERPLANEDESCRIPTOR_nVersion_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *arg0 ;
    WORD arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Oh:LAYERPLANEDESCRIPTOR_nVersion_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->nVersion = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_LAYERPLANEDESCRIPTOR_nVersion_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    WORD result ;
    
    if(!PyArg_ParseTuple(args,"O:LAYERPLANEDESCRIPTOR_nVersion_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (WORD ) (arg0->nVersion);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_LAYERPLANEDESCRIPTOR_dwFlags_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *arg0 ;
    DWORD arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Oi:LAYERPLANEDESCRIPTOR_dwFlags_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->dwFlags = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_LAYERPLANEDESCRIPTOR_dwFlags_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    DWORD result ;
    
    if(!PyArg_ParseTuple(args,"O:LAYERPLANEDESCRIPTOR_dwFlags_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (DWORD ) (arg0->dwFlags);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_LAYERPLANEDESCRIPTOR_iPixelType_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *arg0 ;
    BYTE arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Ob:LAYERPLANEDESCRIPTOR_iPixelType_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->iPixelType = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_LAYERPLANEDESCRIPTOR_iPixelType_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    BYTE result ;
    
    if(!PyArg_ParseTuple(args,"O:LAYERPLANEDESCRIPTOR_iPixelType_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (BYTE ) (arg0->iPixelType);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_LAYERPLANEDESCRIPTOR_cColorBits_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *arg0 ;
    BYTE arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Ob:LAYERPLANEDESCRIPTOR_cColorBits_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->cColorBits = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_LAYERPLANEDESCRIPTOR_cColorBits_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    BYTE result ;
    
    if(!PyArg_ParseTuple(args,"O:LAYERPLANEDESCRIPTOR_cColorBits_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (BYTE ) (arg0->cColorBits);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_LAYERPLANEDESCRIPTOR_cRedBits_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *arg0 ;
    BYTE arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Ob:LAYERPLANEDESCRIPTOR_cRedBits_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->cRedBits = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_LAYERPLANEDESCRIPTOR_cRedBits_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    BYTE result ;
    
    if(!PyArg_ParseTuple(args,"O:LAYERPLANEDESCRIPTOR_cRedBits_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (BYTE ) (arg0->cRedBits);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_LAYERPLANEDESCRIPTOR_cRedShift_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *arg0 ;
    BYTE arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Ob:LAYERPLANEDESCRIPTOR_cRedShift_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->cRedShift = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_LAYERPLANEDESCRIPTOR_cRedShift_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    BYTE result ;
    
    if(!PyArg_ParseTuple(args,"O:LAYERPLANEDESCRIPTOR_cRedShift_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (BYTE ) (arg0->cRedShift);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_LAYERPLANEDESCRIPTOR_cGreenBits_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *arg0 ;
    BYTE arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Ob:LAYERPLANEDESCRIPTOR_cGreenBits_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->cGreenBits = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_LAYERPLANEDESCRIPTOR_cGreenBits_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    BYTE result ;
    
    if(!PyArg_ParseTuple(args,"O:LAYERPLANEDESCRIPTOR_cGreenBits_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (BYTE ) (arg0->cGreenBits);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_LAYERPLANEDESCRIPTOR_cGreenShift_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *arg0 ;
    BYTE arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Ob:LAYERPLANEDESCRIPTOR_cGreenShift_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->cGreenShift = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_LAYERPLANEDESCRIPTOR_cGreenShift_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    BYTE result ;
    
    if(!PyArg_ParseTuple(args,"O:LAYERPLANEDESCRIPTOR_cGreenShift_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (BYTE ) (arg0->cGreenShift);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_LAYERPLANEDESCRIPTOR_cBlueBits_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *arg0 ;
    BYTE arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Ob:LAYERPLANEDESCRIPTOR_cBlueBits_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->cBlueBits = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_LAYERPLANEDESCRIPTOR_cBlueBits_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    BYTE result ;
    
    if(!PyArg_ParseTuple(args,"O:LAYERPLANEDESCRIPTOR_cBlueBits_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (BYTE ) (arg0->cBlueBits);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_LAYERPLANEDESCRIPTOR_cBlueShift_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *arg0 ;
    BYTE arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Ob:LAYERPLANEDESCRIPTOR_cBlueShift_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->cBlueShift = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_LAYERPLANEDESCRIPTOR_cBlueShift_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    BYTE result ;
    
    if(!PyArg_ParseTuple(args,"O:LAYERPLANEDESCRIPTOR_cBlueShift_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (BYTE ) (arg0->cBlueShift);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_LAYERPLANEDESCRIPTOR_cAlphaBits_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *arg0 ;
    BYTE arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Ob:LAYERPLANEDESCRIPTOR_cAlphaBits_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->cAlphaBits = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_LAYERPLANEDESCRIPTOR_cAlphaBits_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    BYTE result ;
    
    if(!PyArg_ParseTuple(args,"O:LAYERPLANEDESCRIPTOR_cAlphaBits_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (BYTE ) (arg0->cAlphaBits);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_LAYERPLANEDESCRIPTOR_cAlphaShift_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *arg0 ;
    BYTE arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Ob:LAYERPLANEDESCRIPTOR_cAlphaShift_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->cAlphaShift = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_LAYERPLANEDESCRIPTOR_cAlphaShift_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    BYTE result ;
    
    if(!PyArg_ParseTuple(args,"O:LAYERPLANEDESCRIPTOR_cAlphaShift_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (BYTE ) (arg0->cAlphaShift);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_LAYERPLANEDESCRIPTOR_cAccumBits_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *arg0 ;
    BYTE arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Ob:LAYERPLANEDESCRIPTOR_cAccumBits_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->cAccumBits = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_LAYERPLANEDESCRIPTOR_cAccumBits_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    BYTE result ;
    
    if(!PyArg_ParseTuple(args,"O:LAYERPLANEDESCRIPTOR_cAccumBits_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (BYTE ) (arg0->cAccumBits);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_LAYERPLANEDESCRIPTOR_cAccumRedBits_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *arg0 ;
    BYTE arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Ob:LAYERPLANEDESCRIPTOR_cAccumRedBits_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->cAccumRedBits = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_LAYERPLANEDESCRIPTOR_cAccumRedBits_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    BYTE result ;
    
    if(!PyArg_ParseTuple(args,"O:LAYERPLANEDESCRIPTOR_cAccumRedBits_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (BYTE ) (arg0->cAccumRedBits);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_LAYERPLANEDESCRIPTOR_cAccumGreenBits_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *arg0 ;
    BYTE arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Ob:LAYERPLANEDESCRIPTOR_cAccumGreenBits_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->cAccumGreenBits = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_LAYERPLANEDESCRIPTOR_cAccumGreenBits_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    BYTE result ;
    
    if(!PyArg_ParseTuple(args,"O:LAYERPLANEDESCRIPTOR_cAccumGreenBits_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (BYTE ) (arg0->cAccumGreenBits);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_LAYERPLANEDESCRIPTOR_cAccumBlueBits_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *arg0 ;
    BYTE arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Ob:LAYERPLANEDESCRIPTOR_cAccumBlueBits_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->cAccumBlueBits = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_LAYERPLANEDESCRIPTOR_cAccumBlueBits_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    BYTE result ;
    
    if(!PyArg_ParseTuple(args,"O:LAYERPLANEDESCRIPTOR_cAccumBlueBits_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (BYTE ) (arg0->cAccumBlueBits);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_LAYERPLANEDESCRIPTOR_cAccumAlphaBits_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *arg0 ;
    BYTE arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Ob:LAYERPLANEDESCRIPTOR_cAccumAlphaBits_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->cAccumAlphaBits = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_LAYERPLANEDESCRIPTOR_cAccumAlphaBits_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    BYTE result ;
    
    if(!PyArg_ParseTuple(args,"O:LAYERPLANEDESCRIPTOR_cAccumAlphaBits_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (BYTE ) (arg0->cAccumAlphaBits);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_LAYERPLANEDESCRIPTOR_cDepthBits_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *arg0 ;
    BYTE arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Ob:LAYERPLANEDESCRIPTOR_cDepthBits_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->cDepthBits = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_LAYERPLANEDESCRIPTOR_cDepthBits_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    BYTE result ;
    
    if(!PyArg_ParseTuple(args,"O:LAYERPLANEDESCRIPTOR_cDepthBits_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (BYTE ) (arg0->cDepthBits);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_LAYERPLANEDESCRIPTOR_cStencilBits_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *arg0 ;
    BYTE arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Ob:LAYERPLANEDESCRIPTOR_cStencilBits_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->cStencilBits = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_LAYERPLANEDESCRIPTOR_cStencilBits_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    BYTE result ;
    
    if(!PyArg_ParseTuple(args,"O:LAYERPLANEDESCRIPTOR_cStencilBits_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (BYTE ) (arg0->cStencilBits);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_LAYERPLANEDESCRIPTOR_cAuxBuffers_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *arg0 ;
    BYTE arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Ob:LAYERPLANEDESCRIPTOR_cAuxBuffers_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->cAuxBuffers = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_LAYERPLANEDESCRIPTOR_cAuxBuffers_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    BYTE result ;
    
    if(!PyArg_ParseTuple(args,"O:LAYERPLANEDESCRIPTOR_cAuxBuffers_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (BYTE ) (arg0->cAuxBuffers);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_LAYERPLANEDESCRIPTOR_iLayerPlane_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *arg0 ;
    BYTE arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Ob:LAYERPLANEDESCRIPTOR_iLayerPlane_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->iLayerPlane = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_LAYERPLANEDESCRIPTOR_iLayerPlane_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    BYTE result ;
    
    if(!PyArg_ParseTuple(args,"O:LAYERPLANEDESCRIPTOR_iLayerPlane_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (BYTE ) (arg0->iLayerPlane);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_LAYERPLANEDESCRIPTOR_bReserved_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *arg0 ;
    BYTE arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Ob:LAYERPLANEDESCRIPTOR_bReserved_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->bReserved = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_LAYERPLANEDESCRIPTOR_bReserved_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    BYTE result ;
    
    if(!PyArg_ParseTuple(args,"O:LAYERPLANEDESCRIPTOR_bReserved_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (BYTE ) (arg0->bReserved);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_LAYERPLANEDESCRIPTOR_crTransparent_set(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *arg0 ;
    COLORREF arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Oi:LAYERPLANEDESCRIPTOR_crTransparent_set",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	arg0->crTransparent = arg1;
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_LAYERPLANEDESCRIPTOR_crTransparent_get(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    COLORREF result ;
    
    if(!PyArg_ParseTuple(args,"O:LAYERPLANEDESCRIPTOR_crTransparent_get",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	result = (COLORREF ) (arg0->crTransparent);
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_new_LAYERPLANEDESCRIPTOR(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *result ;
    
    if(!PyArg_ParseTuple(args,":new_LAYERPLANEDESCRIPTOR")) return NULL;
    {
        SetLastError(0); 	result = (LAYERPLANEDESCRIPTOR *)new_LAYERPLANEDESCRIPTOR();
        if (WGLErrOccurred()) return NULL; 
    }    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_LAYERPLANEDESCRIPTOR);
    return resultobj;
}


static PyObject *_wrap_delete_LAYERPLANEDESCRIPTOR(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    LAYERPLANEDESCRIPTOR *arg0 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"O:delete_LAYERPLANEDESCRIPTOR",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_p_LAYERPLANEDESCRIPTOR,1)) == -1) return NULL;
    {
        SetLastError(0); 	delete_LAYERPLANEDESCRIPTOR(arg0);
        if (WGLErrOccurred()) return NULL; 
    }    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyMethodDef __init___Methods[] = {
	 {"ChoosePixelFormat", _wrap_ChoosePixelFormat, METH_VARARGS , _doc_ChoosePixelFormat},
	 {"DescribePixelFormat", _wrap_DescribePixelFormat, METH_VARARGS , _doc_DescribePixelFormat},
	 {"GetPixelFormat", _wrap_GetPixelFormat, METH_VARARGS , _doc_GetPixelFormat},
	 {"SetPixelFormat", _wrap_SetPixelFormat, METH_VARARGS , _doc_SetPixelFormat},
	 {"SwapBuffers", _wrap_SwapBuffers, METH_VARARGS , _doc_SwapBuffers},
	 {"wglCreateContext", _wrap_wglCreateContext, METH_VARARGS , _doc_wglCreateContext},
	 {"wglCreateLayerContext", _wrap_wglCreateLayerContext, METH_VARARGS , _doc_wglCreateLayerContext},
	 {"wglCopyContext", _wrap_wglCopyContext, METH_VARARGS , _doc_wglCopyContext},
	 {"wglDeleteContext", _wrap_wglDeleteContext, METH_VARARGS , _doc_wglDeleteContext},
	 {"wglDescribeLayerPlane", _wrap_wglDescribeLayerPlane, METH_VARARGS , _doc_wglDescribeLayerPlane},
	 {"wglGetCurrentContext", _wrap_wglGetCurrentContext, METH_VARARGS , _doc_wglGetCurrentContext},
	 {"wglGetCurrentDC", _wrap_wglGetCurrentDC, METH_VARARGS , _doc_wglGetCurrentDC},
	 {"wglGetLayerPaletteEntries", _wrap_wglGetLayerPaletteEntries, METH_VARARGS , _doc_wglGetLayerPaletteEntries},
	 {"wglGetProcAddress", _wrap_wglGetProcAddress, METH_VARARGS , _doc_wglGetProcAddress},
	 {"wglMakeCurrent", _wrap_wglMakeCurrent, METH_VARARGS , _doc_wglMakeCurrent},
	 {"wglRealizeLayerPalette", _wrap_wglRealizeLayerPalette, METH_VARARGS , _doc_wglRealizeLayerPalette},
	 {"wglSetLayerPaletteEntries", _wrap_wglSetLayerPaletteEntries, METH_VARARGS , _doc_wglSetLayerPaletteEntries},
	 {"wglShareLists", _wrap_wglShareLists, METH_VARARGS , _doc_wglShareLists},
	 {"wglSwapLayerBuffers", _wrap_wglSwapLayerBuffers, METH_VARARGS , _doc_wglSwapLayerBuffers},
	 {"wglUseFontBitmapsA", _wrap_wglUseFontBitmapsA, METH_VARARGS , _doc_wglUseFontBitmapsA},
	 {"wglUseFontBitmapsW", _wrap_wglUseFontBitmapsW, METH_VARARGS , _doc_wglUseFontBitmapsW},
	 {"wglUseFontOutlinesA", _wrap_wglUseFontOutlinesA, METH_VARARGS , _doc_wglUseFontOutlinesA},
	 {"wglUseFontOutlinesW", _wrap_wglUseFontOutlinesW, METH_VARARGS , _doc_wglUseFontOutlinesW},
	 { "PIXELFORMATDESCRIPTOR_nSize_set", _wrap_PIXELFORMATDESCRIPTOR_nSize_set, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_nSize_get", _wrap_PIXELFORMATDESCRIPTOR_nSize_get, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_nVersion_set", _wrap_PIXELFORMATDESCRIPTOR_nVersion_set, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_nVersion_get", _wrap_PIXELFORMATDESCRIPTOR_nVersion_get, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_dwFlags_set", _wrap_PIXELFORMATDESCRIPTOR_dwFlags_set, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_dwFlags_get", _wrap_PIXELFORMATDESCRIPTOR_dwFlags_get, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_iPixelType_set", _wrap_PIXELFORMATDESCRIPTOR_iPixelType_set, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_iPixelType_get", _wrap_PIXELFORMATDESCRIPTOR_iPixelType_get, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_cColorBits_set", _wrap_PIXELFORMATDESCRIPTOR_cColorBits_set, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_cColorBits_get", _wrap_PIXELFORMATDESCRIPTOR_cColorBits_get, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_cRedBits_set", _wrap_PIXELFORMATDESCRIPTOR_cRedBits_set, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_cRedBits_get", _wrap_PIXELFORMATDESCRIPTOR_cRedBits_get, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_cRedShift_set", _wrap_PIXELFORMATDESCRIPTOR_cRedShift_set, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_cRedShift_get", _wrap_PIXELFORMATDESCRIPTOR_cRedShift_get, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_cGreenBits_set", _wrap_PIXELFORMATDESCRIPTOR_cGreenBits_set, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_cGreenBits_get", _wrap_PIXELFORMATDESCRIPTOR_cGreenBits_get, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_cGreenShift_set", _wrap_PIXELFORMATDESCRIPTOR_cGreenShift_set, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_cGreenShift_get", _wrap_PIXELFORMATDESCRIPTOR_cGreenShift_get, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_cBlueBits_set", _wrap_PIXELFORMATDESCRIPTOR_cBlueBits_set, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_cBlueBits_get", _wrap_PIXELFORMATDESCRIPTOR_cBlueBits_get, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_cBlueShift_set", _wrap_PIXELFORMATDESCRIPTOR_cBlueShift_set, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_cBlueShift_get", _wrap_PIXELFORMATDESCRIPTOR_cBlueShift_get, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_cAlphaBits_set", _wrap_PIXELFORMATDESCRIPTOR_cAlphaBits_set, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_cAlphaBits_get", _wrap_PIXELFORMATDESCRIPTOR_cAlphaBits_get, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_cAlphaShift_set", _wrap_PIXELFORMATDESCRIPTOR_cAlphaShift_set, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_cAlphaShift_get", _wrap_PIXELFORMATDESCRIPTOR_cAlphaShift_get, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_cAccumBits_set", _wrap_PIXELFORMATDESCRIPTOR_cAccumBits_set, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_cAccumBits_get", _wrap_PIXELFORMATDESCRIPTOR_cAccumBits_get, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_cAccumRedBits_set", _wrap_PIXELFORMATDESCRIPTOR_cAccumRedBits_set, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_cAccumRedBits_get", _wrap_PIXELFORMATDESCRIPTOR_cAccumRedBits_get, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_cAccumGreenBits_set", _wrap_PIXELFORMATDESCRIPTOR_cAccumGreenBits_set, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_cAccumGreenBits_get", _wrap_PIXELFORMATDESCRIPTOR_cAccumGreenBits_get, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_cAccumBlueBits_set", _wrap_PIXELFORMATDESCRIPTOR_cAccumBlueBits_set, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_cAccumBlueBits_get", _wrap_PIXELFORMATDESCRIPTOR_cAccumBlueBits_get, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_cAccumAlphaBits_set", _wrap_PIXELFORMATDESCRIPTOR_cAccumAlphaBits_set, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_cAccumAlphaBits_get", _wrap_PIXELFORMATDESCRIPTOR_cAccumAlphaBits_get, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_cDepthBits_set", _wrap_PIXELFORMATDESCRIPTOR_cDepthBits_set, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_cDepthBits_get", _wrap_PIXELFORMATDESCRIPTOR_cDepthBits_get, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_cStencilBits_set", _wrap_PIXELFORMATDESCRIPTOR_cStencilBits_set, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_cStencilBits_get", _wrap_PIXELFORMATDESCRIPTOR_cStencilBits_get, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_cAuxBuffers_set", _wrap_PIXELFORMATDESCRIPTOR_cAuxBuffers_set, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_cAuxBuffers_get", _wrap_PIXELFORMATDESCRIPTOR_cAuxBuffers_get, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_iLayerType_set", _wrap_PIXELFORMATDESCRIPTOR_iLayerType_set, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_iLayerType_get", _wrap_PIXELFORMATDESCRIPTOR_iLayerType_get, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_bReserved_set", _wrap_PIXELFORMATDESCRIPTOR_bReserved_set, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_bReserved_get", _wrap_PIXELFORMATDESCRIPTOR_bReserved_get, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_dwLayerMask_set", _wrap_PIXELFORMATDESCRIPTOR_dwLayerMask_set, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_dwLayerMask_get", _wrap_PIXELFORMATDESCRIPTOR_dwLayerMask_get, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_dwVisibleMask_set", _wrap_PIXELFORMATDESCRIPTOR_dwVisibleMask_set, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_dwVisibleMask_get", _wrap_PIXELFORMATDESCRIPTOR_dwVisibleMask_get, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_dwDamageMask_set", _wrap_PIXELFORMATDESCRIPTOR_dwDamageMask_set, METH_VARARGS },
	 { "PIXELFORMATDESCRIPTOR_dwDamageMask_get", _wrap_PIXELFORMATDESCRIPTOR_dwDamageMask_get, METH_VARARGS },
	 { "new_PIXELFORMATDESCRIPTOR", _wrap_new_PIXELFORMATDESCRIPTOR, METH_VARARGS },
	 { "delete_PIXELFORMATDESCRIPTOR", _wrap_delete_PIXELFORMATDESCRIPTOR, METH_VARARGS },
	 { "POINTFLOAT_x_set", _wrap_POINTFLOAT_x_set, METH_VARARGS },
	 { "POINTFLOAT_x_get", _wrap_POINTFLOAT_x_get, METH_VARARGS },
	 { "POINTFLOAT_y_set", _wrap_POINTFLOAT_y_set, METH_VARARGS },
	 { "POINTFLOAT_y_get", _wrap_POINTFLOAT_y_get, METH_VARARGS },
	 { "new_POINTFLOAT", _wrap_new_POINTFLOAT, METH_VARARGS },
	 { "delete_POINTFLOAT", _wrap_delete_POINTFLOAT, METH_VARARGS },
	 { "GLYPHMETRICSFLOAT_gmfBlackBoxX_set", _wrap_GLYPHMETRICSFLOAT_gmfBlackBoxX_set, METH_VARARGS },
	 { "GLYPHMETRICSFLOAT_gmfBlackBoxX_get", _wrap_GLYPHMETRICSFLOAT_gmfBlackBoxX_get, METH_VARARGS },
	 { "GLYPHMETRICSFLOAT_gmfBlackBoxY_set", _wrap_GLYPHMETRICSFLOAT_gmfBlackBoxY_set, METH_VARARGS },
	 { "GLYPHMETRICSFLOAT_gmfBlackBoxY_get", _wrap_GLYPHMETRICSFLOAT_gmfBlackBoxY_get, METH_VARARGS },
	 { "GLYPHMETRICSFLOAT_gmfptGlyphOrigin_set", _wrap_GLYPHMETRICSFLOAT_gmfptGlyphOrigin_set, METH_VARARGS },
	 { "GLYPHMETRICSFLOAT_gmfptGlyphOrigin_get", _wrap_GLYPHMETRICSFLOAT_gmfptGlyphOrigin_get, METH_VARARGS },
	 { "GLYPHMETRICSFLOAT_gmfCellIncX_set", _wrap_GLYPHMETRICSFLOAT_gmfCellIncX_set, METH_VARARGS },
	 { "GLYPHMETRICSFLOAT_gmfCellIncX_get", _wrap_GLYPHMETRICSFLOAT_gmfCellIncX_get, METH_VARARGS },
	 { "GLYPHMETRICSFLOAT_gmfCellIncY_set", _wrap_GLYPHMETRICSFLOAT_gmfCellIncY_set, METH_VARARGS },
	 { "GLYPHMETRICSFLOAT_gmfCellIncY_get", _wrap_GLYPHMETRICSFLOAT_gmfCellIncY_get, METH_VARARGS },
	 { "new_GLYPHMETRICSFLOAT", _wrap_new_GLYPHMETRICSFLOAT, METH_VARARGS },
	 { "delete_GLYPHMETRICSFLOAT", _wrap_delete_GLYPHMETRICSFLOAT, METH_VARARGS },
	 { "LAYERPLANEDESCRIPTOR_nSize_set", _wrap_LAYERPLANEDESCRIPTOR_nSize_set, METH_VARARGS },
	 { "LAYERPLANEDESCRIPTOR_nSize_get", _wrap_LAYERPLANEDESCRIPTOR_nSize_get, METH_VARARGS },
	 { "LAYERPLANEDESCRIPTOR_nVersion_set", _wrap_LAYERPLANEDESCRIPTOR_nVersion_set, METH_VARARGS },
	 { "LAYERPLANEDESCRIPTOR_nVersion_get", _wrap_LAYERPLANEDESCRIPTOR_nVersion_get, METH_VARARGS },
	 { "LAYERPLANEDESCRIPTOR_dwFlags_set", _wrap_LAYERPLANEDESCRIPTOR_dwFlags_set, METH_VARARGS },
	 { "LAYERPLANEDESCRIPTOR_dwFlags_get", _wrap_LAYERPLANEDESCRIPTOR_dwFlags_get, METH_VARARGS },
	 { "LAYERPLANEDESCRIPTOR_iPixelType_set", _wrap_LAYERPLANEDESCRIPTOR_iPixelType_set, METH_VARARGS },
	 { "LAYERPLANEDESCRIPTOR_iPixelType_get", _wrap_LAYERPLANEDESCRIPTOR_iPixelType_get, METH_VARARGS },
	 { "LAYERPLANEDESCRIPTOR_cColorBits_set", _wrap_LAYERPLANEDESCRIPTOR_cColorBits_set, METH_VARARGS },
	 { "LAYERPLANEDESCRIPTOR_cColorBits_get", _wrap_LAYERPLANEDESCRIPTOR_cColorBits_get, METH_VARARGS },
	 { "LAYERPLANEDESCRIPTOR_cRedBits_set", _wrap_LAYERPLANEDESCRIPTOR_cRedBits_set, METH_VARARGS },
	 { "LAYERPLANEDESCRIPTOR_cRedBits_get", _wrap_LAYERPLANEDESCRIPTOR_cRedBits_get, METH_VARARGS },
	 { "LAYERPLANEDESCRIPTOR_cRedShift_set", _wrap_LAYERPLANEDESCRIPTOR_cRedShift_set, METH_VARARGS },
	 { "LAYERPLANEDESCRIPTOR_cRedShift_get", _wrap_LAYERPLANEDESCRIPTOR_cRedShift_get, METH_VARARGS },
	 { "LAYERPLANEDESCRIPTOR_cGreenBits_set", _wrap_LAYERPLANEDESCRIPTOR_cGreenBits_set, METH_VARARGS },
	 { "LAYERPLANEDESCRIPTOR_cGreenBits_get", _wrap_LAYERPLANEDESCRIPTOR_cGreenBits_get, METH_VARARGS },
	 { "LAYERPLANEDESCRIPTOR_cGreenShift_set", _wrap_LAYERPLANEDESCRIPTOR_cGreenShift_set, METH_VARARGS },
	 { "LAYERPLANEDESCRIPTOR_cGreenShift_get", _wrap_LAYERPLANEDESCRIPTOR_cGreenShift_get, METH_VARARGS },
	 { "LAYERPLANEDESCRIPTOR_cBlueBits_set", _wrap_LAYERPLANEDESCRIPTOR_cBlueBits_set, METH_VARARGS },
	 { "LAYERPLANEDESCRIPTOR_cBlueBits_get", _wrap_LAYERPLANEDESCRIPTOR_cBlueBits_get, METH_VARARGS },
	 { "LAYERPLANEDESCRIPTOR_cBlueShift_set", _wrap_LAYERPLANEDESCRIPTOR_cBlueShift_set, METH_VARARGS },
	 { "LAYERPLANEDESCRIPTOR_cBlueShift_get", _wrap_LAYERPLANEDESCRIPTOR_cBlueShift_get, METH_VARARGS },
	 { "LAYERPLANEDESCRIPTOR_cAlphaBits_set", _wrap_LAYERPLANEDESCRIPTOR_cAlphaBits_set, METH_VARARGS },
	 { "LAYERPLANEDESCRIPTOR_cAlphaBits_get", _wrap_LAYERPLANEDESCRIPTOR_cAlphaBits_get, METH_VARARGS },
	 { "LAYERPLANEDESCRIPTOR_cAlphaShift_set", _wrap_LAYERPLANEDESCRIPTOR_cAlphaShift_set, METH_VARARGS },
	 { "LAYERPLANEDESCRIPTOR_cAlphaShift_get", _wrap_LAYERPLANEDESCRIPTOR_cAlphaShift_get, METH_VARARGS },
	 { "LAYERPLANEDESCRIPTOR_cAccumBits_set", _wrap_LAYERPLANEDESCRIPTOR_cAccumBits_set, METH_VARARGS },
	 { "LAYERPLANEDESCRIPTOR_cAccumBits_get", _wrap_LAYERPLANEDESCRIPTOR_cAccumBits_get, METH_VARARGS },
	 { "LAYERPLANEDESCRIPTOR_cAccumRedBits_set", _wrap_LAYERPLANEDESCRIPTOR_cAccumRedBits_set, METH_VARARGS },
	 { "LAYERPLANEDESCRIPTOR_cAccumRedBits_get", _wrap_LAYERPLANEDESCRIPTOR_cAccumRedBits_get, METH_VARARGS },
	 { "LAYERPLANEDESCRIPTOR_cAccumGreenBits_set", _wrap_LAYERPLANEDESCRIPTOR_cAccumGreenBits_set, METH_VARARGS },
	 { "LAYERPLANEDESCRIPTOR_cAccumGreenBits_get", _wrap_LAYERPLANEDESCRIPTOR_cAccumGreenBits_get, METH_VARARGS },
	 { "LAYERPLANEDESCRIPTOR_cAccumBlueBits_set", _wrap_LAYERPLANEDESCRIPTOR_cAccumBlueBits_set, METH_VARARGS },
	 { "LAYERPLANEDESCRIPTOR_cAccumBlueBits_get", _wrap_LAYERPLANEDESCRIPTOR_cAccumBlueBits_get, METH_VARARGS },
	 { "LAYERPLANEDESCRIPTOR_cAccumAlphaBits_set", _wrap_LAYERPLANEDESCRIPTOR_cAccumAlphaBits_set, METH_VARARGS },
	 { "LAYERPLANEDESCRIPTOR_cAccumAlphaBits_get", _wrap_LAYERPLANEDESCRIPTOR_cAccumAlphaBits_get, METH_VARARGS },
	 { "LAYERPLANEDESCRIPTOR_cDepthBits_set", _wrap_LAYERPLANEDESCRIPTOR_cDepthBits_set, METH_VARARGS },
	 { "LAYERPLANEDESCRIPTOR_cDepthBits_get", _wrap_LAYERPLANEDESCRIPTOR_cDepthBits_get, METH_VARARGS },
	 { "LAYERPLANEDESCRIPTOR_cStencilBits_set", _wrap_LAYERPLANEDESCRIPTOR_cStencilBits_set, METH_VARARGS },
	 { "LAYERPLANEDESCRIPTOR_cStencilBits_get", _wrap_LAYERPLANEDESCRIPTOR_cStencilBits_get, METH_VARARGS },
	 { "LAYERPLANEDESCRIPTOR_cAuxBuffers_set", _wrap_LAYERPLANEDESCRIPTOR_cAuxBuffers_set, METH_VARARGS },
	 { "LAYERPLANEDESCRIPTOR_cAuxBuffers_get", _wrap_LAYERPLANEDESCRIPTOR_cAuxBuffers_get, METH_VARARGS },
	 { "LAYERPLANEDESCRIPTOR_iLayerPlane_set", _wrap_LAYERPLANEDESCRIPTOR_iLayerPlane_set, METH_VARARGS },
	 { "LAYERPLANEDESCRIPTOR_iLayerPlane_get", _wrap_LAYERPLANEDESCRIPTOR_iLayerPlane_get, METH_VARARGS },
	 { "LAYERPLANEDESCRIPTOR_bReserved_set", _wrap_LAYERPLANEDESCRIPTOR_bReserved_set, METH_VARARGS },
	 { "LAYERPLANEDESCRIPTOR_bReserved_get", _wrap_LAYERPLANEDESCRIPTOR_bReserved_get, METH_VARARGS },
	 { "LAYERPLANEDESCRIPTOR_crTransparent_set", _wrap_LAYERPLANEDESCRIPTOR_crTransparent_set, METH_VARARGS },
	 { "LAYERPLANEDESCRIPTOR_crTransparent_get", _wrap_LAYERPLANEDESCRIPTOR_crTransparent_get, METH_VARARGS },
	 { "new_LAYERPLANEDESCRIPTOR", _wrap_new_LAYERPLANEDESCRIPTOR, METH_VARARGS },
	 { "delete_LAYERPLANEDESCRIPTOR", _wrap_delete_LAYERPLANEDESCRIPTOR, METH_VARARGS },
	 { NULL, NULL }
};

#ifdef __cplusplus
}
#endif

/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */

static swig_type_info _swigt__p_GLYPHMETRICSFLOAT[] = {{"_p_GLYPHMETRICSFLOAT", 0, "GLYPHMETRICSFLOAT *"},{"_p_GLYPHMETRICSFLOAT"},{0}};
static swig_type_info _swigt__p_q_const__PIXELFORMATDESCRIPTOR[] = {{"_p_q_const__PIXELFORMATDESCRIPTOR", 0, "PIXELFORMATDESCRIPTOR const *"},{"_p_q_const__PIXELFORMATDESCRIPTOR"},{0}};
static swig_type_info _swigt__p_PIXELFORMATDESCRIPTOR[] = {{"_p_PIXELFORMATDESCRIPTOR", 0, "PIXELFORMATDESCRIPTOR *"},{"_p_PIXELFORMATDESCRIPTOR"},{0}};
static swig_type_info _swigt__p_LAYERPLANEDESCRIPTOR[] = {{"_p_LAYERPLANEDESCRIPTOR", 0, "LAYERPLANEDESCRIPTOR *"},{"_p_LAYERPLANEDESCRIPTOR"},{0}};
static swig_type_info _swigt__p_POINTFLOAT[] = {{"_p_POINTFLOAT", 0, "POINTFLOAT *"},{"_p_POINTFLOAT"},{0}};

static swig_type_info *swig_types_initial[] = {
_swigt__p_GLYPHMETRICSFLOAT, 
_swigt__p_q_const__PIXELFORMATDESCRIPTOR, 
_swigt__p_PIXELFORMATDESCRIPTOR, 
_swigt__p_LAYERPLANEDESCRIPTOR, 
_swigt__p_POINTFLOAT, 
0
};


/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */

static swig_const_info swig_const_table[] = {
    { SWIG_PY_STRING, "__version__", 0, 0, (void *) "1.29", 0 }, 
    { SWIG_PY_STRING, "__date__", 0, 0, (void *) "2001/08/17 16:54:07", 0 }, 
    { SWIG_PY_INT,     "__api_version__", (long) 1024, 0, 0, 0},
    { SWIG_PY_STRING, "__author__", 0, 0, (void *) "Tarn Weisner Burton <twburton@users.sourceforge.net>", 0 }, 
    { SWIG_PY_STRING, "__doc__", 0, 0, (void *) "This module provides access to the WGL API.\n\nDocumentation:\n    MSDN:  http://msdn.microsoft.com/library/?url=/library/en-us/opengl/hh/opengl/ntopnglo_0e0o.asp?frame=true", 0 }, 
    { SWIG_PY_INT,     "PFD_TYPE_RGBA", (long) 0, 0, 0, 0},
    { SWIG_PY_INT,     "PFD_TYPE_COLORINDEX", (long) 1, 0, 0, 0},
    { SWIG_PY_INT,     "PFD_MAIN_PLANE", (long) 0, 0, 0, 0},
    { SWIG_PY_INT,     "PFD_OVERLAY_PLANE", (long) 1, 0, 0, 0},
    { SWIG_PY_INT,     "PFD_UNDERLAY_PLANE", (long) (-1), 0, 0, 0},
    { SWIG_PY_INT,     "PFD_DOUBLEBUFFER", (long) 0x00000001, 0, 0, 0},
    { SWIG_PY_INT,     "PFD_STEREO", (long) 0x00000002, 0, 0, 0},
    { SWIG_PY_INT,     "PFD_DRAW_TO_WINDOW", (long) 0x00000004, 0, 0, 0},
    { SWIG_PY_INT,     "PFD_DRAW_TO_BITMAP", (long) 0x00000008, 0, 0, 0},
    { SWIG_PY_INT,     "PFD_SUPPORT_GDI", (long) 0x00000010, 0, 0, 0},
    { SWIG_PY_INT,     "PFD_SUPPORT_OPENGL", (long) 0x00000020, 0, 0, 0},
    { SWIG_PY_INT,     "PFD_GENERIC_FORMAT", (long) 0x00000040, 0, 0, 0},
    { SWIG_PY_INT,     "PFD_NEED_PALETTE", (long) 0x00000080, 0, 0, 0},
    { SWIG_PY_INT,     "PFD_NEED_SYSTEM_PALETTE", (long) 0x00000100, 0, 0, 0},
    { SWIG_PY_INT,     "PFD_SWAP_EXCHANGE", (long) 0x00000200, 0, 0, 0},
    { SWIG_PY_INT,     "PFD_SWAP_COPY", (long) 0x00000400, 0, 0, 0},
    { SWIG_PY_INT,     "PFD_SWAP_LAYER_BUFFERS", (long) 0x00000800, 0, 0, 0},
    { SWIG_PY_INT,     "PFD_GENERIC_ACCELERATED", (long) 0x00001000, 0, 0, 0},
    { SWIG_PY_INT,     "PFD_SUPPORT_DIRECTDRAW", (long) 0x00002000, 0, 0, 0},
    { SWIG_PY_INT,     "PFD_DEPTH_DONTCARE", (long) 0x20000000, 0, 0, 0},
    { SWIG_PY_INT,     "PFD_DOUBLEBUFFER_DONTCARE", (long) 0x40000000, 0, 0, 0},
    { SWIG_PY_INT,     "PFD_STEREO_DONTCARE", (long) 0x80000000, 0, 0, 0},
    { SWIG_PY_INT,     "WGL_FONT_LINES", (long) 0, 0, 0, 0},
    { SWIG_PY_INT,     "WGL_FONT_POLYGONS", (long) 1, 0, 0, 0},
    { SWIG_PY_INT,     "LPD_DOUBLEBUFFER", (long) 0x00000001, 0, 0, 0},
    { SWIG_PY_INT,     "LPD_STEREO", (long) 0x00000002, 0, 0, 0},
    { SWIG_PY_INT,     "LPD_SUPPORT_GDI", (long) 0x00000010, 0, 0, 0},
    { SWIG_PY_INT,     "LPD_SUPPORT_OPENGL", (long) 0x00000020, 0, 0, 0},
    { SWIG_PY_INT,     "LPD_SHARE_DEPTH", (long) 0x00000040, 0, 0, 0},
    { SWIG_PY_INT,     "LPD_SHARE_STENCIL", (long) 0x00000080, 0, 0, 0},
    { SWIG_PY_INT,     "LPD_SHARE_ACCUM", (long) 0x00000100, 0, 0, 0},
    { SWIG_PY_INT,     "LPD_SWAP_EXCHANGE", (long) 0x00000200, 0, 0, 0},
    { SWIG_PY_INT,     "LPD_SWAP_COPY", (long) 0x00000400, 0, 0, 0},
    { SWIG_PY_INT,     "LPD_TRANSPARENT", (long) 0x00001000, 0, 0, 0},
    { SWIG_PY_INT,     "LPD_TYPE_RGBA", (long) 0, 0, 0, 0},
    { SWIG_PY_INT,     "LPD_TYPE_COLORINDEX", (long) 1, 0, 0, 0},
    { SWIG_PY_INT,     "WGL_SWAP_MAIN_PLANE", (long) 0x00000001, 0, 0, 0},
    { SWIG_PY_INT,     "WGL_SWAP_OVERLAY1", (long) 0x00000002, 0, 0, 0},
    { SWIG_PY_INT,     "WGL_SWAP_OVERLAY2", (long) 0x00000004, 0, 0, 0},
    { SWIG_PY_INT,     "WGL_SWAP_OVERLAY3", (long) 0x00000008, 0, 0, 0},
    { SWIG_PY_INT,     "WGL_SWAP_OVERLAY4", (long) 0x00000010, 0, 0, 0},
    { SWIG_PY_INT,     "WGL_SWAP_OVERLAY5", (long) 0x00000020, 0, 0, 0},
    { SWIG_PY_INT,     "WGL_SWAP_OVERLAY6", (long) 0x00000040, 0, 0, 0},
    { SWIG_PY_INT,     "WGL_SWAP_OVERLAY7", (long) 0x00000080, 0, 0, 0},
    { SWIG_PY_INT,     "WGL_SWAP_OVERLAY8", (long) 0x00000100, 0, 0, 0},
    { SWIG_PY_INT,     "WGL_SWAP_OVERLAY9", (long) 0x00000200, 0, 0, 0},
    { SWIG_PY_INT,     "WGL_SWAP_OVERLAY10", (long) 0x00000400, 0, 0, 0},
    { SWIG_PY_INT,     "WGL_SWAP_OVERLAY11", (long) 0x00000800, 0, 0, 0},
    { SWIG_PY_INT,     "WGL_SWAP_OVERLAY12", (long) 0x00001000, 0, 0, 0},
    { SWIG_PY_INT,     "WGL_SWAP_OVERLAY13", (long) 0x00002000, 0, 0, 0},
    { SWIG_PY_INT,     "WGL_SWAP_OVERLAY14", (long) 0x00004000, 0, 0, 0},
    { SWIG_PY_INT,     "WGL_SWAP_OVERLAY15", (long) 0x00008000, 0, 0, 0},
    { SWIG_PY_INT,     "WGL_SWAP_UNDERLAY1", (long) 0x00010000, 0, 0, 0},
    { SWIG_PY_INT,     "WGL_SWAP_UNDERLAY2", (long) 0x00020000, 0, 0, 0},
    { SWIG_PY_INT,     "WGL_SWAP_UNDERLAY3", (long) 0x00040000, 0, 0, 0},
    { SWIG_PY_INT,     "WGL_SWAP_UNDERLAY4", (long) 0x00080000, 0, 0, 0},
    { SWIG_PY_INT,     "WGL_SWAP_UNDERLAY5", (long) 0x00100000, 0, 0, 0},
    { SWIG_PY_INT,     "WGL_SWAP_UNDERLAY6", (long) 0x00200000, 0, 0, 0},
    { SWIG_PY_INT,     "WGL_SWAP_UNDERLAY7", (long) 0x00400000, 0, 0, 0},
    { SWIG_PY_INT,     "WGL_SWAP_UNDERLAY8", (long) 0x00800000, 0, 0, 0},
    { SWIG_PY_INT,     "WGL_SWAP_UNDERLAY9", (long) 0x01000000, 0, 0, 0},
    { SWIG_PY_INT,     "WGL_SWAP_UNDERLAY10", (long) 0x02000000, 0, 0, 0},
    { SWIG_PY_INT,     "WGL_SWAP_UNDERLAY11", (long) 0x04000000, 0, 0, 0},
    { SWIG_PY_INT,     "WGL_SWAP_UNDERLAY12", (long) 0x08000000, 0, 0, 0},
    { SWIG_PY_INT,     "WGL_SWAP_UNDERLAY13", (long) 0x10000000, 0, 0, 0},
    { SWIG_PY_INT,     "WGL_SWAP_UNDERLAY14", (long) 0x20000000, 0, 0, 0},
    { SWIG_PY_INT,     "WGL_SWAP_UNDERLAY15", (long) 0x40000000, 0, 0, 0},
{0}};

static PyObject *SWIG_globals;
#ifdef __cplusplus
extern "C" 
#endif
SWIGEXPORT(void) init__init___(void) {
    PyObject *m, *d;
    int i;
    SWIG_globals = SWIG_newvarlink();
    m = Py_InitModule("__init___", __init___Methods);
    d = PyModule_GetDict(m);
    for (i = 0; swig_types_initial[i]; i++) {
        swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
    }
    
    #ifdef NUMERIC
    PyArray_API = NULL;
    import_array();
    init_util();
    PyErr_Clear();
    #endif
    
    {
        PyObject *util = PyImport_ImportModule("OpenGL.GL.__init___");
        if (util)
        {
            PyObject *api_object = PyDict_GetItemString(PyModule_GetDict(util), "_util_API");
            if (PyCObject_Check(api_object)) _util_API = (util_API*)PyCObject_AsVoidPtr(api_object);
        }
    }
    SWIG_InstallConstants(d,swig_const_table);
}

