File: glxlib.i

package info (click to toggle)
mgltools-opengltk 1.5.7-1
  • links: PTS, VCS
  • area: non-free
  • in suites: stretch
  • size: 8,592 kB
  • ctags: 38,393
  • sloc: ansic: 98,617; python: 3,818; cpp: 1,943; sh: 1,332; tcl: 1,127; makefile: 65
file content (33 lines) | stat: -rw-r--r-- 557 bytes parent folder | download | duplicates (4)
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;