1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
/*
* copyright_notice
*/
%module glxlib
%{
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <X11/Xlib.h>
#include <GL/glx.h>
#include <pythonplus.h>
static int glx_DefaultScreen( Display* dpy)
{
return DefaultScreen( dpy);
}
%}
%include typemaps.i
%include gltypedef.i
%include gltypemap.i
%include glexception.i
typedef int Bool;
%rename( DefaultScreen) glx_DefaultScreen;
%include "glx_i.h"
Display* XOpenDisplay( char const* display_name);
int XCloseDisplay( Display* display);
%constant GLXContext GLXContext_Null = NULL;
|