3
Input used to generate the Python module "glmodule.c".
4
The stub generator is a Python script called "cgen.py".
6
Each definition must be contained on one line:
8
<returntype> <name> <type> <arg> <type> <arg>
10
<returntype> can be: void, short, long (XXX maybe others?)
12
<type> can be: char, string, short, float, long, or double
13
string indicates a null terminated string;
14
if <type> is char and <arg> begins with a *, the * is stripped
15
and <type> is changed into string
17
<arg> has the form <mode> or <mode>[<subscript>]
20
r: arg is received (arg is a pointer)
21
and <subscript> can be (N and I are numbers):
28
In the case where the subscript consists of two parts
29
separated by *, the first part is the width of the matrix, and
30
the second part is the length of the matrix. This order is
31
opposite from the order used in C to declare a two-dimensional
36
* An attempt has been made to make this module switch threads on qread
37
* calls. It is far from safe, though.
45
extern int textwritemask();
46
extern int pagewritemask();
52
#include "cgensupport.h"
55
Some stubs are too complicated for the stub generator.
56
We can include manually written versions of them here.
57
A line starting with '%' gives the name of the function so the stub
58
generator can include it in the table of functions.
63
gl_qread(PyObject *self, PyObject *args)
67
Py_BEGIN_ALLOW_THREADS
68
retval = qread( & arg1 );
70
{ PyObject *v = PyTuple_New( 2 );
71
if (v == NULL) return NULL;
72
PyTuple_SetItem(v, 0, mknewlongobject(retval));
73
PyTuple_SetItem(v, 1, mknewshortobject(arg1));
80
varray -- an array of v.. calls.
81
The argument is an array (maybe list or tuple) of points.
82
Each point must be a tuple or list of coordinates (x, y, z).
83
The points may be 2- or 3-dimensional but must all have the
84
same dimension. Float and int values may be mixed however.
85
The points are always converted to 3D double precision points
86
by assuming z=0.0 if necessary (as indicated in the man page),
87
and for each point v3d() is called.
92
gl_varray(PyObject *self, PyObject *args)
97
PyObject * (*getitem)(PyObject *, int);
99
if (!PyArg_GetObject(args, 1, 0, &v))
102
if (PyList_Check(v)) {
104
getitem = PyList_GetItem;
106
else if (PyTuple_Check(v)) {
108
getitem = PyTuple_GetItem;
120
w = (*getitem)(v, 0);
125
else if (PyList_Check(w)) {
126
width = PyList_Size(w);
128
else if (PyTuple_Check(w)) {
129
width = PyTuple_Size(w);
143
for (i = 0; i < n; i++) {
144
w = (*getitem)(v, i);
145
if (!PyArg_GetDoubleArray(w, 1, 0, width, vec))
155
vnarray, nvarray -- an array of n3f and v3f calls.
156
The argument is an array (list or tuple) of pairs of points and normals.
157
Each pair is a tuple (NOT a list) of a point and a normal for that point.
158
Each point or normal must be a tuple (NOT a list) of coordinates (x, y, z).
159
Three coordinates must be given. Float and int values may be mixed.
160
For each pair, n3f() is called for the normal, and then v3f() is called
163
vnarray and nvarray differ only in the order of the vector and normal in
164
the pair: vnarray expects (v, n) while nvarray expects (n, v).
167
static PyObject *gen_nvarray(); /* Forward */
171
gl_nvarray(PyObject *self, PyObject *args)
173
return gen_nvarray(args, 0);
178
gl_vnarray(PyObject *self, PyObject *args)
180
return gen_nvarray(args, 1);
183
/* Generic, internal version of {nv,nv}array: inorm indicates the
184
argument order, 0: normal first, 1: vector first. */
187
gen_nvarray(PyObject *args, int inorm)
189
PyObject *v, *w, *wnorm, *wvec;
191
float norm[3], vec[3];
192
PyObject * (*getitem)(PyObject *, int);
194
if (!PyArg_GetObject(args, 1, 0, &v))
197
if (PyList_Check(v)) {
199
getitem = PyList_GetItem;
201
else if (PyTuple_Check(v)) {
203
getitem = PyTuple_GetItem;
210
for (i = 0; i < n; i++) {
211
w = (*getitem)(v, i);
212
if (!PyTuple_Check(w) || PyTuple_Size(w) != 2) {
216
wnorm = PyTuple_GetItem(w, inorm);
217
wvec = PyTuple_GetItem(w, 1 - inorm);
218
if (!PyArg_GetFloatArray(wnorm, 1, 0, 3, norm) ||
219
!PyArg_GetFloatArray(wvec, 1, 0, 3, vec))
229
/* nurbssurface(s_knots[], t_knots[], ctl[][], s_order, t_order, type).
230
The dimensions of ctl[] are computed as follows:
231
[len(s_knots) - s_order], [len(t_knots) - t_order]
236
gl_nurbssurface(PyObject *self, PyObject *args)
247
long s_byte_stride, t_byte_stride;
250
PyObject *v, *w, *pt;
252
if (!PyArg_GetLongArraySize(args, 6, 0, &arg1))
254
if ((arg2 = PyMem_NEW(double, arg1 )) == NULL) {
255
return PyErr_NoMemory();
257
if (!PyArg_GetDoubleArray(args, 6, 0, arg1 , arg2))
259
if (!PyArg_GetLongArraySize(args, 6, 1, &arg3))
261
if ((arg4 = PyMem_NEW(double, arg3 )) == NULL) {
262
return PyErr_NoMemory();
264
if (!PyArg_GetDoubleArray(args, 6, 1, arg3 , arg4))
266
if (!PyArg_GetLong(args, 6, 3, &arg6))
268
if (!PyArg_GetLong(args, 6, 4, &arg7))
270
if (!PyArg_GetLong(args, 6, 5, &arg8))
274
else if (arg8 == N_XYZW)
280
s_nctl = arg1 - arg6;
281
t_nctl = arg3 - arg7;
282
if (!PyArg_GetObject(args, 6, 2, &v))
284
if (!PyList_Check(v) || PyList_Size(v) != s_nctl) {
288
if ((arg5 = PyMem_NEW(double, s_nctl*t_nctl*ncoords )) == NULL) {
289
return PyErr_NoMemory();
292
for (s = 0; s < s_nctl; s++) {
293
w = PyList_GetItem(v, s);
294
if (w == NULL || !PyList_Check(w) ||
295
PyList_Size(w) != t_nctl) {
299
for (t = 0; t < t_nctl; t++) {
300
pt = PyList_GetItem(w, t);
301
if (!PyArg_GetDoubleArray(pt, 1, 0, ncoords, pnext))
306
s_byte_stride = sizeof(double) * ncoords;
307
t_byte_stride = s_byte_stride * s_nctl;
308
nurbssurface( arg1 , arg2 , arg3 , arg4 ,
309
s_byte_stride , t_byte_stride , arg5 , arg6 , arg7 , arg8 );
317
/* nurbscurve(knots, ctlpoints, order, type).
318
The length of ctlpoints is len(knots)-order. */
322
gl_nurbscurve(PyObject *self, PyObject *args)
330
int ncoords, npoints;
334
if (!PyArg_GetLongArraySize(args, 4, 0, &arg1))
336
if ((arg2 = PyMem_NEW(double, arg1 )) == NULL) {
337
return PyErr_NoMemory();
339
if (!PyArg_GetDoubleArray(args, 4, 0, arg1 , arg2))
341
if (!PyArg_GetLong(args, 4, 2, &arg5))
343
if (!PyArg_GetLong(args, 4, 3, &arg6))
347
else if (arg6 == N_STW)
353
npoints = arg1 - arg5;
354
if (!PyArg_GetObject(args, 4, 1, &v))
356
if (!PyList_Check(v) || PyList_Size(v) != npoints) {
360
if ((arg4 = PyMem_NEW(double, npoints*ncoords )) == NULL) {
361
return PyErr_NoMemory();
364
for (i = 0; i < npoints; i++) {
365
if (!PyArg_GetDoubleArray(PyList_GetItem(v, i), 1, 0, ncoords, pnext))
369
arg3 = (sizeof(double)) * ncoords;
370
nurbscurve( arg1 , arg2 , arg3 , arg4 , arg5 , arg6 );
377
/* pwlcurve(points, type).
378
Points is a list of points. Type must be N_ST. */
382
gl_pwlcurve(PyObject *self, PyObject *args)
386
double *data, *pnext;
387
long npoints, ncoords;
389
if (!PyArg_GetObject(args, 2, 0, &v))
391
if (!PyArg_GetLong(args, 2, 1, &type))
393
if (!PyList_Check(v)) {
397
npoints = PyList_Size(v);
404
if ((data = PyMem_NEW(double, npoints*ncoords)) == NULL) {
405
return PyErr_NoMemory();
408
for (i = 0; i < npoints; i++) {
409
if (!PyArg_GetDoubleArray(PyList_GetItem(v, i), 1, 0, ncoords, pnext))
413
pwlcurve(npoints, data, sizeof(double)*ncoords, type);
420
/* Picking and Selecting */
422
static short *pickbuffer = NULL;
423
static long pickbuffersize;
426
pick_select(PyObject *args, void (*func)())
428
if (!PyArg_GetLong(args, 1, 0, &pickbuffersize))
430
if (pickbuffer != NULL) {
431
PyErr_SetString(PyExc_RuntimeError,
432
"pick/gselect: already picking/selecting");
435
if ((pickbuffer = PyMem_NEW(short, pickbuffersize)) == NULL) {
436
return PyErr_NoMemory();
438
(*func)(pickbuffer, pickbuffersize);
444
endpick_select(long (*func)())
448
if (pickbuffer == NULL) {
449
PyErr_SetString(PyExc_RuntimeError,
450
"endpick/endselect: not in pick/select mode");
453
nhits = (*func)(pickbuffer);
455
nhits = -nhits; /* How to report buffer overflow otherwise? */
457
/* Scan the buffer to see how many integers */
459
for (; nhits > 0; nhits--) {
460
n += 1 + pickbuffer[n];
465
/* XXX Could do it nicer and interpret the data structure here,
466
returning a list of lists. But this can be done in Python... */
467
for (i = 0; i < n; i++) {
468
w = PyInt_FromLong((long)pickbuffer[i]);
473
PyList_SetItem(v, i, w);
475
PyMem_DEL(pickbuffer);
480
extern void pick(), gselect();
481
extern long endpick(), endselect();
483
static PyObject *gl_pick(PyObject *self, PyObject *args)
485
return pick_select(args, pick);
488
static PyObject *gl_endpick(PyObject *self)
490
return endpick_select(endpick);
493
static PyObject *gl_gselect(PyObject *self, PyObject *args)
495
return pick_select(args, gselect);
498
static PyObject *gl_endselect(PyObject *self)
500
return endpick_select(endselect);
504
/* XXX The generator botches this one. Here's a quick hack to fix it. */
506
/* XXX The generator botches this one. Here's a quick hack to fix it. */
510
gl_getmatrix(PyObject *self, PyObject *args)
518
return PyErr_NoMemory();
520
for (i = 0; i < 4; i++) for (j = 0; j < 4; j++) {
521
w = mknewfloatobject(arg1[i][j]);
526
PyList_SetItem(v, i*4+j, w);
531
/* Here's an alternate version that returns a 4x4 matrix instead of
532
a vector. Unfortunately it is incompatible with loadmatrix and
537
gl_altgetmatrix(PyObject *self, PyObject *args)
547
for (i = 0; i < 4; i++) {
553
PyList_SetItem(v, i, w);
555
for (i = 0; i < 4; i++) {
556
for (j = 0; j < 4; j++) {
557
w = mknewfloatobject(arg1[i][j]);
562
PyList_SetItem(PyList_GetItem(v, i), j, w);
570
gl_lrectwrite(PyObject *self, PyObject *args)
581
if (!PyArg_GetShort(args, 5, 0, &x1))
583
if (!PyArg_GetShort(args, 5, 1, &y1))
585
if (!PyArg_GetShort(args, 5, 2, &x2))
587
if (!PyArg_GetShort(args, 5, 3, &y2))
589
if (!PyArg_GetString(args, 5, 4, &parray))
591
if (!PyArg_GetObject(args, 5, 4, &s))
594
/* Don't check this, it breaks experiments with pixmode(PM_SIZE, ...) */
595
pixcount = (long)(x2+1-x1) * (long)(y2+1-y1);
596
if (!PyString_Check(s) || PyString_Size(s) != pixcount*sizeof(long)) {
597
PyErr_SetString(PyExc_RuntimeError,
598
"string arg to lrectwrite has wrong size");
602
lrectwrite( x1 , y1 , x2 , y2 , (unsigned long *) parray );
609
gl_lrectread(PyObject *self, PyObject *args)
617
if (!PyArg_GetShort(args, 4, 0, &x1))
619
if (!PyArg_GetShort(args, 4, 1, &y1))
621
if (!PyArg_GetShort(args, 4, 2, &x2))
623
if (!PyArg_GetShort(args, 4, 3, &y2))
625
pixcount = (long)(x2+1-x1) * (long)(y2+1-y1);
626
parray = PyString_FromStringAndSize((char *)NULL, pixcount*sizeof(long));
628
return NULL; /* No memory */
629
lrectread(x1, y1, x2, y2, (unsigned long *) PyString_AsString(parray));
635
gl_readdisplay(PyObject *self, PyObject *args)
637
short x1, y1, x2, y2;
638
unsigned long *parray, hints;
642
if ( !PyArg_Parse(args, "hhhhl", &x1, &y1, &x2, &y2, &hints) )
644
size = (long)(x2+1-x1) * (long)(y2+1-y1);
645
rv = PyString_FromStringAndSize((char *)NULL, size*sizeof(long));
648
parray = (unsigned long *)PyString_AsString(rv);
649
size_ret = readdisplay(x1, y1, x2, y2, parray, hints);
650
if ( size_ret != size ) {
651
printf("gl_readdisplay: got %ld pixels, expected %ld\n",
653
PyErr_SetString(PyExc_RuntimeError, "readdisplay returned unexpected length");
659
/* Desperately needed, here are tools to compress and decompress
660
the data manipulated by lrectread/lrectwrite.
662
gl.packrect(width, height, packfactor, bigdata) --> smalldata
663
makes 'bigdata' 4*(packfactor**2) times smaller by:
664
- turning it into B/W (a factor 4)
665
- replacing squares of size pacfactor by one
668
gl.unpackrect(width, height, packfactor, smalldata) --> bigdata
669
is the inverse; the numeric arguments must be *the same*.
671
Both work best if width and height are multiples of packfactor
672
(in fact unpackrect will leave garbage bytes).
677
gl_packrect(PyObject *self, PyObject *args)
679
long width, height, packfactor;
681
PyObject *unpacked, *packed;
682
int pixcount, packedcount, x, y, r, g, b;
685
unsigned long *parray;
686
if (!PyArg_GetLong(args, 4, 0, &width))
688
if (!PyArg_GetLong(args, 4, 1, &height))
690
if (!PyArg_GetLong(args, 4, 2, &packfactor))
692
if (!PyArg_GetString(args, 4, 3, &s)) /* For type checking only */
694
if (!PyArg_GetObject(args, 4, 3, &unpacked))
696
if (width <= 0 || height <= 0 || packfactor <= 0) {
697
PyErr_SetString(PyExc_RuntimeError, "packrect args must be > 0");
700
pixcount = width*height;
701
packedcount = ((width+packfactor-1)/packfactor) *
702
((height+packfactor-1)/packfactor);
703
if (PyString_Size(unpacked) != pixcount*sizeof(long)) {
704
PyErr_SetString(PyExc_RuntimeError,
705
"string arg to packrect has wrong size");
708
packed = PyString_FromStringAndSize((char *)NULL, packedcount);
711
parray = (unsigned long *) PyString_AsString(unpacked);
712
p = (unsigned char *) PyString_AsString(packed);
713
for (y = 0; y < height; y += packfactor, parray += packfactor*width) {
714
for (x = 0; x < width; x += packfactor) {
717
g = (pixel >> 8) & 0xff;
718
b = (pixel >> 16) & 0xff;
719
*p++ = (30*r+59*g+11*b) / 100;
726
static unsigned long unpacktab[256];
727
static int unpacktab_inited = 0;
730
gl_unpackrect(PyObject *self, PyObject *args)
732
long width, height, packfactor;
734
PyObject *unpacked, *packed;
735
int pixcount, packedcount;
736
register unsigned char *p;
737
register unsigned long *parray;
738
if (!unpacktab_inited) {
740
for (white = 256; --white >= 0; )
741
unpacktab[white] = white * 0x010101L;
744
if (!PyArg_GetLong(args, 4, 0, &width))
746
if (!PyArg_GetLong(args, 4, 1, &height))
748
if (!PyArg_GetLong(args, 4, 2, &packfactor))
750
if (!PyArg_GetString(args, 4, 3, &s)) /* For type checking only */
752
if (!PyArg_GetObject(args, 4, 3, &packed))
754
if (width <= 0 || height <= 0 || packfactor <= 0) {
755
PyErr_SetString(PyExc_RuntimeError, "packrect args must be > 0");
758
pixcount = width*height;
759
packedcount = ((width+packfactor-1)/packfactor) *
760
((height+packfactor-1)/packfactor);
761
if (PyString_Size(packed) != packedcount) {
762
PyErr_SetString(PyExc_RuntimeError,
763
"string arg to unpackrect has wrong size");
766
unpacked = PyString_FromStringAndSize((char *)NULL, pixcount*sizeof(long));
767
if (unpacked == NULL)
769
parray = (unsigned long *) PyString_AsString(unpacked);
770
p = (unsigned char *) PyString_AsString(packed);
771
if (packfactor == 1 && width*height > 0) {
772
/* Just expand bytes to longs */
773
register int x = width * height;
775
*parray++ = unpacktab[*p++];
780
for (y = 0; y < height-packfactor+1;
781
y += packfactor, parray += packfactor*width) {
783
for (x = 0; x < width-packfactor+1; x += packfactor) {
784
register unsigned long pixel = unpacktab[*p++];
786
for (i = packfactor*width; (i-=width) >= 0;) {
788
for (j = packfactor; --j >= 0; )
789
parray[i+x+j] = pixel;
798
gl_gversion(PyObject *self, PyObject *args)
802
return PyString_FromString(buf);
806
/* void clear - Manual because of clash with termcap */
808
gl_clear(PyObject *self, PyObject *args)
815
/* End of manually written stubs */
821
gl_getshade(PyObject *self, PyObject *args)
824
retval = getshade( );
825
return mknewlongobject(retval);
828
/* void devport short s long s */
831
gl_devport(PyObject *self, PyObject *args)
835
if (!getishortarg(args, 2, 0, &arg1))
837
if (!getilongarg(args, 2, 1, &arg2))
839
devport( arg1 , arg2 );
844
/* void rdr2i long s long s */
847
gl_rdr2i(PyObject *self, PyObject *args)
851
if (!getilongarg(args, 2, 0, &arg1))
853
if (!getilongarg(args, 2, 1, &arg2))
855
rdr2i( arg1 , arg2 );
860
/* void rectfs short s short s short s short s */
863
gl_rectfs(PyObject *self, PyObject *args)
869
if (!getishortarg(args, 4, 0, &arg1))
871
if (!getishortarg(args, 4, 1, &arg2))
873
if (!getishortarg(args, 4, 2, &arg3))
875
if (!getishortarg(args, 4, 3, &arg4))
877
rectfs( arg1 , arg2 , arg3 , arg4 );
882
/* void rects short s short s short s short s */
885
gl_rects(PyObject *self, PyObject *args)
891
if (!getishortarg(args, 4, 0, &arg1))
893
if (!getishortarg(args, 4, 1, &arg2))
895
if (!getishortarg(args, 4, 2, &arg3))
897
if (!getishortarg(args, 4, 3, &arg4))
899
rects( arg1 , arg2 , arg3 , arg4 );
904
/* void rmv2i long s long s */
907
gl_rmv2i(PyObject *self, PyObject *args)
911
if (!getilongarg(args, 2, 0, &arg1))
913
if (!getilongarg(args, 2, 1, &arg2))
915
rmv2i( arg1 , arg2 );
923
gl_noport(PyObject *self, PyObject *args)
930
/* void popviewport */
933
gl_popviewport(PyObject *self, PyObject *args)
940
/* void clearhitcode */
943
gl_clearhitcode(PyObject *self, PyObject *args)
953
gl_closeobj(PyObject *self, PyObject *args)
963
gl_cursoff(PyObject *self, PyObject *args)
973
gl_curson(PyObject *self, PyObject *args)
980
/* void doublebuffer */
983
gl_doublebuffer(PyObject *self, PyObject *args)
993
gl_finish(PyObject *self, PyObject *args)
1003
gl_gconfig(PyObject *self, PyObject *args)
1013
gl_ginit(PyObject *self, PyObject *args)
1023
gl_greset(PyObject *self, PyObject *args)
1033
gl_multimap(PyObject *self, PyObject *args)
1043
gl_onemap(PyObject *self, PyObject *args)
1050
/* void popattributes */
1053
gl_popattributes(PyObject *self, PyObject *args)
1060
/* void popmatrix */
1063
gl_popmatrix(PyObject *self, PyObject *args)
1070
/* void pushattributes */
1073
gl_pushattributes(PyObject *self, PyObject *args)
1080
/* void pushmatrix */
1083
gl_pushmatrix(PyObject *self, PyObject *args)
1090
/* void pushviewport */
1093
gl_pushviewport(PyObject *self, PyObject *args)
1103
gl_qreset(PyObject *self, PyObject *args)
1113
gl_RGBmode(PyObject *self, PyObject *args)
1120
/* void singlebuffer */
1123
gl_singlebuffer(PyObject *self, PyObject *args)
1130
/* void swapbuffers */
1133
gl_swapbuffers(PyObject *self, PyObject *args)
1143
gl_gsync(PyObject *self, PyObject *args)
1153
gl_gflush(PyObject *self, PyObject *args)
1163
gl_tpon(PyObject *self, PyObject *args)
1173
gl_tpoff(PyObject *self, PyObject *args)
1183
gl_clkon(PyObject *self, PyObject *args)
1193
gl_clkoff(PyObject *self, PyObject *args)
1203
gl_ringbell(PyObject *self, PyObject *args)
1213
gl_gbegin(PyObject *self, PyObject *args)
1223
gl_textinit(PyObject *self, PyObject *args)
1230
/* void initnames */
1233
gl_initnames(PyObject *self, PyObject *args)
1243
gl_pclos(PyObject *self, PyObject *args)
1253
gl_popname(PyObject *self, PyObject *args)
1263
gl_spclos(PyObject *self, PyObject *args)
1273
gl_zclear(PyObject *self, PyObject *args)
1280
/* void screenspace */
1283
gl_screenspace(PyObject *self, PyObject *args)
1290
/* void reshapeviewport */
1293
gl_reshapeviewport(PyObject *self, PyObject *args)
1303
gl_winpush(PyObject *self, PyObject *args)
1313
gl_winpop(PyObject *self, PyObject *args)
1320
/* void foreground */
1323
gl_foreground(PyObject *self, PyObject *args)
1330
/* void endfullscrn */
1333
gl_endfullscrn(PyObject *self, PyObject *args)
1340
/* void endpupmode */
1343
gl_endpupmode(PyObject *self, PyObject *args)
1353
gl_fullscrn(PyObject *self, PyObject *args)
1363
gl_pupmode(PyObject *self, PyObject *args)
1370
/* void winconstraints */
1373
gl_winconstraints(PyObject *self, PyObject *args)
1380
/* void pagecolor short s */
1383
gl_pagecolor(PyObject *self, PyObject *args)
1386
if (!getishortarg(args, 1, 0, &arg1))
1393
/* void textcolor short s */
1396
gl_textcolor(PyObject *self, PyObject *args)
1399
if (!getishortarg(args, 1, 0, &arg1))
1406
/* void color short s */
1409
gl_color(PyObject *self, PyObject *args)
1412
if (!getishortarg(args, 1, 0, &arg1))
1419
/* void curveit short s */
1422
gl_curveit(PyObject *self, PyObject *args)
1425
if (!getishortarg(args, 1, 0, &arg1))
1432
/* void font short s */
1435
gl_font(PyObject *self, PyObject *args)
1438
if (!getishortarg(args, 1, 0, &arg1))
1445
/* void linewidth short s */
1448
gl_linewidth(PyObject *self, PyObject *args)
1451
if (!getishortarg(args, 1, 0, &arg1))
1458
/* void setlinestyle short s */
1461
gl_setlinestyle(PyObject *self, PyObject *args)
1464
if (!getishortarg(args, 1, 0, &arg1))
1466
setlinestyle( arg1 );
1471
/* void setmap short s */
1474
gl_setmap(PyObject *self, PyObject *args)
1477
if (!getishortarg(args, 1, 0, &arg1))
1484
/* void swapinterval short s */
1487
gl_swapinterval(PyObject *self, PyObject *args)
1490
if (!getishortarg(args, 1, 0, &arg1))
1492
swapinterval( arg1 );
1497
/* void writemask short s */
1500
gl_writemask(PyObject *self, PyObject *args)
1503
if (!getishortarg(args, 1, 0, &arg1))
1510
/* void textwritemask short s */
1513
gl_textwritemask(PyObject *self, PyObject *args)
1516
if (!getishortarg(args, 1, 0, &arg1))
1518
textwritemask( arg1 );
1523
/* void qdevice short s */
1526
gl_qdevice(PyObject *self, PyObject *args)
1529
if (!getishortarg(args, 1, 0, &arg1))
1536
/* void unqdevice short s */
1539
gl_unqdevice(PyObject *self, PyObject *args)
1542
if (!getishortarg(args, 1, 0, &arg1))
1549
/* void curvebasis short s */
1552
gl_curvebasis(PyObject *self, PyObject *args)
1555
if (!getishortarg(args, 1, 0, &arg1))
1562
/* void curveprecision short s */
1565
gl_curveprecision(PyObject *self, PyObject *args)
1568
if (!getishortarg(args, 1, 0, &arg1))
1570
curveprecision( arg1 );
1575
/* void loadname short s */
1578
gl_loadname(PyObject *self, PyObject *args)
1581
if (!getishortarg(args, 1, 0, &arg1))
1588
/* void passthrough short s */
1591
gl_passthrough(PyObject *self, PyObject *args)
1594
if (!getishortarg(args, 1, 0, &arg1))
1596
passthrough( arg1 );
1601
/* void pushname short s */
1604
gl_pushname(PyObject *self, PyObject *args)
1607
if (!getishortarg(args, 1, 0, &arg1))
1614
/* void setmonitor short s */
1617
gl_setmonitor(PyObject *self, PyObject *args)
1620
if (!getishortarg(args, 1, 0, &arg1))
1627
/* void setshade short s */
1630
gl_setshade(PyObject *self, PyObject *args)
1633
if (!getishortarg(args, 1, 0, &arg1))
1640
/* void setpattern short s */
1643
gl_setpattern(PyObject *self, PyObject *args)
1646
if (!getishortarg(args, 1, 0, &arg1))
1653
/* void pagewritemask short s */
1656
gl_pagewritemask(PyObject *self, PyObject *args)
1659
if (!getishortarg(args, 1, 0, &arg1))
1661
pagewritemask( arg1 );
1666
/* void callobj long s */
1669
gl_callobj(PyObject *self, PyObject *args)
1672
if (!getilongarg(args, 1, 0, &arg1))
1679
/* void delobj long s */
1682
gl_delobj(PyObject *self, PyObject *args)
1685
if (!getilongarg(args, 1, 0, &arg1))
1692
/* void editobj long s */
1695
gl_editobj(PyObject *self, PyObject *args)
1698
if (!getilongarg(args, 1, 0, &arg1))
1705
/* void makeobj long s */
1708
gl_makeobj(PyObject *self, PyObject *args)
1711
if (!getilongarg(args, 1, 0, &arg1))
1718
/* void maketag long s */
1721
gl_maketag(PyObject *self, PyObject *args)
1724
if (!getilongarg(args, 1, 0, &arg1))
1731
/* void chunksize long s */
1734
gl_chunksize(PyObject *self, PyObject *args)
1737
if (!getilongarg(args, 1, 0, &arg1))
1744
/* void compactify long s */
1747
gl_compactify(PyObject *self, PyObject *args)
1750
if (!getilongarg(args, 1, 0, &arg1))
1757
/* void deltag long s */
1760
gl_deltag(PyObject *self, PyObject *args)
1763
if (!getilongarg(args, 1, 0, &arg1))
1770
/* void lsrepeat long s */
1773
gl_lsrepeat(PyObject *self, PyObject *args)
1776
if (!getilongarg(args, 1, 0, &arg1))
1783
/* void objinsert long s */
1786
gl_objinsert(PyObject *self, PyObject *args)
1789
if (!getilongarg(args, 1, 0, &arg1))
1796
/* void objreplace long s */
1799
gl_objreplace(PyObject *self, PyObject *args)
1802
if (!getilongarg(args, 1, 0, &arg1))
1809
/* void winclose long s */
1812
gl_winclose(PyObject *self, PyObject *args)
1815
if (!getilongarg(args, 1, 0, &arg1))
1822
/* void blanktime long s */
1825
gl_blanktime(PyObject *self, PyObject *args)
1828
if (!getilongarg(args, 1, 0, &arg1))
1835
/* void freepup long s */
1838
gl_freepup(PyObject *self, PyObject *args)
1841
if (!getilongarg(args, 1, 0, &arg1))
1848
/* void backbuffer long s */
1851
gl_backbuffer(PyObject *self, PyObject *args)
1854
if (!getilongarg(args, 1, 0, &arg1))
1861
/* void frontbuffer long s */
1864
gl_frontbuffer(PyObject *self, PyObject *args)
1867
if (!getilongarg(args, 1, 0, &arg1))
1869
frontbuffer( arg1 );
1874
/* void lsbackup long s */
1877
gl_lsbackup(PyObject *self, PyObject *args)
1880
if (!getilongarg(args, 1, 0, &arg1))
1887
/* void resetls long s */
1890
gl_resetls(PyObject *self, PyObject *args)
1893
if (!getilongarg(args, 1, 0, &arg1))
1900
/* void lampon long s */
1903
gl_lampon(PyObject *self, PyObject *args)
1906
if (!getilongarg(args, 1, 0, &arg1))
1913
/* void lampoff long s */
1916
gl_lampoff(PyObject *self, PyObject *args)
1919
if (!getilongarg(args, 1, 0, &arg1))
1926
/* void setbell long s */
1929
gl_setbell(PyObject *self, PyObject *args)
1932
if (!getilongarg(args, 1, 0, &arg1))
1939
/* void blankscreen long s */
1942
gl_blankscreen(PyObject *self, PyObject *args)
1945
if (!getilongarg(args, 1, 0, &arg1))
1947
blankscreen( arg1 );
1952
/* void depthcue long s */
1955
gl_depthcue(PyObject *self, PyObject *args)
1958
if (!getilongarg(args, 1, 0, &arg1))
1965
/* void zbuffer long s */
1968
gl_zbuffer(PyObject *self, PyObject *args)
1971
if (!getilongarg(args, 1, 0, &arg1))
1978
/* void backface long s */
1981
gl_backface(PyObject *self, PyObject *args)
1984
if (!getilongarg(args, 1, 0, &arg1))
1991
/* void cmov2i long s long s */
1994
gl_cmov2i(PyObject *self, PyObject *args)
1998
if (!getilongarg(args, 2, 0, &arg1))
2000
if (!getilongarg(args, 2, 1, &arg2))
2002
cmov2i( arg1 , arg2 );
2007
/* void draw2i long s long s */
2010
gl_draw2i(PyObject *self, PyObject *args)
2014
if (!getilongarg(args, 2, 0, &arg1))
2016
if (!getilongarg(args, 2, 1, &arg2))
2018
draw2i( arg1 , arg2 );
2023
/* void move2i long s long s */
2026
gl_move2i(PyObject *self, PyObject *args)
2030
if (!getilongarg(args, 2, 0, &arg1))
2032
if (!getilongarg(args, 2, 1, &arg2))
2034
move2i( arg1 , arg2 );
2039
/* void pnt2i long s long s */
2042
gl_pnt2i(PyObject *self, PyObject *args)
2046
if (!getilongarg(args, 2, 0, &arg1))
2048
if (!getilongarg(args, 2, 1, &arg2))
2050
pnt2i( arg1 , arg2 );
2055
/* void patchbasis long s long s */
2058
gl_patchbasis(PyObject *self, PyObject *args)
2062
if (!getilongarg(args, 2, 0, &arg1))
2064
if (!getilongarg(args, 2, 1, &arg2))
2066
patchbasis( arg1 , arg2 );
2071
/* void patchprecision long s long s */
2074
gl_patchprecision(PyObject *self, PyObject *args)
2078
if (!getilongarg(args, 2, 0, &arg1))
2080
if (!getilongarg(args, 2, 1, &arg2))
2082
patchprecision( arg1 , arg2 );
2087
/* void pdr2i long s long s */
2090
gl_pdr2i(PyObject *self, PyObject *args)
2094
if (!getilongarg(args, 2, 0, &arg1))
2096
if (!getilongarg(args, 2, 1, &arg2))
2098
pdr2i( arg1 , arg2 );
2103
/* void pmv2i long s long s */
2106
gl_pmv2i(PyObject *self, PyObject *args)
2110
if (!getilongarg(args, 2, 0, &arg1))
2112
if (!getilongarg(args, 2, 1, &arg2))
2114
pmv2i( arg1 , arg2 );
2119
/* void rpdr2i long s long s */
2122
gl_rpdr2i(PyObject *self, PyObject *args)
2126
if (!getilongarg(args, 2, 0, &arg1))
2128
if (!getilongarg(args, 2, 1, &arg2))
2130
rpdr2i( arg1 , arg2 );
2135
/* void rpmv2i long s long s */
2138
gl_rpmv2i(PyObject *self, PyObject *args)
2142
if (!getilongarg(args, 2, 0, &arg1))
2144
if (!getilongarg(args, 2, 1, &arg2))
2146
rpmv2i( arg1 , arg2 );
2151
/* void xfpt2i long s long s */
2154
gl_xfpt2i(PyObject *self, PyObject *args)
2158
if (!getilongarg(args, 2, 0, &arg1))
2160
if (!getilongarg(args, 2, 1, &arg2))
2162
xfpt2i( arg1 , arg2 );
2167
/* void objdelete long s long s */
2170
gl_objdelete(PyObject *self, PyObject *args)
2174
if (!getilongarg(args, 2, 0, &arg1))
2176
if (!getilongarg(args, 2, 1, &arg2))
2178
objdelete( arg1 , arg2 );
2183
/* void patchcurves long s long s */
2186
gl_patchcurves(PyObject *self, PyObject *args)
2190
if (!getilongarg(args, 2, 0, &arg1))
2192
if (!getilongarg(args, 2, 1, &arg2))
2194
patchcurves( arg1 , arg2 );
2199
/* void minsize long s long s */
2202
gl_minsize(PyObject *self, PyObject *args)
2206
if (!getilongarg(args, 2, 0, &arg1))
2208
if (!getilongarg(args, 2, 1, &arg2))
2210
minsize( arg1 , arg2 );
2215
/* void maxsize long s long s */
2218
gl_maxsize(PyObject *self, PyObject *args)
2222
if (!getilongarg(args, 2, 0, &arg1))
2224
if (!getilongarg(args, 2, 1, &arg2))
2226
maxsize( arg1 , arg2 );
2231
/* void keepaspect long s long s */
2234
gl_keepaspect(PyObject *self, PyObject *args)
2238
if (!getilongarg(args, 2, 0, &arg1))
2240
if (!getilongarg(args, 2, 1, &arg2))
2242
keepaspect( arg1 , arg2 );
2247
/* void prefsize long s long s */
2250
gl_prefsize(PyObject *self, PyObject *args)
2254
if (!getilongarg(args, 2, 0, &arg1))
2256
if (!getilongarg(args, 2, 1, &arg2))
2258
prefsize( arg1 , arg2 );
2263
/* void stepunit long s long s */
2266
gl_stepunit(PyObject *self, PyObject *args)
2270
if (!getilongarg(args, 2, 0, &arg1))
2272
if (!getilongarg(args, 2, 1, &arg2))
2274
stepunit( arg1 , arg2 );
2279
/* void fudge long s long s */
2282
gl_fudge(PyObject *self, PyObject *args)
2286
if (!getilongarg(args, 2, 0, &arg1))
2288
if (!getilongarg(args, 2, 1, &arg2))
2290
fudge( arg1 , arg2 );
2295
/* void winmove long s long s */
2298
gl_winmove(PyObject *self, PyObject *args)
2302
if (!getilongarg(args, 2, 0, &arg1))
2304
if (!getilongarg(args, 2, 1, &arg2))
2306
winmove( arg1 , arg2 );
2311
/* void attachcursor short s short s */
2314
gl_attachcursor(PyObject *self, PyObject *args)
2318
if (!getishortarg(args, 2, 0, &arg1))
2320
if (!getishortarg(args, 2, 1, &arg2))
2322
attachcursor( arg1 , arg2 );
2327
/* void deflinestyle short s short s */
2330
gl_deflinestyle(PyObject *self, PyObject *args)
2334
if (!getishortarg(args, 2, 0, &arg1))
2336
if (!getishortarg(args, 2, 1, &arg2))
2338
deflinestyle( arg1 , arg2 );
2343
/* void noise short s short s */
2346
gl_noise(PyObject *self, PyObject *args)
2350
if (!getishortarg(args, 2, 0, &arg1))
2352
if (!getishortarg(args, 2, 1, &arg2))
2354
noise( arg1 , arg2 );
2359
/* void picksize short s short s */
2362
gl_picksize(PyObject *self, PyObject *args)
2366
if (!getishortarg(args, 2, 0, &arg1))
2368
if (!getishortarg(args, 2, 1, &arg2))
2370
picksize( arg1 , arg2 );
2375
/* void qenter short s short s */
2378
gl_qenter(PyObject *self, PyObject *args)
2382
if (!getishortarg(args, 2, 0, &arg1))
2384
if (!getishortarg(args, 2, 1, &arg2))
2386
qenter( arg1 , arg2 );
2391
/* void setdepth short s short s */
2394
gl_setdepth(PyObject *self, PyObject *args)
2398
if (!getishortarg(args, 2, 0, &arg1))
2400
if (!getishortarg(args, 2, 1, &arg2))
2402
setdepth( arg1 , arg2 );
2407
/* void cmov2s short s short s */
2410
gl_cmov2s(PyObject *self, PyObject *args)
2414
if (!getishortarg(args, 2, 0, &arg1))
2416
if (!getishortarg(args, 2, 1, &arg2))
2418
cmov2s( arg1 , arg2 );
2423
/* void draw2s short s short s */
2426
gl_draw2s(PyObject *self, PyObject *args)
2430
if (!getishortarg(args, 2, 0, &arg1))
2432
if (!getishortarg(args, 2, 1, &arg2))
2434
draw2s( arg1 , arg2 );
2439
/* void move2s short s short s */
2442
gl_move2s(PyObject *self, PyObject *args)
2446
if (!getishortarg(args, 2, 0, &arg1))
2448
if (!getishortarg(args, 2, 1, &arg2))
2450
move2s( arg1 , arg2 );
2455
/* void pdr2s short s short s */
2458
gl_pdr2s(PyObject *self, PyObject *args)
2462
if (!getishortarg(args, 2, 0, &arg1))
2464
if (!getishortarg(args, 2, 1, &arg2))
2466
pdr2s( arg1 , arg2 );
2471
/* void pmv2s short s short s */
2474
gl_pmv2s(PyObject *self, PyObject *args)
2478
if (!getishortarg(args, 2, 0, &arg1))
2480
if (!getishortarg(args, 2, 1, &arg2))
2482
pmv2s( arg1 , arg2 );
2487
/* void pnt2s short s short s */
2490
gl_pnt2s(PyObject *self, PyObject *args)
2494
if (!getishortarg(args, 2, 0, &arg1))
2496
if (!getishortarg(args, 2, 1, &arg2))
2498
pnt2s( arg1 , arg2 );
2503
/* void rdr2s short s short s */
2506
gl_rdr2s(PyObject *self, PyObject *args)
2510
if (!getishortarg(args, 2, 0, &arg1))
2512
if (!getishortarg(args, 2, 1, &arg2))
2514
rdr2s( arg1 , arg2 );
2519
/* void rmv2s short s short s */
2522
gl_rmv2s(PyObject *self, PyObject *args)
2526
if (!getishortarg(args, 2, 0, &arg1))
2528
if (!getishortarg(args, 2, 1, &arg2))
2530
rmv2s( arg1 , arg2 );
2535
/* void rpdr2s short s short s */
2538
gl_rpdr2s(PyObject *self, PyObject *args)
2542
if (!getishortarg(args, 2, 0, &arg1))
2544
if (!getishortarg(args, 2, 1, &arg2))
2546
rpdr2s( arg1 , arg2 );
2551
/* void rpmv2s short s short s */
2554
gl_rpmv2s(PyObject *self, PyObject *args)
2558
if (!getishortarg(args, 2, 0, &arg1))
2560
if (!getishortarg(args, 2, 1, &arg2))
2562
rpmv2s( arg1 , arg2 );
2567
/* void xfpt2s short s short s */
2570
gl_xfpt2s(PyObject *self, PyObject *args)
2574
if (!getishortarg(args, 2, 0, &arg1))
2576
if (!getishortarg(args, 2, 1, &arg2))
2578
xfpt2s( arg1 , arg2 );
2583
/* void cmov2 float s float s */
2586
gl_cmov2(PyObject *self, PyObject *args)
2590
if (!getifloatarg(args, 2, 0, &arg1))
2592
if (!getifloatarg(args, 2, 1, &arg2))
2594
cmov2( arg1 , arg2 );
2599
/* void draw2 float s float s */
2602
gl_draw2(PyObject *self, PyObject *args)
2606
if (!getifloatarg(args, 2, 0, &arg1))
2608
if (!getifloatarg(args, 2, 1, &arg2))
2610
draw2( arg1 , arg2 );
2615
/* void move2 float s float s */
2618
gl_move2(PyObject *self, PyObject *args)
2622
if (!getifloatarg(args, 2, 0, &arg1))
2624
if (!getifloatarg(args, 2, 1, &arg2))
2626
move2( arg1 , arg2 );
2631
/* void pnt2 float s float s */
2634
gl_pnt2(PyObject *self, PyObject *args)
2638
if (!getifloatarg(args, 2, 0, &arg1))
2640
if (!getifloatarg(args, 2, 1, &arg2))
2642
pnt2( arg1 , arg2 );
2647
/* void pdr2 float s float s */
2650
gl_pdr2(PyObject *self, PyObject *args)
2654
if (!getifloatarg(args, 2, 0, &arg1))
2656
if (!getifloatarg(args, 2, 1, &arg2))
2658
pdr2( arg1 , arg2 );
2663
/* void pmv2 float s float s */
2666
gl_pmv2(PyObject *self, PyObject *args)
2670
if (!getifloatarg(args, 2, 0, &arg1))
2672
if (!getifloatarg(args, 2, 1, &arg2))
2674
pmv2( arg1 , arg2 );
2679
/* void rdr2 float s float s */
2682
gl_rdr2(PyObject *self, PyObject *args)
2686
if (!getifloatarg(args, 2, 0, &arg1))
2688
if (!getifloatarg(args, 2, 1, &arg2))
2690
rdr2( arg1 , arg2 );
2695
/* void rmv2 float s float s */
2698
gl_rmv2(PyObject *self, PyObject *args)
2702
if (!getifloatarg(args, 2, 0, &arg1))
2704
if (!getifloatarg(args, 2, 1, &arg2))
2706
rmv2( arg1 , arg2 );
2711
/* void rpdr2 float s float s */
2714
gl_rpdr2(PyObject *self, PyObject *args)
2718
if (!getifloatarg(args, 2, 0, &arg1))
2720
if (!getifloatarg(args, 2, 1, &arg2))
2722
rpdr2( arg1 , arg2 );
2727
/* void rpmv2 float s float s */
2730
gl_rpmv2(PyObject *self, PyObject *args)
2734
if (!getifloatarg(args, 2, 0, &arg1))
2736
if (!getifloatarg(args, 2, 1, &arg2))
2738
rpmv2( arg1 , arg2 );
2743
/* void xfpt2 float s float s */
2746
gl_xfpt2(PyObject *self, PyObject *args)
2750
if (!getifloatarg(args, 2, 0, &arg1))
2752
if (!getifloatarg(args, 2, 1, &arg2))
2754
xfpt2( arg1 , arg2 );
2759
/* void loadmatrix float s[4*4] */
2762
gl_loadmatrix(PyObject *self, PyObject *args)
2764
float arg1 [ 4 ] [ 4 ] ;
2765
if (!getifloatarray(args, 1, 0, 4 * 4 , (float *) arg1))
2772
/* void multmatrix float s[4*4] */
2775
gl_multmatrix(PyObject *self, PyObject *args)
2777
float arg1 [ 4 ] [ 4 ] ;
2778
if (!getifloatarray(args, 1, 0, 4 * 4 , (float *) arg1))
2785
/* void crv float s[3*4] */
2788
gl_crv(PyObject *self, PyObject *args)
2790
float arg1 [ 4 ] [ 3 ] ;
2791
if (!getifloatarray(args, 1, 0, 3 * 4 , (float *) arg1))
2798
/* void rcrv float s[4*4] */
2801
gl_rcrv(PyObject *self, PyObject *args)
2803
float arg1 [ 4 ] [ 4 ] ;
2804
if (!getifloatarray(args, 1, 0, 4 * 4 , (float *) arg1))
2811
/* void addtopup long s char *s long s */
2814
gl_addtopup(PyObject *self, PyObject *args)
2819
if (!getilongarg(args, 3, 0, &arg1))
2821
if (!getistringarg(args, 3, 1, &arg2))
2823
if (!getilongarg(args, 3, 2, &arg3))
2825
addtopup( arg1 , arg2 , arg3 );
2830
/* void charstr char *s */
2833
gl_charstr(PyObject *self, PyObject *args)
2836
if (!getistringarg(args, 1, 0, &arg1))
2843
/* void getport char *s */
2846
gl_getport(PyObject *self, PyObject *args)
2849
if (!getistringarg(args, 1, 0, &arg1))
2856
/* long strwidth char *s */
2859
gl_strwidth(PyObject *self, PyObject *args)
2863
if (!getistringarg(args, 1, 0, &arg1))
2865
retval = strwidth( arg1 );
2866
return mknewlongobject(retval);
2869
/* long winopen char *s */
2872
gl_winopen(PyObject *self, PyObject *args)
2876
if (!getistringarg(args, 1, 0, &arg1))
2878
retval = winopen( arg1 );
2879
return mknewlongobject(retval);
2882
/* void wintitle char *s */
2885
gl_wintitle(PyObject *self, PyObject *args)
2888
if (!getistringarg(args, 1, 0, &arg1))
2895
/* void polf long s float s[3*arg1] */
2898
gl_polf(PyObject *self, PyObject *args)
2901
float (* arg2) [ 3 ] ;
2902
if (!getilongarraysize(args, 1, 0, &arg1))
2905
if ((arg2 = (float(*)[3]) PyMem_NEW(float , 3 * arg1 )) == NULL)
2906
return PyErr_NoMemory();
2907
if (!getifloatarray(args, 1, 0, 3 * arg1 , (float *) arg2))
2909
polf( arg1 , arg2 );
2915
/* void polf2 long s float s[2*arg1] */
2918
gl_polf2(PyObject *self, PyObject *args)
2921
float (* arg2) [ 2 ] ;
2922
if (!getilongarraysize(args, 1, 0, &arg1))
2925
if ((arg2 = (float(*)[2]) PyMem_NEW(float , 2 * arg1 )) == NULL)
2926
return PyErr_NoMemory();
2927
if (!getifloatarray(args, 1, 0, 2 * arg1 , (float *) arg2))
2929
polf2( arg1 , arg2 );
2935
/* void poly long s float s[3*arg1] */
2938
gl_poly(PyObject *self, PyObject *args)
2941
float (* arg2) [ 3 ] ;
2942
if (!getilongarraysize(args, 1, 0, &arg1))
2945
if ((arg2 = (float(*)[3]) PyMem_NEW(float , 3 * arg1 )) == NULL)
2946
return PyErr_NoMemory();
2947
if (!getifloatarray(args, 1, 0, 3 * arg1 , (float *) arg2))
2949
poly( arg1 , arg2 );
2955
/* void poly2 long s float s[2*arg1] */
2958
gl_poly2(PyObject *self, PyObject *args)
2961
float (* arg2) [ 2 ] ;
2962
if (!getilongarraysize(args, 1, 0, &arg1))
2965
if ((arg2 = (float(*)[2]) PyMem_NEW(float , 2 * arg1 )) == NULL)
2966
return PyErr_NoMemory();
2967
if (!getifloatarray(args, 1, 0, 2 * arg1 , (float *) arg2))
2969
poly2( arg1 , arg2 );
2975
/* void crvn long s float s[3*arg1] */
2978
gl_crvn(PyObject *self, PyObject *args)
2981
float (* arg2) [ 3 ] ;
2982
if (!getilongarraysize(args, 1, 0, &arg1))
2985
if ((arg2 = (float(*)[3]) PyMem_NEW(float , 3 * arg1 )) == NULL)
2986
return PyErr_NoMemory();
2987
if (!getifloatarray(args, 1, 0, 3 * arg1 , (float *) arg2))
2989
crvn( arg1 , arg2 );
2995
/* void rcrvn long s float s[4*arg1] */
2998
gl_rcrvn(PyObject *self, PyObject *args)
3001
float (* arg2) [ 4 ] ;
3002
if (!getilongarraysize(args, 1, 0, &arg1))
3005
if ((arg2 = (float(*)[4]) PyMem_NEW(float , 4 * arg1 )) == NULL)
3006
return PyErr_NoMemory();
3007
if (!getifloatarray(args, 1, 0, 4 * arg1 , (float *) arg2))
3009
rcrvn( arg1 , arg2 );
3015
/* void polf2i long s long s[2*arg1] */
3018
gl_polf2i(PyObject *self, PyObject *args)
3021
long (* arg2) [ 2 ] ;
3022
if (!getilongarraysize(args, 1, 0, &arg1))
3025
if ((arg2 = (long(*)[2]) PyMem_NEW(long , 2 * arg1 )) == NULL)
3026
return PyErr_NoMemory();
3027
if (!getilongarray(args, 1, 0, 2 * arg1 , (long *) arg2))
3029
polf2i( arg1 , arg2 );
3035
/* void polfi long s long s[3*arg1] */
3038
gl_polfi(PyObject *self, PyObject *args)
3041
long (* arg2) [ 3 ] ;
3042
if (!getilongarraysize(args, 1, 0, &arg1))
3045
if ((arg2 = (long(*)[3]) PyMem_NEW(long , 3 * arg1 )) == NULL)
3046
return PyErr_NoMemory();
3047
if (!getilongarray(args, 1, 0, 3 * arg1 , (long *) arg2))
3049
polfi( arg1 , arg2 );
3055
/* void poly2i long s long s[2*arg1] */
3058
gl_poly2i(PyObject *self, PyObject *args)
3061
long (* arg2) [ 2 ] ;
3062
if (!getilongarraysize(args, 1, 0, &arg1))
3065
if ((arg2 = (long(*)[2]) PyMem_NEW(long , 2 * arg1 )) == NULL)
3066
return PyErr_NoMemory();
3067
if (!getilongarray(args, 1, 0, 2 * arg1 , (long *) arg2))
3069
poly2i( arg1 , arg2 );
3075
/* void polyi long s long s[3*arg1] */
3078
gl_polyi(PyObject *self, PyObject *args)
3081
long (* arg2) [ 3 ] ;
3082
if (!getilongarraysize(args, 1, 0, &arg1))
3085
if ((arg2 = (long(*)[3]) PyMem_NEW(long , 3 * arg1 )) == NULL)
3086
return PyErr_NoMemory();
3087
if (!getilongarray(args, 1, 0, 3 * arg1 , (long *) arg2))
3089
polyi( arg1 , arg2 );
3095
/* void polf2s long s short s[2*arg1] */
3098
gl_polf2s(PyObject *self, PyObject *args)
3101
short (* arg2) [ 2 ] ;
3102
if (!getilongarraysize(args, 1, 0, &arg1))
3105
if ((arg2 = (short(*)[2]) PyMem_NEW(short , 2 * arg1 )) == NULL)
3106
return PyErr_NoMemory();
3107
if (!getishortarray(args, 1, 0, 2 * arg1 , (short *) arg2))
3109
polf2s( arg1 , arg2 );
3115
/* void polfs long s short s[3*arg1] */
3118
gl_polfs(PyObject *self, PyObject *args)
3121
short (* arg2) [ 3 ] ;
3122
if (!getilongarraysize(args, 1, 0, &arg1))
3125
if ((arg2 = (short(*)[3]) PyMem_NEW(short , 3 * arg1 )) == NULL)
3126
return PyErr_NoMemory();
3127
if (!getishortarray(args, 1, 0, 3 * arg1 , (short *) arg2))
3129
polfs( arg1 , arg2 );
3135
/* void polys long s short s[3*arg1] */
3138
gl_polys(PyObject *self, PyObject *args)
3141
short (* arg2) [ 3 ] ;
3142
if (!getilongarraysize(args, 1, 0, &arg1))
3145
if ((arg2 = (short(*)[3]) PyMem_NEW(short , 3 * arg1 )) == NULL)
3146
return PyErr_NoMemory();
3147
if (!getishortarray(args, 1, 0, 3 * arg1 , (short *) arg2))
3149
polys( arg1 , arg2 );
3155
/* void poly2s long s short s[2*arg1] */
3158
gl_poly2s(PyObject *self, PyObject *args)
3161
short (* arg2) [ 2 ] ;
3162
if (!getilongarraysize(args, 1, 0, &arg1))
3165
if ((arg2 = (short(*)[2]) PyMem_NEW(short , 2 * arg1 )) == NULL)
3166
return PyErr_NoMemory();
3167
if (!getishortarray(args, 1, 0, 2 * arg1 , (short *) arg2))
3169
poly2s( arg1 , arg2 );
3175
/* void defcursor short s u_short s[128] */
3178
gl_defcursor(PyObject *self, PyObject *args)
3181
unsigned short arg2 [ 128 ] ;
3182
if (!getishortarg(args, 2, 0, &arg1))
3184
if (!getishortarray(args, 2, 1, 128 , (short *) arg2))
3186
defcursor( arg1 , arg2 );
3191
/* void writepixels short s u_short s[arg1] */
3194
gl_writepixels(PyObject *self, PyObject *args)
3197
unsigned short * arg2 ;
3198
if (!getishortarraysize(args, 1, 0, &arg1))
3200
if ((arg2 = PyMem_NEW(unsigned short , arg1 )) == NULL)
3201
return PyErr_NoMemory();
3202
if (!getishortarray(args, 1, 0, arg1 , (short *) arg2))
3204
writepixels( arg1 , arg2 );
3210
/* void defbasis long s float s[4*4] */
3213
gl_defbasis(PyObject *self, PyObject *args)
3216
float arg2 [ 4 ] [ 4 ] ;
3217
if (!getilongarg(args, 2, 0, &arg1))
3219
if (!getifloatarray(args, 2, 1, 4 * 4 , (float *) arg2))
3221
defbasis( arg1 , arg2 );
3226
/* void gewrite short s short s[arg1] */
3229
gl_gewrite(PyObject *self, PyObject *args)
3233
if (!getishortarraysize(args, 1, 0, &arg1))
3235
if ((arg2 = PyMem_NEW(short , arg1 )) == NULL)
3236
return PyErr_NoMemory();
3237
if (!getishortarray(args, 1, 0, arg1 , arg2))
3239
gewrite( arg1 , arg2 );
3245
/* void rotate short s char s */
3248
gl_rotate(PyObject *self, PyObject *args)
3252
if (!getishortarg(args, 2, 0, &arg1))
3254
if (!getichararg(args, 2, 1, &arg2))
3256
rotate( arg1 , arg2 );
3261
/* void rot float s char s */
3264
gl_rot(PyObject *self, PyObject *args)
3268
if (!getifloatarg(args, 2, 0, &arg1))
3270
if (!getichararg(args, 2, 1, &arg2))
3277
/* void circfi long s long s long s */
3280
gl_circfi(PyObject *self, PyObject *args)
3285
if (!getilongarg(args, 3, 0, &arg1))
3287
if (!getilongarg(args, 3, 1, &arg2))
3289
if (!getilongarg(args, 3, 2, &arg3))
3291
circfi( arg1 , arg2 , arg3 );
3296
/* void circi long s long s long s */
3299
gl_circi(PyObject *self, PyObject *args)
3304
if (!getilongarg(args, 3, 0, &arg1))
3306
if (!getilongarg(args, 3, 1, &arg2))
3308
if (!getilongarg(args, 3, 2, &arg3))
3310
circi( arg1 , arg2 , arg3 );
3315
/* void cmovi long s long s long s */
3318
gl_cmovi(PyObject *self, PyObject *args)
3323
if (!getilongarg(args, 3, 0, &arg1))
3325
if (!getilongarg(args, 3, 1, &arg2))
3327
if (!getilongarg(args, 3, 2, &arg3))
3329
cmovi( arg1 , arg2 , arg3 );
3334
/* void drawi long s long s long s */
3337
gl_drawi(PyObject *self, PyObject *args)
3342
if (!getilongarg(args, 3, 0, &arg1))
3344
if (!getilongarg(args, 3, 1, &arg2))
3346
if (!getilongarg(args, 3, 2, &arg3))
3348
drawi( arg1 , arg2 , arg3 );
3353
/* void movei long s long s long s */
3356
gl_movei(PyObject *self, PyObject *args)
3361
if (!getilongarg(args, 3, 0, &arg1))
3363
if (!getilongarg(args, 3, 1, &arg2))
3365
if (!getilongarg(args, 3, 2, &arg3))
3367
movei( arg1 , arg2 , arg3 );
3372
/* void pnti long s long s long s */
3375
gl_pnti(PyObject *self, PyObject *args)
3380
if (!getilongarg(args, 3, 0, &arg1))
3382
if (!getilongarg(args, 3, 1, &arg2))
3384
if (!getilongarg(args, 3, 2, &arg3))
3386
pnti( arg1 , arg2 , arg3 );
3391
/* void newtag long s long s long s */
3394
gl_newtag(PyObject *self, PyObject *args)
3399
if (!getilongarg(args, 3, 0, &arg1))
3401
if (!getilongarg(args, 3, 1, &arg2))
3403
if (!getilongarg(args, 3, 2, &arg3))
3405
newtag( arg1 , arg2 , arg3 );
3410
/* void pdri long s long s long s */
3413
gl_pdri(PyObject *self, PyObject *args)
3418
if (!getilongarg(args, 3, 0, &arg1))
3420
if (!getilongarg(args, 3, 1, &arg2))
3422
if (!getilongarg(args, 3, 2, &arg3))
3424
pdri( arg1 , arg2 , arg3 );
3429
/* void pmvi long s long s long s */
3432
gl_pmvi(PyObject *self, PyObject *args)
3437
if (!getilongarg(args, 3, 0, &arg1))
3439
if (!getilongarg(args, 3, 1, &arg2))
3441
if (!getilongarg(args, 3, 2, &arg3))
3443
pmvi( arg1 , arg2 , arg3 );
3448
/* void rdri long s long s long s */
3451
gl_rdri(PyObject *self, PyObject *args)
3456
if (!getilongarg(args, 3, 0, &arg1))
3458
if (!getilongarg(args, 3, 1, &arg2))
3460
if (!getilongarg(args, 3, 2, &arg3))
3462
rdri( arg1 , arg2 , arg3 );
3467
/* void rmvi long s long s long s */
3470
gl_rmvi(PyObject *self, PyObject *args)
3475
if (!getilongarg(args, 3, 0, &arg1))
3477
if (!getilongarg(args, 3, 1, &arg2))
3479
if (!getilongarg(args, 3, 2, &arg3))
3481
rmvi( arg1 , arg2 , arg3 );
3486
/* void rpdri long s long s long s */
3489
gl_rpdri(PyObject *self, PyObject *args)
3494
if (!getilongarg(args, 3, 0, &arg1))
3496
if (!getilongarg(args, 3, 1, &arg2))
3498
if (!getilongarg(args, 3, 2, &arg3))
3500
rpdri( arg1 , arg2 , arg3 );
3505
/* void rpmvi long s long s long s */
3508
gl_rpmvi(PyObject *self, PyObject *args)
3513
if (!getilongarg(args, 3, 0, &arg1))
3515
if (!getilongarg(args, 3, 1, &arg2))
3517
if (!getilongarg(args, 3, 2, &arg3))
3519
rpmvi( arg1 , arg2 , arg3 );
3524
/* void xfpti long s long s long s */
3527
gl_xfpti(PyObject *self, PyObject *args)
3532
if (!getilongarg(args, 3, 0, &arg1))
3534
if (!getilongarg(args, 3, 1, &arg2))
3536
if (!getilongarg(args, 3, 2, &arg3))
3538
xfpti( arg1 , arg2 , arg3 );
3543
/* void circ float s float s float s */
3546
gl_circ(PyObject *self, PyObject *args)
3551
if (!getifloatarg(args, 3, 0, &arg1))
3553
if (!getifloatarg(args, 3, 1, &arg2))
3555
if (!getifloatarg(args, 3, 2, &arg3))
3557
circ( arg1 , arg2 , arg3 );
3562
/* void circf float s float s float s */
3565
gl_circf(PyObject *self, PyObject *args)
3570
if (!getifloatarg(args, 3, 0, &arg1))
3572
if (!getifloatarg(args, 3, 1, &arg2))
3574
if (!getifloatarg(args, 3, 2, &arg3))
3576
circf( arg1 , arg2 , arg3 );
3581
/* void cmov float s float s float s */
3584
gl_cmov(PyObject *self, PyObject *args)
3589
if (!getifloatarg(args, 3, 0, &arg1))
3591
if (!getifloatarg(args, 3, 1, &arg2))
3593
if (!getifloatarg(args, 3, 2, &arg3))
3595
cmov( arg1 , arg2 , arg3 );
3600
/* void draw float s float s float s */
3603
gl_draw(PyObject *self, PyObject *args)
3608
if (!getifloatarg(args, 3, 0, &arg1))
3610
if (!getifloatarg(args, 3, 1, &arg2))
3612
if (!getifloatarg(args, 3, 2, &arg3))
3614
draw( arg1 , arg2 , arg3 );
3619
/* void move float s float s float s */
3622
gl_move(PyObject *self, PyObject *args)
3627
if (!getifloatarg(args, 3, 0, &arg1))
3629
if (!getifloatarg(args, 3, 1, &arg2))
3631
if (!getifloatarg(args, 3, 2, &arg3))
3633
move( arg1 , arg2 , arg3 );
3638
/* void pnt float s float s float s */
3641
gl_pnt(PyObject *self, PyObject *args)
3646
if (!getifloatarg(args, 3, 0, &arg1))
3648
if (!getifloatarg(args, 3, 1, &arg2))
3650
if (!getifloatarg(args, 3, 2, &arg3))
3652
pnt( arg1 , arg2 , arg3 );
3657
/* void scale float s float s float s */
3660
gl_scale(PyObject *self, PyObject *args)
3665
if (!getifloatarg(args, 3, 0, &arg1))
3667
if (!getifloatarg(args, 3, 1, &arg2))
3669
if (!getifloatarg(args, 3, 2, &arg3))
3671
scale( arg1 , arg2 , arg3 );
3676
/* void translate float s float s float s */
3679
gl_translate(PyObject *self, PyObject *args)
3684
if (!getifloatarg(args, 3, 0, &arg1))
3686
if (!getifloatarg(args, 3, 1, &arg2))
3688
if (!getifloatarg(args, 3, 2, &arg3))
3690
translate( arg1 , arg2 , arg3 );
3695
/* void pdr float s float s float s */
3698
gl_pdr(PyObject *self, PyObject *args)
3703
if (!getifloatarg(args, 3, 0, &arg1))
3705
if (!getifloatarg(args, 3, 1, &arg2))
3707
if (!getifloatarg(args, 3, 2, &arg3))
3709
pdr( arg1 , arg2 , arg3 );
3714
/* void pmv float s float s float s */
3717
gl_pmv(PyObject *self, PyObject *args)
3722
if (!getifloatarg(args, 3, 0, &arg1))
3724
if (!getifloatarg(args, 3, 1, &arg2))
3726
if (!getifloatarg(args, 3, 2, &arg3))
3728
pmv( arg1 , arg2 , arg3 );
3733
/* void rdr float s float s float s */
3736
gl_rdr(PyObject *self, PyObject *args)
3741
if (!getifloatarg(args, 3, 0, &arg1))
3743
if (!getifloatarg(args, 3, 1, &arg2))
3745
if (!getifloatarg(args, 3, 2, &arg3))
3747
rdr( arg1 , arg2 , arg3 );
3752
/* void rmv float s float s float s */
3755
gl_rmv(PyObject *self, PyObject *args)
3760
if (!getifloatarg(args, 3, 0, &arg1))
3762
if (!getifloatarg(args, 3, 1, &arg2))
3764
if (!getifloatarg(args, 3, 2, &arg3))
3766
rmv( arg1 , arg2 , arg3 );
3771
/* void rpdr float s float s float s */
3774
gl_rpdr(PyObject *self, PyObject *args)
3779
if (!getifloatarg(args, 3, 0, &arg1))
3781
if (!getifloatarg(args, 3, 1, &arg2))
3783
if (!getifloatarg(args, 3, 2, &arg3))
3785
rpdr( arg1 , arg2 , arg3 );
3790
/* void rpmv float s float s float s */
3793
gl_rpmv(PyObject *self, PyObject *args)
3798
if (!getifloatarg(args, 3, 0, &arg1))
3800
if (!getifloatarg(args, 3, 1, &arg2))
3802
if (!getifloatarg(args, 3, 2, &arg3))
3804
rpmv( arg1 , arg2 , arg3 );
3809
/* void xfpt float s float s float s */
3812
gl_xfpt(PyObject *self, PyObject *args)
3817
if (!getifloatarg(args, 3, 0, &arg1))
3819
if (!getifloatarg(args, 3, 1, &arg2))
3821
if (!getifloatarg(args, 3, 2, &arg3))
3823
xfpt( arg1 , arg2 , arg3 );
3828
/* void RGBcolor short s short s short s */
3831
gl_RGBcolor(PyObject *self, PyObject *args)
3836
if (!getishortarg(args, 3, 0, &arg1))
3838
if (!getishortarg(args, 3, 1, &arg2))
3840
if (!getishortarg(args, 3, 2, &arg3))
3842
RGBcolor( arg1 , arg2 , arg3 );
3847
/* void RGBwritemask short s short s short s */
3850
gl_RGBwritemask(PyObject *self, PyObject *args)
3855
if (!getishortarg(args, 3, 0, &arg1))
3857
if (!getishortarg(args, 3, 1, &arg2))
3859
if (!getishortarg(args, 3, 2, &arg3))
3861
RGBwritemask( arg1 , arg2 , arg3 );
3866
/* void setcursor short s short s short s */
3869
gl_setcursor(PyObject *self, PyObject *args)
3874
if (!getishortarg(args, 3, 0, &arg1))
3876
if (!getishortarg(args, 3, 1, &arg2))
3878
if (!getishortarg(args, 3, 2, &arg3))
3880
setcursor( arg1 , arg2 , arg3 );
3885
/* void tie short s short s short s */
3888
gl_tie(PyObject *self, PyObject *args)
3893
if (!getishortarg(args, 3, 0, &arg1))
3895
if (!getishortarg(args, 3, 1, &arg2))
3897
if (!getishortarg(args, 3, 2, &arg3))
3899
tie( arg1 , arg2 , arg3 );
3904
/* void circfs short s short s short s */
3907
gl_circfs(PyObject *self, PyObject *args)
3912
if (!getishortarg(args, 3, 0, &arg1))
3914
if (!getishortarg(args, 3, 1, &arg2))
3916
if (!getishortarg(args, 3, 2, &arg3))
3918
circfs( arg1 , arg2 , arg3 );
3923
/* void circs short s short s short s */
3926
gl_circs(PyObject *self, PyObject *args)
3931
if (!getishortarg(args, 3, 0, &arg1))
3933
if (!getishortarg(args, 3, 1, &arg2))
3935
if (!getishortarg(args, 3, 2, &arg3))
3937
circs( arg1 , arg2 , arg3 );
3942
/* void cmovs short s short s short s */
3945
gl_cmovs(PyObject *self, PyObject *args)
3950
if (!getishortarg(args, 3, 0, &arg1))
3952
if (!getishortarg(args, 3, 1, &arg2))
3954
if (!getishortarg(args, 3, 2, &arg3))
3956
cmovs( arg1 , arg2 , arg3 );
3961
/* void draws short s short s short s */
3964
gl_draws(PyObject *self, PyObject *args)
3969
if (!getishortarg(args, 3, 0, &arg1))
3971
if (!getishortarg(args, 3, 1, &arg2))
3973
if (!getishortarg(args, 3, 2, &arg3))
3975
draws( arg1 , arg2 , arg3 );
3980
/* void moves short s short s short s */
3983
gl_moves(PyObject *self, PyObject *args)
3988
if (!getishortarg(args, 3, 0, &arg1))
3990
if (!getishortarg(args, 3, 1, &arg2))
3992
if (!getishortarg(args, 3, 2, &arg3))
3994
moves( arg1 , arg2 , arg3 );
3999
/* void pdrs short s short s short s */
4002
gl_pdrs(PyObject *self, PyObject *args)
4007
if (!getishortarg(args, 3, 0, &arg1))
4009
if (!getishortarg(args, 3, 1, &arg2))
4011
if (!getishortarg(args, 3, 2, &arg3))
4013
pdrs( arg1 , arg2 , arg3 );
4018
/* void pmvs short s short s short s */
4021
gl_pmvs(PyObject *self, PyObject *args)
4026
if (!getishortarg(args, 3, 0, &arg1))
4028
if (!getishortarg(args, 3, 1, &arg2))
4030
if (!getishortarg(args, 3, 2, &arg3))
4032
pmvs( arg1 , arg2 , arg3 );
4037
/* void pnts short s short s short s */
4040
gl_pnts(PyObject *self, PyObject *args)
4045
if (!getishortarg(args, 3, 0, &arg1))
4047
if (!getishortarg(args, 3, 1, &arg2))
4049
if (!getishortarg(args, 3, 2, &arg3))
4051
pnts( arg1 , arg2 , arg3 );
4056
/* void rdrs short s short s short s */
4059
gl_rdrs(PyObject *self, PyObject *args)
4064
if (!getishortarg(args, 3, 0, &arg1))
4066
if (!getishortarg(args, 3, 1, &arg2))
4068
if (!getishortarg(args, 3, 2, &arg3))
4070
rdrs( arg1 , arg2 , arg3 );
4075
/* void rmvs short s short s short s */
4078
gl_rmvs(PyObject *self, PyObject *args)
4083
if (!getishortarg(args, 3, 0, &arg1))
4085
if (!getishortarg(args, 3, 1, &arg2))
4087
if (!getishortarg(args, 3, 2, &arg3))
4089
rmvs( arg1 , arg2 , arg3 );
4094
/* void rpdrs short s short s short s */
4097
gl_rpdrs(PyObject *self, PyObject *args)
4102
if (!getishortarg(args, 3, 0, &arg1))
4104
if (!getishortarg(args, 3, 1, &arg2))
4106
if (!getishortarg(args, 3, 2, &arg3))
4108
rpdrs( arg1 , arg2 , arg3 );
4113
/* void rpmvs short s short s short s */
4116
gl_rpmvs(PyObject *self, PyObject *args)
4121
if (!getishortarg(args, 3, 0, &arg1))
4123
if (!getishortarg(args, 3, 1, &arg2))
4125
if (!getishortarg(args, 3, 2, &arg3))
4127
rpmvs( arg1 , arg2 , arg3 );
4132
/* void xfpts short s short s short s */
4135
gl_xfpts(PyObject *self, PyObject *args)
4140
if (!getishortarg(args, 3, 0, &arg1))
4142
if (!getishortarg(args, 3, 1, &arg2))
4144
if (!getishortarg(args, 3, 2, &arg3))
4146
xfpts( arg1 , arg2 , arg3 );
4151
/* void curorigin short s short s short s */
4154
gl_curorigin(PyObject *self, PyObject *args)
4159
if (!getishortarg(args, 3, 0, &arg1))
4161
if (!getishortarg(args, 3, 1, &arg2))
4163
if (!getishortarg(args, 3, 2, &arg3))
4165
curorigin( arg1 , arg2 , arg3 );
4170
/* void cyclemap short s short s short s */
4173
gl_cyclemap(PyObject *self, PyObject *args)
4178
if (!getishortarg(args, 3, 0, &arg1))
4180
if (!getishortarg(args, 3, 1, &arg2))
4182
if (!getishortarg(args, 3, 2, &arg3))
4184
cyclemap( arg1 , arg2 , arg3 );
4189
/* void patch float s[4*4] float s[4*4] float s[4*4] */
4192
gl_patch(PyObject *self, PyObject *args)
4194
float arg1 [ 4 ] [ 4 ] ;
4195
float arg2 [ 4 ] [ 4 ] ;
4196
float arg3 [ 4 ] [ 4 ] ;
4197
if (!getifloatarray(args, 3, 0, 4 * 4 , (float *) arg1))
4199
if (!getifloatarray(args, 3, 1, 4 * 4 , (float *) arg2))
4201
if (!getifloatarray(args, 3, 2, 4 * 4 , (float *) arg3))
4203
patch( arg1 , arg2 , arg3 );
4208
/* void splf long s float s[3*arg1] u_short s[arg1] */
4211
gl_splf(PyObject *self, PyObject *args)
4214
float (* arg2) [ 3 ] ;
4215
unsigned short * arg3 ;
4216
if (!getilongarraysize(args, 2, 0, &arg1))
4219
if ((arg2 = (float(*)[3]) PyMem_NEW(float , 3 * arg1 )) == NULL)
4220
return PyErr_NoMemory();
4221
if (!getifloatarray(args, 2, 0, 3 * arg1 , (float *) arg2))
4223
if ((arg3 = PyMem_NEW(unsigned short , arg1 )) == NULL)
4224
return PyErr_NoMemory();
4225
if (!getishortarray(args, 2, 1, arg1 , (short *) arg3))
4227
splf( arg1 , arg2 , arg3 );
4234
/* void splf2 long s float s[2*arg1] u_short s[arg1] */
4237
gl_splf2(PyObject *self, PyObject *args)
4240
float (* arg2) [ 2 ] ;
4241
unsigned short * arg3 ;
4242
if (!getilongarraysize(args, 2, 0, &arg1))
4245
if ((arg2 = (float(*)[2]) PyMem_NEW(float , 2 * arg1 )) == NULL)
4246
return PyErr_NoMemory();
4247
if (!getifloatarray(args, 2, 0, 2 * arg1 , (float *) arg2))
4249
if ((arg3 = PyMem_NEW(unsigned short , arg1 )) == NULL)
4250
return PyErr_NoMemory();
4251
if (!getishortarray(args, 2, 1, arg1 , (short *) arg3))
4253
splf2( arg1 , arg2 , arg3 );
4260
/* void splfi long s long s[3*arg1] u_short s[arg1] */
4263
gl_splfi(PyObject *self, PyObject *args)
4266
long (* arg2) [ 3 ] ;
4267
unsigned short * arg3 ;
4268
if (!getilongarraysize(args, 2, 0, &arg1))
4271
if ((arg2 = (long(*)[3]) PyMem_NEW(long , 3 * arg1 )) == NULL)
4272
return PyErr_NoMemory();
4273
if (!getilongarray(args, 2, 0, 3 * arg1 , (long *) arg2))
4275
if ((arg3 = PyMem_NEW(unsigned short , arg1 )) == NULL)
4276
return PyErr_NoMemory();
4277
if (!getishortarray(args, 2, 1, arg1 , (short *) arg3))
4279
splfi( arg1 , arg2 , arg3 );
4286
/* void splf2i long s long s[2*arg1] u_short s[arg1] */
4289
gl_splf2i(PyObject *self, PyObject *args)
4292
long (* arg2) [ 2 ] ;
4293
unsigned short * arg3 ;
4294
if (!getilongarraysize(args, 2, 0, &arg1))
4297
if ((arg2 = (long(*)[2]) PyMem_NEW(long , 2 * arg1 )) == NULL)
4298
return PyErr_NoMemory();
4299
if (!getilongarray(args, 2, 0, 2 * arg1 , (long *) arg2))
4301
if ((arg3 = PyMem_NEW(unsigned short , arg1 )) == NULL)
4302
return PyErr_NoMemory();
4303
if (!getishortarray(args, 2, 1, arg1 , (short *) arg3))
4305
splf2i( arg1 , arg2 , arg3 );
4312
/* void splfs long s short s[3*arg1] u_short s[arg1] */
4315
gl_splfs(PyObject *self, PyObject *args)
4318
short (* arg2) [ 3 ] ;
4319
unsigned short * arg3 ;
4320
if (!getilongarraysize(args, 2, 0, &arg1))
4323
if ((arg2 = (short(*)[3]) PyMem_NEW(short , 3 * arg1 )) == NULL)
4324
return PyErr_NoMemory();
4325
if (!getishortarray(args, 2, 0, 3 * arg1 , (short *) arg2))
4327
if ((arg3 = PyMem_NEW(unsigned short , arg1 )) == NULL)
4328
return PyErr_NoMemory();
4329
if (!getishortarray(args, 2, 1, arg1 , (short *) arg3))
4331
splfs( arg1 , arg2 , arg3 );
4338
/* void splf2s long s short s[2*arg1] u_short s[arg1] */
4341
gl_splf2s(PyObject *self, PyObject *args)
4344
short (* arg2) [ 2 ] ;
4345
unsigned short * arg3 ;
4346
if (!getilongarraysize(args, 2, 0, &arg1))
4349
if ((arg2 = (short(*)[2]) PyMem_NEW(short , 2 * arg1 )) == NULL)
4350
return PyErr_NoMemory();
4351
if (!getishortarray(args, 2, 0, 2 * arg1 , (short *) arg2))
4353
if ((arg3 = PyMem_NEW(unsigned short , arg1 )) == NULL)
4354
return PyErr_NoMemory();
4355
if (!getishortarray(args, 2, 1, arg1 , (short *) arg3))
4357
splf2s( arg1 , arg2 , arg3 );
4364
/* void rpatch float s[4*4] float s[4*4] float s[4*4] float s[4*4] */
4367
gl_rpatch(PyObject *self, PyObject *args)
4369
float arg1 [ 4 ] [ 4 ] ;
4370
float arg2 [ 4 ] [ 4 ] ;
4371
float arg3 [ 4 ] [ 4 ] ;
4372
float arg4 [ 4 ] [ 4 ] ;
4373
if (!getifloatarray(args, 4, 0, 4 * 4 , (float *) arg1))
4375
if (!getifloatarray(args, 4, 1, 4 * 4 , (float *) arg2))
4377
if (!getifloatarray(args, 4, 2, 4 * 4 , (float *) arg3))
4379
if (!getifloatarray(args, 4, 3, 4 * 4 , (float *) arg4))
4381
rpatch( arg1 , arg2 , arg3 , arg4 );
4386
/* void ortho2 float s float s float s float s */
4389
gl_ortho2(PyObject *self, PyObject *args)
4395
if (!getifloatarg(args, 4, 0, &arg1))
4397
if (!getifloatarg(args, 4, 1, &arg2))
4399
if (!getifloatarg(args, 4, 2, &arg3))
4401
if (!getifloatarg(args, 4, 3, &arg4))
4403
ortho2( arg1 , arg2 , arg3 , arg4 );
4408
/* void rect float s float s float s float s */
4411
gl_rect(PyObject *self, PyObject *args)
4417
if (!getifloatarg(args, 4, 0, &arg1))
4419
if (!getifloatarg(args, 4, 1, &arg2))
4421
if (!getifloatarg(args, 4, 2, &arg3))
4423
if (!getifloatarg(args, 4, 3, &arg4))
4425
rect( arg1 , arg2 , arg3 , arg4 );
4430
/* void rectf float s float s float s float s */
4433
gl_rectf(PyObject *self, PyObject *args)
4439
if (!getifloatarg(args, 4, 0, &arg1))
4441
if (!getifloatarg(args, 4, 1, &arg2))
4443
if (!getifloatarg(args, 4, 2, &arg3))
4445
if (!getifloatarg(args, 4, 3, &arg4))
4447
rectf( arg1 , arg2 , arg3 , arg4 );
4452
/* void xfpt4 float s float s float s float s */
4455
gl_xfpt4(PyObject *self, PyObject *args)
4461
if (!getifloatarg(args, 4, 0, &arg1))
4463
if (!getifloatarg(args, 4, 1, &arg2))
4465
if (!getifloatarg(args, 4, 2, &arg3))
4467
if (!getifloatarg(args, 4, 3, &arg4))
4469
xfpt4( arg1 , arg2 , arg3 , arg4 );
4474
/* void textport short s short s short s short s */
4477
gl_textport(PyObject *self, PyObject *args)
4483
if (!getishortarg(args, 4, 0, &arg1))
4485
if (!getishortarg(args, 4, 1, &arg2))
4487
if (!getishortarg(args, 4, 2, &arg3))
4489
if (!getishortarg(args, 4, 3, &arg4))
4491
textport( arg1 , arg2 , arg3 , arg4 );
4496
/* void mapcolor short s short s short s short s */
4499
gl_mapcolor(PyObject *self, PyObject *args)
4505
if (!getishortarg(args, 4, 0, &arg1))
4507
if (!getishortarg(args, 4, 1, &arg2))
4509
if (!getishortarg(args, 4, 2, &arg3))
4511
if (!getishortarg(args, 4, 3, &arg4))
4513
mapcolor( arg1 , arg2 , arg3 , arg4 );
4518
/* void scrmask short s short s short s short s */
4521
gl_scrmask(PyObject *self, PyObject *args)
4527
if (!getishortarg(args, 4, 0, &arg1))
4529
if (!getishortarg(args, 4, 1, &arg2))
4531
if (!getishortarg(args, 4, 2, &arg3))
4533
if (!getishortarg(args, 4, 3, &arg4))
4535
scrmask( arg1 , arg2 , arg3 , arg4 );
4540
/* void setvaluator short s short s short s short s */
4543
gl_setvaluator(PyObject *self, PyObject *args)
4549
if (!getishortarg(args, 4, 0, &arg1))
4551
if (!getishortarg(args, 4, 1, &arg2))
4553
if (!getishortarg(args, 4, 2, &arg3))
4555
if (!getishortarg(args, 4, 3, &arg4))
4557
setvaluator( arg1 , arg2 , arg3 , arg4 );
4562
/* void viewport short s short s short s short s */
4565
gl_viewport(PyObject *self, PyObject *args)
4571
if (!getishortarg(args, 4, 0, &arg1))
4573
if (!getishortarg(args, 4, 1, &arg2))
4575
if (!getishortarg(args, 4, 2, &arg3))
4577
if (!getishortarg(args, 4, 3, &arg4))
4579
viewport( arg1 , arg2 , arg3 , arg4 );
4584
/* void shaderange short s short s short s short s */
4587
gl_shaderange(PyObject *self, PyObject *args)
4593
if (!getishortarg(args, 4, 0, &arg1))
4595
if (!getishortarg(args, 4, 1, &arg2))
4597
if (!getishortarg(args, 4, 2, &arg3))
4599
if (!getishortarg(args, 4, 3, &arg4))
4601
shaderange( arg1 , arg2 , arg3 , arg4 );
4606
/* void xfpt4s short s short s short s short s */
4609
gl_xfpt4s(PyObject *self, PyObject *args)
4615
if (!getishortarg(args, 4, 0, &arg1))
4617
if (!getishortarg(args, 4, 1, &arg2))
4619
if (!getishortarg(args, 4, 2, &arg3))
4621
if (!getishortarg(args, 4, 3, &arg4))
4623
xfpt4s( arg1 , arg2 , arg3 , arg4 );
4628
/* void rectfi long s long s long s long s */
4631
gl_rectfi(PyObject *self, PyObject *args)
4637
if (!getilongarg(args, 4, 0, &arg1))
4639
if (!getilongarg(args, 4, 1, &arg2))
4641
if (!getilongarg(args, 4, 2, &arg3))
4643
if (!getilongarg(args, 4, 3, &arg4))
4645
rectfi( arg1 , arg2 , arg3 , arg4 );
4650
/* void recti long s long s long s long s */
4653
gl_recti(PyObject *self, PyObject *args)
4659
if (!getilongarg(args, 4, 0, &arg1))
4661
if (!getilongarg(args, 4, 1, &arg2))
4663
if (!getilongarg(args, 4, 2, &arg3))
4665
if (!getilongarg(args, 4, 3, &arg4))
4667
recti( arg1 , arg2 , arg3 , arg4 );
4672
/* void xfpt4i long s long s long s long s */
4675
gl_xfpt4i(PyObject *self, PyObject *args)
4681
if (!getilongarg(args, 4, 0, &arg1))
4683
if (!getilongarg(args, 4, 1, &arg2))
4685
if (!getilongarg(args, 4, 2, &arg3))
4687
if (!getilongarg(args, 4, 3, &arg4))
4689
xfpt4i( arg1 , arg2 , arg3 , arg4 );
4694
/* void prefposition long s long s long s long s */
4697
gl_prefposition(PyObject *self, PyObject *args)
4703
if (!getilongarg(args, 4, 0, &arg1))
4705
if (!getilongarg(args, 4, 1, &arg2))
4707
if (!getilongarg(args, 4, 2, &arg3))
4709
if (!getilongarg(args, 4, 3, &arg4))
4711
prefposition( arg1 , arg2 , arg3 , arg4 );
4716
/* void arc float s float s float s short s short s */
4719
gl_arc(PyObject *self, PyObject *args)
4726
if (!getifloatarg(args, 5, 0, &arg1))
4728
if (!getifloatarg(args, 5, 1, &arg2))
4730
if (!getifloatarg(args, 5, 2, &arg3))
4732
if (!getishortarg(args, 5, 3, &arg4))
4734
if (!getishortarg(args, 5, 4, &arg5))
4736
arc( arg1 , arg2 , arg3 , arg4 , arg5 );
4741
/* void arcf float s float s float s short s short s */
4744
gl_arcf(PyObject *self, PyObject *args)
4751
if (!getifloatarg(args, 5, 0, &arg1))
4753
if (!getifloatarg(args, 5, 1, &arg2))
4755
if (!getifloatarg(args, 5, 2, &arg3))
4757
if (!getishortarg(args, 5, 3, &arg4))
4759
if (!getishortarg(args, 5, 4, &arg5))
4761
arcf( arg1 , arg2 , arg3 , arg4 , arg5 );
4766
/* void arcfi long s long s long s short s short s */
4769
gl_arcfi(PyObject *self, PyObject *args)
4776
if (!getilongarg(args, 5, 0, &arg1))
4778
if (!getilongarg(args, 5, 1, &arg2))
4780
if (!getilongarg(args, 5, 2, &arg3))
4782
if (!getishortarg(args, 5, 3, &arg4))
4784
if (!getishortarg(args, 5, 4, &arg5))
4786
arcfi( arg1 , arg2 , arg3 , arg4 , arg5 );
4791
/* void arci long s long s long s short s short s */
4794
gl_arci(PyObject *self, PyObject *args)
4801
if (!getilongarg(args, 5, 0, &arg1))
4803
if (!getilongarg(args, 5, 1, &arg2))
4805
if (!getilongarg(args, 5, 2, &arg3))
4807
if (!getishortarg(args, 5, 3, &arg4))
4809
if (!getishortarg(args, 5, 4, &arg5))
4811
arci( arg1 , arg2 , arg3 , arg4 , arg5 );
4816
/* void bbox2 short s short s float s float s float s float s */
4819
gl_bbox2(PyObject *self, PyObject *args)
4827
if (!getishortarg(args, 6, 0, &arg1))
4829
if (!getishortarg(args, 6, 1, &arg2))
4831
if (!getifloatarg(args, 6, 2, &arg3))
4833
if (!getifloatarg(args, 6, 3, &arg4))
4835
if (!getifloatarg(args, 6, 4, &arg5))
4837
if (!getifloatarg(args, 6, 5, &arg6))
4839
bbox2( arg1 , arg2 , arg3 , arg4 , arg5 , arg6 );
4844
/* void bbox2i short s short s long s long s long s long s */
4847
gl_bbox2i(PyObject *self, PyObject *args)
4855
if (!getishortarg(args, 6, 0, &arg1))
4857
if (!getishortarg(args, 6, 1, &arg2))
4859
if (!getilongarg(args, 6, 2, &arg3))
4861
if (!getilongarg(args, 6, 3, &arg4))
4863
if (!getilongarg(args, 6, 4, &arg5))
4865
if (!getilongarg(args, 6, 5, &arg6))
4867
bbox2i( arg1 , arg2 , arg3 , arg4 , arg5 , arg6 );
4872
/* void bbox2s short s short s short s short s short s short s */
4875
gl_bbox2s(PyObject *self, PyObject *args)
4883
if (!getishortarg(args, 6, 0, &arg1))
4885
if (!getishortarg(args, 6, 1, &arg2))
4887
if (!getishortarg(args, 6, 2, &arg3))
4889
if (!getishortarg(args, 6, 3, &arg4))
4891
if (!getishortarg(args, 6, 4, &arg5))
4893
if (!getishortarg(args, 6, 5, &arg6))
4895
bbox2s( arg1 , arg2 , arg3 , arg4 , arg5 , arg6 );
4900
/* void blink short s short s short s short s short s */
4903
gl_blink(PyObject *self, PyObject *args)
4910
if (!getishortarg(args, 5, 0, &arg1))
4912
if (!getishortarg(args, 5, 1, &arg2))
4914
if (!getishortarg(args, 5, 2, &arg3))
4916
if (!getishortarg(args, 5, 3, &arg4))
4918
if (!getishortarg(args, 5, 4, &arg5))
4920
blink( arg1 , arg2 , arg3 , arg4 , arg5 );
4925
/* void ortho float s float s float s float s float s float s */
4928
gl_ortho(PyObject *self, PyObject *args)
4936
if (!getifloatarg(args, 6, 0, &arg1))
4938
if (!getifloatarg(args, 6, 1, &arg2))
4940
if (!getifloatarg(args, 6, 2, &arg3))
4942
if (!getifloatarg(args, 6, 3, &arg4))
4944
if (!getifloatarg(args, 6, 4, &arg5))
4946
if (!getifloatarg(args, 6, 5, &arg6))
4948
ortho( arg1 , arg2 , arg3 , arg4 , arg5 , arg6 );
4953
/* void window float s float s float s float s float s float s */
4956
gl_window(PyObject *self, PyObject *args)
4964
if (!getifloatarg(args, 6, 0, &arg1))
4966
if (!getifloatarg(args, 6, 1, &arg2))
4968
if (!getifloatarg(args, 6, 2, &arg3))
4970
if (!getifloatarg(args, 6, 3, &arg4))
4972
if (!getifloatarg(args, 6, 4, &arg5))
4974
if (!getifloatarg(args, 6, 5, &arg6))
4976
window( arg1 , arg2 , arg3 , arg4 , arg5 , arg6 );
4981
/* void lookat float s float s float s float s float s float s short s */
4984
gl_lookat(PyObject *self, PyObject *args)
4993
if (!getifloatarg(args, 7, 0, &arg1))
4995
if (!getifloatarg(args, 7, 1, &arg2))
4997
if (!getifloatarg(args, 7, 2, &arg3))
4999
if (!getifloatarg(args, 7, 3, &arg4))
5001
if (!getifloatarg(args, 7, 4, &arg5))
5003
if (!getifloatarg(args, 7, 5, &arg6))
5005
if (!getishortarg(args, 7, 6, &arg7))
5007
lookat( arg1 , arg2 , arg3 , arg4 , arg5 , arg6 , arg7 );
5012
/* void perspective short s float s float s float s */
5015
gl_perspective(PyObject *self, PyObject *args)
5021
if (!getishortarg(args, 4, 0, &arg1))
5023
if (!getifloatarg(args, 4, 1, &arg2))
5025
if (!getifloatarg(args, 4, 2, &arg3))
5027
if (!getifloatarg(args, 4, 3, &arg4))
5029
perspective( arg1 , arg2 , arg3 , arg4 );
5034
/* void polarview float s short s short s short s */
5037
gl_polarview(PyObject *self, PyObject *args)
5043
if (!getifloatarg(args, 4, 0, &arg1))
5045
if (!getishortarg(args, 4, 1, &arg2))
5047
if (!getishortarg(args, 4, 2, &arg3))
5049
if (!getishortarg(args, 4, 3, &arg4))
5051
polarview( arg1 , arg2 , arg3 , arg4 );
5056
/* void arcfs short s short s short s short s short s */
5059
gl_arcfs(PyObject *self, PyObject *args)
5066
if (!getishortarg(args, 5, 0, &arg1))
5068
if (!getishortarg(args, 5, 1, &arg2))
5070
if (!getishortarg(args, 5, 2, &arg3))
5072
if (!getishortarg(args, 5, 3, &arg4))
5074
if (!getishortarg(args, 5, 4, &arg5))
5076
arcfs( arg1 , arg2 , arg3 , arg4 , arg5 );
5081
/* void arcs short s short s short s short s short s */
5084
gl_arcs(PyObject *self, PyObject *args)
5091
if (!getishortarg(args, 5, 0, &arg1))
5093
if (!getishortarg(args, 5, 1, &arg2))
5095
if (!getishortarg(args, 5, 2, &arg3))
5097
if (!getishortarg(args, 5, 3, &arg4))
5099
if (!getishortarg(args, 5, 4, &arg5))
5101
arcs( arg1 , arg2 , arg3 , arg4 , arg5 );
5106
/* void rectcopy short s short s short s short s short s short s */
5109
gl_rectcopy(PyObject *self, PyObject *args)
5117
if (!getishortarg(args, 6, 0, &arg1))
5119
if (!getishortarg(args, 6, 1, &arg2))
5121
if (!getishortarg(args, 6, 2, &arg3))
5123
if (!getishortarg(args, 6, 3, &arg4))
5125
if (!getishortarg(args, 6, 4, &arg5))
5127
if (!getishortarg(args, 6, 5, &arg6))
5129
rectcopy( arg1 , arg2 , arg3 , arg4 , arg5 , arg6 );
5134
/* void RGBcursor short s short s short s short s short s short s short s */
5137
gl_RGBcursor(PyObject *self, PyObject *args)
5146
if (!getishortarg(args, 7, 0, &arg1))
5148
if (!getishortarg(args, 7, 1, &arg2))
5150
if (!getishortarg(args, 7, 2, &arg3))
5152
if (!getishortarg(args, 7, 3, &arg4))
5154
if (!getishortarg(args, 7, 4, &arg5))
5156
if (!getishortarg(args, 7, 5, &arg6))
5158
if (!getishortarg(args, 7, 6, &arg7))
5160
RGBcursor( arg1 , arg2 , arg3 , arg4 , arg5 , arg6 , arg7 );
5165
/* long getbutton short s */
5168
gl_getbutton(PyObject *self, PyObject *args)
5172
if (!getishortarg(args, 1, 0, &arg1))
5174
retval = getbutton( arg1 );
5175
return mknewlongobject(retval);
5178
/* long getcmmode */
5181
gl_getcmmode(PyObject *self, PyObject *args)
5184
retval = getcmmode( );
5185
return mknewlongobject(retval);
5188
/* long getlsbackup */
5191
gl_getlsbackup(PyObject *self, PyObject *args)
5194
retval = getlsbackup( );
5195
return mknewlongobject(retval);
5198
/* long getresetls */
5201
gl_getresetls(PyObject *self, PyObject *args)
5204
retval = getresetls( );
5205
return mknewlongobject(retval);
5211
gl_getdcm(PyObject *self, PyObject *args)
5215
return mknewlongobject(retval);
5218
/* long getzbuffer */
5221
gl_getzbuffer(PyObject *self, PyObject *args)
5224
retval = getzbuffer( );
5225
return mknewlongobject(retval);
5231
gl_ismex(PyObject *self, PyObject *args)
5235
return mknewlongobject(retval);
5238
/* long isobj long s */
5241
gl_isobj(PyObject *self, PyObject *args)
5245
if (!getilongarg(args, 1, 0, &arg1))
5247
retval = isobj( arg1 );
5248
return mknewlongobject(retval);
5251
/* long isqueued short s */
5254
gl_isqueued(PyObject *self, PyObject *args)
5258
if (!getishortarg(args, 1, 0, &arg1))
5260
retval = isqueued( arg1 );
5261
return mknewlongobject(retval);
5264
/* long istag long s */
5267
gl_istag(PyObject *self, PyObject *args)
5271
if (!getilongarg(args, 1, 0, &arg1))
5273
retval = istag( arg1 );
5274
return mknewlongobject(retval);
5280
gl_genobj(PyObject *self, PyObject *args)
5284
return mknewlongobject(retval);
5290
gl_gentag(PyObject *self, PyObject *args)
5294
return mknewlongobject(retval);
5297
/* long getbuffer */
5300
gl_getbuffer(PyObject *self, PyObject *args)
5303
retval = getbuffer( );
5304
return mknewlongobject(retval);
5310
gl_getcolor(PyObject *self, PyObject *args)
5313
retval = getcolor( );
5314
return mknewlongobject(retval);
5317
/* long getdisplaymode */
5320
gl_getdisplaymode(PyObject *self, PyObject *args)
5323
retval = getdisplaymode( );
5324
return mknewlongobject(retval);
5330
gl_getfont(PyObject *self, PyObject *args)
5333
retval = getfont( );
5334
return mknewlongobject(retval);
5337
/* long getheight */
5340
gl_getheight(PyObject *self, PyObject *args)
5343
retval = getheight( );
5344
return mknewlongobject(retval);
5347
/* long gethitcode */
5350
gl_gethitcode(PyObject *self, PyObject *args)
5353
retval = gethitcode( );
5354
return mknewlongobject(retval);
5357
/* long getlstyle */
5360
gl_getlstyle(PyObject *self, PyObject *args)
5363
retval = getlstyle( );
5364
return mknewlongobject(retval);
5367
/* long getlwidth */
5370
gl_getlwidth(PyObject *self, PyObject *args)
5373
retval = getlwidth( );
5374
return mknewlongobject(retval);
5380
gl_getmap(PyObject *self, PyObject *args)
5384
return mknewlongobject(retval);
5387
/* long getplanes */
5390
gl_getplanes(PyObject *self, PyObject *args)
5393
retval = getplanes( );
5394
return mknewlongobject(retval);
5397
/* long getwritemask */
5400
gl_getwritemask(PyObject *self, PyObject *args)
5403
retval = getwritemask( );
5404
return mknewlongobject(retval);
5410
gl_qtest(PyObject *self, PyObject *args)
5414
return mknewlongobject(retval);
5417
/* long getlsrepeat */
5420
gl_getlsrepeat(PyObject *self, PyObject *args)
5423
retval = getlsrepeat( );
5424
return mknewlongobject(retval);
5427
/* long getmonitor */
5430
gl_getmonitor(PyObject *self, PyObject *args)
5433
retval = getmonitor( );
5434
return mknewlongobject(retval);
5437
/* long getopenobj */
5440
gl_getopenobj(PyObject *self, PyObject *args)
5443
retval = getopenobj( );
5444
return mknewlongobject(retval);
5447
/* long getpattern */
5450
gl_getpattern(PyObject *self, PyObject *args)
5453
retval = getpattern( );
5454
return mknewlongobject(retval);
5460
gl_winget(PyObject *self, PyObject *args)
5464
return mknewlongobject(retval);
5467
/* long winattach */
5470
gl_winattach(PyObject *self, PyObject *args)
5473
retval = winattach( );
5474
return mknewlongobject(retval);
5477
/* long getothermonitor */
5480
gl_getothermonitor(PyObject *self, PyObject *args)
5483
retval = getothermonitor( );
5484
return mknewlongobject(retval);
5490
gl_newpup(PyObject *self, PyObject *args)
5494
return mknewlongobject(retval);
5497
/* long getvaluator short s */
5500
gl_getvaluator(PyObject *self, PyObject *args)
5504
if (!getishortarg(args, 1, 0, &arg1))
5506
retval = getvaluator( arg1 );
5507
return mknewlongobject(retval);
5510
/* void winset long s */
5513
gl_winset(PyObject *self, PyObject *args)
5516
if (!getilongarg(args, 1, 0, &arg1))
5523
/* long dopup long s */
5526
gl_dopup(PyObject *self, PyObject *args)
5530
if (!getilongarg(args, 1, 0, &arg1))
5532
retval = dopup( arg1 );
5533
return mknewlongobject(retval);
5536
/* void getdepth short r short r */
5539
gl_getdepth(PyObject *self, PyObject *args)
5543
getdepth( & arg1 , & arg2 );
5544
{ PyObject *v = PyTuple_New( 2 );
5545
if (v == NULL) return NULL;
5546
PyTuple_SetItem(v, 0, mknewshortobject(arg1));
5547
PyTuple_SetItem(v, 1, mknewshortobject(arg2));
5552
/* void getcpos short r short r */
5555
gl_getcpos(PyObject *self, PyObject *args)
5559
getcpos( & arg1 , & arg2 );
5560
{ PyObject *v = PyTuple_New( 2 );
5561
if (v == NULL) return NULL;
5562
PyTuple_SetItem(v, 0, mknewshortobject(arg1));
5563
PyTuple_SetItem(v, 1, mknewshortobject(arg2));
5568
/* void getsize long r long r */
5571
gl_getsize(PyObject *self, PyObject *args)
5575
getsize( & arg1 , & arg2 );
5576
{ PyObject *v = PyTuple_New( 2 );
5577
if (v == NULL) return NULL;
5578
PyTuple_SetItem(v, 0, mknewlongobject(arg1));
5579
PyTuple_SetItem(v, 1, mknewlongobject(arg2));
5584
/* void getorigin long r long r */
5587
gl_getorigin(PyObject *self, PyObject *args)
5591
getorigin( & arg1 , & arg2 );
5592
{ PyObject *v = PyTuple_New( 2 );
5593
if (v == NULL) return NULL;
5594
PyTuple_SetItem(v, 0, mknewlongobject(arg1));
5595
PyTuple_SetItem(v, 1, mknewlongobject(arg2));
5600
/* void getviewport short r short r short r short r */
5603
gl_getviewport(PyObject *self, PyObject *args)
5609
getviewport( & arg1 , & arg2 , & arg3 , & arg4 );
5610
{ PyObject *v = PyTuple_New( 4 );
5611
if (v == NULL) return NULL;
5612
PyTuple_SetItem(v, 0, mknewshortobject(arg1));
5613
PyTuple_SetItem(v, 1, mknewshortobject(arg2));
5614
PyTuple_SetItem(v, 2, mknewshortobject(arg3));
5615
PyTuple_SetItem(v, 3, mknewshortobject(arg4));
5620
/* void gettp short r short r short r short r */
5623
gl_gettp(PyObject *self, PyObject *args)
5629
gettp( & arg1 , & arg2 , & arg3 , & arg4 );
5630
{ PyObject *v = PyTuple_New( 4 );
5631
if (v == NULL) return NULL;
5632
PyTuple_SetItem(v, 0, mknewshortobject(arg1));
5633
PyTuple_SetItem(v, 1, mknewshortobject(arg2));
5634
PyTuple_SetItem(v, 2, mknewshortobject(arg3));
5635
PyTuple_SetItem(v, 3, mknewshortobject(arg4));
5640
/* void getgpos float r float r float r float r */
5643
gl_getgpos(PyObject *self, PyObject *args)
5649
getgpos( & arg1 , & arg2 , & arg3 , & arg4 );
5650
{ PyObject *v = PyTuple_New( 4 );
5651
if (v == NULL) return NULL;
5652
PyTuple_SetItem(v, 0, mknewfloatobject(arg1));
5653
PyTuple_SetItem(v, 1, mknewfloatobject(arg2));
5654
PyTuple_SetItem(v, 2, mknewfloatobject(arg3));
5655
PyTuple_SetItem(v, 3, mknewfloatobject(arg4));
5660
/* void winposition long s long s long s long s */
5663
gl_winposition(PyObject *self, PyObject *args)
5669
if (!getilongarg(args, 4, 0, &arg1))
5671
if (!getilongarg(args, 4, 1, &arg2))
5673
if (!getilongarg(args, 4, 2, &arg3))
5675
if (!getilongarg(args, 4, 3, &arg4))
5677
winposition( arg1 , arg2 , arg3 , arg4 );
5682
/* void gRGBcolor short r short r short r */
5685
gl_gRGBcolor(PyObject *self, PyObject *args)
5690
gRGBcolor( & arg1 , & arg2 , & arg3 );
5691
{ PyObject *v = PyTuple_New( 3 );
5692
if (v == NULL) return NULL;
5693
PyTuple_SetItem(v, 0, mknewshortobject(arg1));
5694
PyTuple_SetItem(v, 1, mknewshortobject(arg2));
5695
PyTuple_SetItem(v, 2, mknewshortobject(arg3));
5700
/* void gRGBmask short r short r short r */
5703
gl_gRGBmask(PyObject *self, PyObject *args)
5708
gRGBmask( & arg1 , & arg2 , & arg3 );
5709
{ PyObject *v = PyTuple_New( 3 );
5710
if (v == NULL) return NULL;
5711
PyTuple_SetItem(v, 0, mknewshortobject(arg1));
5712
PyTuple_SetItem(v, 1, mknewshortobject(arg2));
5713
PyTuple_SetItem(v, 2, mknewshortobject(arg3));
5718
/* void getscrmask short r short r short r short r */
5721
gl_getscrmask(PyObject *self, PyObject *args)
5727
getscrmask( & arg1 , & arg2 , & arg3 , & arg4 );
5728
{ PyObject *v = PyTuple_New( 4 );
5729
if (v == NULL) return NULL;
5730
PyTuple_SetItem(v, 0, mknewshortobject(arg1));
5731
PyTuple_SetItem(v, 1, mknewshortobject(arg2));
5732
PyTuple_SetItem(v, 2, mknewshortobject(arg3));
5733
PyTuple_SetItem(v, 3, mknewshortobject(arg4));
5738
/* void getmcolor short s short r short r short r */
5741
gl_getmcolor(PyObject *self, PyObject *args)
5747
if (!getishortarg(args, 1, 0, &arg1))
5749
getmcolor( arg1 , & arg2 , & arg3 , & arg4 );
5750
{ PyObject *v = PyTuple_New( 3 );
5751
if (v == NULL) return NULL;
5752
PyTuple_SetItem(v, 0, mknewshortobject(arg2));
5753
PyTuple_SetItem(v, 1, mknewshortobject(arg3));
5754
PyTuple_SetItem(v, 2, mknewshortobject(arg4));
5759
/* void mapw long s short s short s float r float r float r float r float r float r */
5762
gl_mapw(PyObject *self, PyObject *args)
5773
if (!getilongarg(args, 3, 0, &arg1))
5775
if (!getishortarg(args, 3, 1, &arg2))
5777
if (!getishortarg(args, 3, 2, &arg3))
5779
mapw( arg1 , arg2 , arg3 , & arg4 , & arg5 , & arg6 , & arg7 , & arg8 , & arg9 );
5780
{ PyObject *v = PyTuple_New( 6 );
5781
if (v == NULL) return NULL;
5782
PyTuple_SetItem(v, 0, mknewfloatobject(arg4));
5783
PyTuple_SetItem(v, 1, mknewfloatobject(arg5));
5784
PyTuple_SetItem(v, 2, mknewfloatobject(arg6));
5785
PyTuple_SetItem(v, 3, mknewfloatobject(arg7));
5786
PyTuple_SetItem(v, 4, mknewfloatobject(arg8));
5787
PyTuple_SetItem(v, 5, mknewfloatobject(arg9));
5792
/* void mapw2 long s short s short s float r float r */
5795
gl_mapw2(PyObject *self, PyObject *args)
5802
if (!getilongarg(args, 3, 0, &arg1))
5804
if (!getishortarg(args, 3, 1, &arg2))
5806
if (!getishortarg(args, 3, 2, &arg3))
5808
mapw2( arg1 , arg2 , arg3 , & arg4 , & arg5 );
5809
{ PyObject *v = PyTuple_New( 2 );
5810
if (v == NULL) return NULL;
5811
PyTuple_SetItem(v, 0, mknewfloatobject(arg4));
5812
PyTuple_SetItem(v, 1, mknewfloatobject(arg5));
5817
/* void getcursor short r u_short r u_short r long r */
5820
gl_getcursor(PyObject *self, PyObject *args)
5823
unsigned short arg2 ;
5824
unsigned short arg3 ;
5826
getcursor( & arg1 , & arg2 , & arg3 , & arg4 );
5827
{ PyObject *v = PyTuple_New( 4 );
5828
if (v == NULL) return NULL;
5829
PyTuple_SetItem(v, 0, mknewshortobject(arg1));
5830
PyTuple_SetItem(v, 1, mknewshortobject((short) arg2));
5831
PyTuple_SetItem(v, 2, mknewshortobject((short) arg3));
5832
PyTuple_SetItem(v, 3, mknewlongobject(arg4));
5840
gl_cmode(PyObject *self, PyObject *args)
5847
/* void concave long s */
5850
gl_concave(PyObject *self, PyObject *args)
5853
if (!getilongarg(args, 1, 0, &arg1))
5860
/* void curstype long s */
5863
gl_curstype(PyObject *self, PyObject *args)
5866
if (!getilongarg(args, 1, 0, &arg1))
5873
/* void drawmode long s */
5876
gl_drawmode(PyObject *self, PyObject *args)
5879
if (!getilongarg(args, 1, 0, &arg1))
5886
/* void gammaramp short s[256] short s[256] short s[256] */
5889
gl_gammaramp(PyObject *self, PyObject *args)
5891
short arg1 [ 256 ] ;
5892
short arg2 [ 256 ] ;
5893
short arg3 [ 256 ] ;
5894
if (!getishortarray(args, 3, 0, 256 , arg1))
5896
if (!getishortarray(args, 3, 1, 256 , arg2))
5898
if (!getishortarray(args, 3, 2, 256 , arg3))
5900
gammaramp( arg1 , arg2 , arg3 );
5905
/* long getbackface */
5908
gl_getbackface(PyObject *self, PyObject *args)
5911
retval = getbackface( );
5912
return mknewlongobject(retval);
5915
/* long getdescender */
5918
gl_getdescender(PyObject *self, PyObject *args)
5921
retval = getdescender( );
5922
return mknewlongobject(retval);
5925
/* long getdrawmode */
5928
gl_getdrawmode(PyObject *self, PyObject *args)
5931
retval = getdrawmode( );
5932
return mknewlongobject(retval);
5938
gl_getmmode(PyObject *self, PyObject *args)
5941
retval = getmmode( );
5942
return mknewlongobject(retval);
5948
gl_getsm(PyObject *self, PyObject *args)
5952
return mknewlongobject(retval);
5955
/* long getvideo long s */
5958
gl_getvideo(PyObject *self, PyObject *args)
5962
if (!getilongarg(args, 1, 0, &arg1))
5964
retval = getvideo( arg1 );
5965
return mknewlongobject(retval);
5968
/* void imakebackground */
5971
gl_imakebackground(PyObject *self, PyObject *args)
5978
/* void lmbind short s short s */
5981
gl_lmbind(PyObject *self, PyObject *args)
5985
if (!getishortarg(args, 2, 0, &arg1))
5987
if (!getishortarg(args, 2, 1, &arg2))
5989
lmbind( arg1 , arg2 );
5994
/* void lmdef long s long s long s float s[arg3] */
5997
gl_lmdef(PyObject *self, PyObject *args)
6003
if (!getilongarg(args, 3, 0, &arg1))
6005
if (!getilongarg(args, 3, 1, &arg2))
6007
if (!getilongarraysize(args, 3, 2, &arg3))
6009
if ((arg4 = PyMem_NEW(float , arg3 )) == NULL)
6010
return PyErr_NoMemory();
6011
if (!getifloatarray(args, 3, 2, arg3 , arg4))
6013
lmdef( arg1 , arg2 , arg3 , arg4 );
6019
/* void mmode long s */
6022
gl_mmode(PyObject *self, PyObject *args)
6025
if (!getilongarg(args, 1, 0, &arg1))
6032
/* void normal float s[3] */
6035
gl_normal(PyObject *self, PyObject *args)
6038
if (!getifloatarray(args, 1, 0, 3 , arg1))
6045
/* void overlay long s */
6048
gl_overlay(PyObject *self, PyObject *args)
6051
if (!getilongarg(args, 1, 0, &arg1))
6058
/* void RGBrange short s short s short s short s short s short s short s short s */
6061
gl_RGBrange(PyObject *self, PyObject *args)
6071
if (!getishortarg(args, 8, 0, &arg1))
6073
if (!getishortarg(args, 8, 1, &arg2))
6075
if (!getishortarg(args, 8, 2, &arg3))
6077
if (!getishortarg(args, 8, 3, &arg4))
6079
if (!getishortarg(args, 8, 4, &arg5))
6081
if (!getishortarg(args, 8, 5, &arg6))
6083
if (!getishortarg(args, 8, 6, &arg7))
6085
if (!getishortarg(args, 8, 7, &arg8))
6087
RGBrange( arg1 , arg2 , arg3 , arg4 , arg5 , arg6 , arg7 , arg8 );
6092
/* void setvideo long s long s */
6095
gl_setvideo(PyObject *self, PyObject *args)
6099
if (!getilongarg(args, 2, 0, &arg1))
6101
if (!getilongarg(args, 2, 1, &arg2))
6103
setvideo( arg1 , arg2 );
6108
/* void shademodel long s */
6111
gl_shademodel(PyObject *self, PyObject *args)
6114
if (!getilongarg(args, 1, 0, &arg1))
6121
/* void underlay long s */
6124
gl_underlay(PyObject *self, PyObject *args)
6127
if (!getilongarg(args, 1, 0, &arg1))
6134
/* void bgnclosedline */
6137
gl_bgnclosedline(PyObject *self, PyObject *args)
6147
gl_bgnline(PyObject *self, PyObject *args)
6157
gl_bgnpoint(PyObject *self, PyObject *args)
6164
/* void bgnpolygon */
6167
gl_bgnpolygon(PyObject *self, PyObject *args)
6174
/* void bgnsurface */
6177
gl_bgnsurface(PyObject *self, PyObject *args)
6187
gl_bgntmesh(PyObject *self, PyObject *args)
6197
gl_bgntrim(PyObject *self, PyObject *args)
6204
/* void endclosedline */
6207
gl_endclosedline(PyObject *self, PyObject *args)
6217
gl_endline(PyObject *self, PyObject *args)
6227
gl_endpoint(PyObject *self, PyObject *args)
6234
/* void endpolygon */
6237
gl_endpolygon(PyObject *self, PyObject *args)
6244
/* void endsurface */
6247
gl_endsurface(PyObject *self, PyObject *args)
6257
gl_endtmesh(PyObject *self, PyObject *args)
6267
gl_endtrim(PyObject *self, PyObject *args)
6274
/* void blendfunction long s long s */
6277
gl_blendfunction(PyObject *self, PyObject *args)
6281
if (!getilongarg(args, 2, 0, &arg1))
6283
if (!getilongarg(args, 2, 1, &arg2))
6285
blendfunction( arg1 , arg2 );
6290
/* void c3f float s[3] */
6293
gl_c3f(PyObject *self, PyObject *args)
6296
if (!getifloatarray(args, 1, 0, 3 , arg1))
6303
/* void c3i long s[3] */
6306
gl_c3i(PyObject *self, PyObject *args)
6309
if (!getilongarray(args, 1, 0, 3 , arg1))
6316
/* void c3s short s[3] */
6319
gl_c3s(PyObject *self, PyObject *args)
6322
if (!getishortarray(args, 1, 0, 3 , arg1))
6329
/* void c4f float s[4] */
6332
gl_c4f(PyObject *self, PyObject *args)
6335
if (!getifloatarray(args, 1, 0, 4 , arg1))
6342
/* void c4i long s[4] */
6345
gl_c4i(PyObject *self, PyObject *args)
6348
if (!getilongarray(args, 1, 0, 4 , arg1))
6355
/* void c4s short s[4] */
6358
gl_c4s(PyObject *self, PyObject *args)
6361
if (!getishortarray(args, 1, 0, 4 , arg1))
6368
/* void colorf float s */
6371
gl_colorf(PyObject *self, PyObject *args)
6374
if (!getifloatarg(args, 1, 0, &arg1))
6381
/* void cpack long s */
6384
gl_cpack(PyObject *self, PyObject *args)
6387
if (!getilongarg(args, 1, 0, &arg1))
6394
/* void czclear long s long s */
6397
gl_czclear(PyObject *self, PyObject *args)
6401
if (!getilongarg(args, 2, 0, &arg1))
6403
if (!getilongarg(args, 2, 1, &arg2))
6405
czclear( arg1 , arg2 );
6410
/* void dglclose long s */
6413
gl_dglclose(PyObject *self, PyObject *args)
6416
if (!getilongarg(args, 1, 0, &arg1))
6423
/* long dglopen char *s long s */
6426
gl_dglopen(PyObject *self, PyObject *args)
6431
if (!getistringarg(args, 2, 0, &arg1))
6433
if (!getilongarg(args, 2, 1, &arg2))
6435
retval = dglopen( arg1 , arg2 );
6436
return mknewlongobject(retval);
6439
/* long getgdesc long s */
6442
gl_getgdesc(PyObject *self, PyObject *args)
6446
if (!getilongarg(args, 1, 0, &arg1))
6448
retval = getgdesc( arg1 );
6449
return mknewlongobject(retval);
6452
/* void getnurbsproperty long s float r */
6455
gl_getnurbsproperty(PyObject *self, PyObject *args)
6459
if (!getilongarg(args, 1, 0, &arg1))
6461
getnurbsproperty( arg1 , & arg2 );
6462
return mknewfloatobject(arg2);
6465
/* void glcompat long s long s */
6468
gl_glcompat(PyObject *self, PyObject *args)
6472
if (!getilongarg(args, 2, 0, &arg1))
6474
if (!getilongarg(args, 2, 1, &arg2))
6476
glcompat( arg1 , arg2 );
6481
/* void iconsize long s long s */
6484
gl_iconsize(PyObject *self, PyObject *args)
6488
if (!getilongarg(args, 2, 0, &arg1))
6490
if (!getilongarg(args, 2, 1, &arg2))
6492
iconsize( arg1 , arg2 );
6497
/* void icontitle char *s */
6500
gl_icontitle(PyObject *self, PyObject *args)
6503
if (!getistringarg(args, 1, 0, &arg1))
6510
/* void lRGBrange short s short s short s short s short s short s long s long s */
6513
gl_lRGBrange(PyObject *self, PyObject *args)
6523
if (!getishortarg(args, 8, 0, &arg1))
6525
if (!getishortarg(args, 8, 1, &arg2))
6527
if (!getishortarg(args, 8, 2, &arg3))
6529
if (!getishortarg(args, 8, 3, &arg4))
6531
if (!getishortarg(args, 8, 4, &arg5))
6533
if (!getishortarg(args, 8, 5, &arg6))
6535
if (!getilongarg(args, 8, 6, &arg7))
6537
if (!getilongarg(args, 8, 7, &arg8))
6539
lRGBrange( arg1 , arg2 , arg3 , arg4 , arg5 , arg6 , arg7 , arg8 );
6544
/* void linesmooth long s */
6547
gl_linesmooth(PyObject *self, PyObject *args)
6550
if (!getilongarg(args, 1, 0, &arg1))
6557
/* void lmcolor long s */
6560
gl_lmcolor(PyObject *self, PyObject *args)
6563
if (!getilongarg(args, 1, 0, &arg1))
6570
/* void logicop long s */
6573
gl_logicop(PyObject *self, PyObject *args)
6576
if (!getilongarg(args, 1, 0, &arg1))
6583
/* void lsetdepth long s long s */
6586
gl_lsetdepth(PyObject *self, PyObject *args)
6590
if (!getilongarg(args, 2, 0, &arg1))
6592
if (!getilongarg(args, 2, 1, &arg2))
6594
lsetdepth( arg1 , arg2 );
6599
/* void lshaderange short s short s long s long s */
6602
gl_lshaderange(PyObject *self, PyObject *args)
6608
if (!getishortarg(args, 4, 0, &arg1))
6610
if (!getishortarg(args, 4, 1, &arg2))
6612
if (!getilongarg(args, 4, 2, &arg3))
6614
if (!getilongarg(args, 4, 3, &arg4))
6616
lshaderange( arg1 , arg2 , arg3 , arg4 );
6621
/* void n3f float s[3] */
6624
gl_n3f(PyObject *self, PyObject *args)
6627
if (!getifloatarray(args, 1, 0, 3 , arg1))
6637
gl_noborder(PyObject *self, PyObject *args)
6644
/* void pntsmooth long s */
6647
gl_pntsmooth(PyObject *self, PyObject *args)
6650
if (!getilongarg(args, 1, 0, &arg1))
6657
/* void readsource long s */
6660
gl_readsource(PyObject *self, PyObject *args)
6663
if (!getilongarg(args, 1, 0, &arg1))
6670
/* void rectzoom float s float s */
6673
gl_rectzoom(PyObject *self, PyObject *args)
6677
if (!getifloatarg(args, 2, 0, &arg1))
6679
if (!getifloatarg(args, 2, 1, &arg2))
6681
rectzoom( arg1 , arg2 );
6686
/* void sbox float s float s float s float s */
6689
gl_sbox(PyObject *self, PyObject *args)
6695
if (!getifloatarg(args, 4, 0, &arg1))
6697
if (!getifloatarg(args, 4, 1, &arg2))
6699
if (!getifloatarg(args, 4, 2, &arg3))
6701
if (!getifloatarg(args, 4, 3, &arg4))
6703
sbox( arg1 , arg2 , arg3 , arg4 );
6708
/* void sboxi long s long s long s long s */
6711
gl_sboxi(PyObject *self, PyObject *args)
6717
if (!getilongarg(args, 4, 0, &arg1))
6719
if (!getilongarg(args, 4, 1, &arg2))
6721
if (!getilongarg(args, 4, 2, &arg3))
6723
if (!getilongarg(args, 4, 3, &arg4))
6725
sboxi( arg1 , arg2 , arg3 , arg4 );
6730
/* void sboxs short s short s short s short s */
6733
gl_sboxs(PyObject *self, PyObject *args)
6739
if (!getishortarg(args, 4, 0, &arg1))
6741
if (!getishortarg(args, 4, 1, &arg2))
6743
if (!getishortarg(args, 4, 2, &arg3))
6745
if (!getishortarg(args, 4, 3, &arg4))
6747
sboxs( arg1 , arg2 , arg3 , arg4 );
6752
/* void sboxf float s float s float s float s */
6755
gl_sboxf(PyObject *self, PyObject *args)
6761
if (!getifloatarg(args, 4, 0, &arg1))
6763
if (!getifloatarg(args, 4, 1, &arg2))
6765
if (!getifloatarg(args, 4, 2, &arg3))
6767
if (!getifloatarg(args, 4, 3, &arg4))
6769
sboxf( arg1 , arg2 , arg3 , arg4 );
6774
/* void sboxfi long s long s long s long s */
6777
gl_sboxfi(PyObject *self, PyObject *args)
6783
if (!getilongarg(args, 4, 0, &arg1))
6785
if (!getilongarg(args, 4, 1, &arg2))
6787
if (!getilongarg(args, 4, 2, &arg3))
6789
if (!getilongarg(args, 4, 3, &arg4))
6791
sboxfi( arg1 , arg2 , arg3 , arg4 );
6796
/* void sboxfs short s short s short s short s */
6799
gl_sboxfs(PyObject *self, PyObject *args)
6805
if (!getishortarg(args, 4, 0, &arg1))
6807
if (!getishortarg(args, 4, 1, &arg2))
6809
if (!getishortarg(args, 4, 2, &arg3))
6811
if (!getishortarg(args, 4, 3, &arg4))
6813
sboxfs( arg1 , arg2 , arg3 , arg4 );
6818
/* void setnurbsproperty long s float s */
6821
gl_setnurbsproperty(PyObject *self, PyObject *args)
6825
if (!getilongarg(args, 2, 0, &arg1))
6827
if (!getifloatarg(args, 2, 1, &arg2))
6829
setnurbsproperty( arg1 , arg2 );
6834
/* void setpup long s long s long s */
6837
gl_setpup(PyObject *self, PyObject *args)
6842
if (!getilongarg(args, 3, 0, &arg1))
6844
if (!getilongarg(args, 3, 1, &arg2))
6846
if (!getilongarg(args, 3, 2, &arg3))
6848
setpup( arg1 , arg2 , arg3 );
6853
/* void smoothline long s */
6856
gl_smoothline(PyObject *self, PyObject *args)
6859
if (!getilongarg(args, 1, 0, &arg1))
6866
/* void subpixel long s */
6869
gl_subpixel(PyObject *self, PyObject *args)
6872
if (!getilongarg(args, 1, 0, &arg1))
6879
/* void swaptmesh */
6882
gl_swaptmesh(PyObject *self, PyObject *args)
6889
/* long swinopen long s */
6892
gl_swinopen(PyObject *self, PyObject *args)
6896
if (!getilongarg(args, 1, 0, &arg1))
6898
retval = swinopen( arg1 );
6899
return mknewlongobject(retval);
6902
/* void v2f float s[2] */
6905
gl_v2f(PyObject *self, PyObject *args)
6908
if (!getifloatarray(args, 1, 0, 2 , arg1))
6915
/* void v2i long s[2] */
6918
gl_v2i(PyObject *self, PyObject *args)
6921
if (!getilongarray(args, 1, 0, 2 , arg1))
6928
/* void v2s short s[2] */
6931
gl_v2s(PyObject *self, PyObject *args)
6934
if (!getishortarray(args, 1, 0, 2 , arg1))
6941
/* void v3f float s[3] */
6944
gl_v3f(PyObject *self, PyObject *args)
6947
if (!getifloatarray(args, 1, 0, 3 , arg1))
6954
/* void v3i long s[3] */
6957
gl_v3i(PyObject *self, PyObject *args)
6960
if (!getilongarray(args, 1, 0, 3 , arg1))
6967
/* void v3s short s[3] */
6970
gl_v3s(PyObject *self, PyObject *args)
6973
if (!getishortarray(args, 1, 0, 3 , arg1))
6980
/* void v4f float s[4] */
6983
gl_v4f(PyObject *self, PyObject *args)
6986
if (!getifloatarray(args, 1, 0, 4 , arg1))
6993
/* void v4i long s[4] */
6996
gl_v4i(PyObject *self, PyObject *args)
6999
if (!getilongarray(args, 1, 0, 4 , arg1))
7006
/* void v4s short s[4] */
7009
gl_v4s(PyObject *self, PyObject *args)
7012
if (!getishortarray(args, 1, 0, 4 , arg1))
7019
/* void videocmd long s */
7022
gl_videocmd(PyObject *self, PyObject *args)
7025
if (!getilongarg(args, 1, 0, &arg1))
7032
/* long windepth long s */
7035
gl_windepth(PyObject *self, PyObject *args)
7039
if (!getilongarg(args, 1, 0, &arg1))
7041
retval = windepth( arg1 );
7042
return mknewlongobject(retval);
7045
/* void wmpack long s */
7048
gl_wmpack(PyObject *self, PyObject *args)
7051
if (!getilongarg(args, 1, 0, &arg1))
7058
/* void zdraw long s */
7061
gl_zdraw(PyObject *self, PyObject *args)
7064
if (!getilongarg(args, 1, 0, &arg1))
7071
/* void zfunction long s */
7074
gl_zfunction(PyObject *self, PyObject *args)
7077
if (!getilongarg(args, 1, 0, &arg1))
7084
/* void zsource long s */
7087
gl_zsource(PyObject *self, PyObject *args)
7090
if (!getilongarg(args, 1, 0, &arg1))
7097
/* void zwritemask long s */
7100
gl_zwritemask(PyObject *self, PyObject *args)
7103
if (!getilongarg(args, 1, 0, &arg1))
7110
/* void v2d double s[2] */
7113
gl_v2d(PyObject *self, PyObject *args)
7116
if (!getidoublearray(args, 1, 0, 2 , arg1))
7123
/* void v3d double s[3] */
7126
gl_v3d(PyObject *self, PyObject *args)
7129
if (!getidoublearray(args, 1, 0, 3 , arg1))
7136
/* void v4d double s[4] */
7139
gl_v4d(PyObject *self, PyObject *args)
7142
if (!getidoublearray(args, 1, 0, 4 , arg1))
7149
/* void pixmode long s long s */
7152
gl_pixmode(PyObject *self, PyObject *args)
7156
if (!getilongarg(args, 2, 0, &arg1))
7158
if (!getilongarg(args, 2, 1, &arg2))
7160
pixmode( arg1 , arg2 );
7168
gl_qgetfd(PyObject *self, PyObject *args)
7172
return mknewlongobject(retval);
7175
/* void dither long s */
7178
gl_dither(PyObject *self, PyObject *args)
7181
if (!getilongarg(args, 1, 0, &arg1))
7188
static struct PyMethodDef gl_methods[] = {
7189
{"qread", gl_qread, METH_OLDARGS},
7190
{"varray", gl_varray, METH_OLDARGS},
7191
{"nvarray", gl_nvarray, METH_OLDARGS},
7192
{"vnarray", gl_vnarray, METH_OLDARGS},
7193
{"nurbssurface", gl_nurbssurface, METH_OLDARGS},
7194
{"nurbscurve", gl_nurbscurve, METH_OLDARGS},
7195
{"pwlcurve", gl_pwlcurve, METH_OLDARGS},
7196
{"pick", gl_pick, METH_OLDARGS},
7197
{"endpick", gl_endpick, METH_NOARGS},
7198
{"gselect", gl_gselect, METH_OLDARGS},
7199
{"endselect", gl_endselect, METH_NOARGS},
7200
{"getmatrix", gl_getmatrix, METH_OLDARGS},
7201
{"altgetmatrix", gl_altgetmatrix, METH_OLDARGS},
7202
{"lrectwrite", gl_lrectwrite, METH_OLDARGS},
7203
{"lrectread", gl_lrectread, METH_OLDARGS},
7204
{"readdisplay", gl_readdisplay, METH_OLDARGS},
7205
{"packrect", gl_packrect, METH_OLDARGS},
7206
{"unpackrect", gl_unpackrect, METH_OLDARGS},
7207
{"gversion", gl_gversion, METH_OLDARGS},
7208
{"clear", gl_clear, METH_OLDARGS},
7209
{"getshade", gl_getshade, METH_OLDARGS},
7210
{"devport", gl_devport, METH_OLDARGS},
7211
{"rdr2i", gl_rdr2i, METH_OLDARGS},
7212
{"rectfs", gl_rectfs, METH_OLDARGS},
7213
{"rects", gl_rects, METH_OLDARGS},
7214
{"rmv2i", gl_rmv2i, METH_OLDARGS},
7215
{"noport", gl_noport, METH_OLDARGS},
7216
{"popviewport", gl_popviewport, METH_OLDARGS},
7217
{"clearhitcode", gl_clearhitcode, METH_OLDARGS},
7218
{"closeobj", gl_closeobj, METH_OLDARGS},
7219
{"cursoff", gl_cursoff, METH_OLDARGS},
7220
{"curson", gl_curson, METH_OLDARGS},
7221
{"doublebuffer", gl_doublebuffer, METH_OLDARGS},
7222
{"finish", gl_finish, METH_OLDARGS},
7223
{"gconfig", gl_gconfig, METH_OLDARGS},
7224
{"ginit", gl_ginit, METH_OLDARGS},
7225
{"greset", gl_greset, METH_OLDARGS},
7226
{"multimap", gl_multimap, METH_OLDARGS},
7227
{"onemap", gl_onemap, METH_OLDARGS},
7228
{"popattributes", gl_popattributes, METH_OLDARGS},
7229
{"popmatrix", gl_popmatrix, METH_OLDARGS},
7230
{"pushattributes", gl_pushattributes,METH_OLDARGS},
7231
{"pushmatrix", gl_pushmatrix, METH_OLDARGS},
7232
{"pushviewport", gl_pushviewport, METH_OLDARGS},
7233
{"qreset", gl_qreset, METH_OLDARGS},
7234
{"RGBmode", gl_RGBmode, METH_OLDARGS},
7235
{"singlebuffer", gl_singlebuffer, METH_OLDARGS},
7236
{"swapbuffers", gl_swapbuffers, METH_OLDARGS},
7237
{"gsync", gl_gsync, METH_OLDARGS},
7238
{"gflush", gl_gflush, METH_OLDARGS},
7239
{"tpon", gl_tpon, METH_OLDARGS},
7240
{"tpoff", gl_tpoff, METH_OLDARGS},
7241
{"clkon", gl_clkon, METH_OLDARGS},
7242
{"clkoff", gl_clkoff, METH_OLDARGS},
7243
{"ringbell", gl_ringbell, METH_OLDARGS},
7244
{"gbegin", gl_gbegin, METH_OLDARGS},
7245
{"textinit", gl_textinit, METH_OLDARGS},
7246
{"initnames", gl_initnames, METH_OLDARGS},
7247
{"pclos", gl_pclos, METH_OLDARGS},
7248
{"popname", gl_popname, METH_OLDARGS},
7249
{"spclos", gl_spclos, METH_OLDARGS},
7250
{"zclear", gl_zclear, METH_OLDARGS},
7251
{"screenspace", gl_screenspace, METH_OLDARGS},
7252
{"reshapeviewport", gl_reshapeviewport, METH_OLDARGS},
7253
{"winpush", gl_winpush, METH_OLDARGS},
7254
{"winpop", gl_winpop, METH_OLDARGS},
7255
{"foreground", gl_foreground, METH_OLDARGS},
7256
{"endfullscrn", gl_endfullscrn, METH_OLDARGS},
7257
{"endpupmode", gl_endpupmode, METH_OLDARGS},
7258
{"fullscrn", gl_fullscrn, METH_OLDARGS},
7259
{"pupmode", gl_pupmode, METH_OLDARGS},
7260
{"winconstraints", gl_winconstraints, METH_OLDARGS},
7261
{"pagecolor", gl_pagecolor, METH_OLDARGS},
7262
{"textcolor", gl_textcolor, METH_OLDARGS},
7263
{"color", gl_color, METH_OLDARGS},
7264
{"curveit", gl_curveit, METH_OLDARGS},
7265
{"font", gl_font, METH_OLDARGS},
7266
{"linewidth", gl_linewidth, METH_OLDARGS},
7267
{"setlinestyle", gl_setlinestyle, METH_OLDARGS},
7268
{"setmap", gl_setmap, METH_OLDARGS},
7269
{"swapinterval", gl_swapinterval, METH_OLDARGS},
7270
{"writemask", gl_writemask, METH_OLDARGS},
7271
{"textwritemask", gl_textwritemask, METH_OLDARGS},
7272
{"qdevice", gl_qdevice, METH_OLDARGS},
7273
{"unqdevice", gl_unqdevice, METH_OLDARGS},
7274
{"curvebasis", gl_curvebasis, METH_OLDARGS},
7275
{"curveprecision", gl_curveprecision,METH_OLDARGS},
7276
{"loadname", gl_loadname, METH_OLDARGS},
7277
{"passthrough", gl_passthrough, METH_OLDARGS},
7278
{"pushname", gl_pushname, METH_OLDARGS},
7279
{"setmonitor", gl_setmonitor, METH_OLDARGS},
7280
{"setshade", gl_setshade, METH_OLDARGS},
7281
{"setpattern", gl_setpattern, METH_OLDARGS},
7282
{"pagewritemask", gl_pagewritemask, METH_OLDARGS},
7283
{"callobj", gl_callobj, METH_OLDARGS},
7284
{"delobj", gl_delobj, METH_OLDARGS},
7285
{"editobj", gl_editobj, METH_OLDARGS},
7286
{"makeobj", gl_makeobj, METH_OLDARGS},
7287
{"maketag", gl_maketag, METH_OLDARGS},
7288
{"chunksize", gl_chunksize, METH_OLDARGS},
7289
{"compactify", gl_compactify, METH_OLDARGS},
7290
{"deltag", gl_deltag, METH_OLDARGS},
7291
{"lsrepeat", gl_lsrepeat, METH_OLDARGS},
7292
{"objinsert", gl_objinsert, METH_OLDARGS},
7293
{"objreplace", gl_objreplace, METH_OLDARGS},
7294
{"winclose", gl_winclose, METH_OLDARGS},
7295
{"blanktime", gl_blanktime, METH_OLDARGS},
7296
{"freepup", gl_freepup, METH_OLDARGS},
7297
{"backbuffer", gl_backbuffer, METH_OLDARGS},
7298
{"frontbuffer", gl_frontbuffer, METH_OLDARGS},
7299
{"lsbackup", gl_lsbackup, METH_OLDARGS},
7300
{"resetls", gl_resetls, METH_OLDARGS},
7301
{"lampon", gl_lampon, METH_OLDARGS},
7302
{"lampoff", gl_lampoff, METH_OLDARGS},
7303
{"setbell", gl_setbell, METH_OLDARGS},
7304
{"blankscreen", gl_blankscreen, METH_OLDARGS},
7305
{"depthcue", gl_depthcue, METH_OLDARGS},
7306
{"zbuffer", gl_zbuffer, METH_OLDARGS},
7307
{"backface", gl_backface, METH_OLDARGS},
7308
{"cmov2i", gl_cmov2i, METH_OLDARGS},
7309
{"draw2i", gl_draw2i, METH_OLDARGS},
7310
{"move2i", gl_move2i, METH_OLDARGS},
7311
{"pnt2i", gl_pnt2i, METH_OLDARGS},
7312
{"patchbasis", gl_patchbasis, METH_OLDARGS},
7313
{"patchprecision", gl_patchprecision, METH_OLDARGS},
7314
{"pdr2i", gl_pdr2i, METH_OLDARGS},
7315
{"pmv2i", gl_pmv2i, METH_OLDARGS},
7316
{"rpdr2i", gl_rpdr2i, METH_OLDARGS},
7317
{"rpmv2i", gl_rpmv2i, METH_OLDARGS},
7318
{"xfpt2i", gl_xfpt2i, METH_OLDARGS},
7319
{"objdelete", gl_objdelete, METH_OLDARGS},
7320
{"patchcurves", gl_patchcurves, METH_OLDARGS},
7321
{"minsize", gl_minsize, METH_OLDARGS},
7322
{"maxsize", gl_maxsize, METH_OLDARGS},
7323
{"keepaspect", gl_keepaspect, METH_OLDARGS},
7324
{"prefsize", gl_prefsize, METH_OLDARGS},
7325
{"stepunit", gl_stepunit, METH_OLDARGS},
7326
{"fudge", gl_fudge, METH_OLDARGS},
7327
{"winmove", gl_winmove, METH_OLDARGS},
7328
{"attachcursor", gl_attachcursor, METH_OLDARGS},
7329
{"deflinestyle", gl_deflinestyle, METH_OLDARGS},
7330
{"noise", gl_noise, METH_OLDARGS},
7331
{"picksize", gl_picksize, METH_OLDARGS},
7332
{"qenter", gl_qenter, METH_OLDARGS},
7333
{"setdepth", gl_setdepth, METH_OLDARGS},
7334
{"cmov2s", gl_cmov2s, METH_OLDARGS},
7335
{"draw2s", gl_draw2s, METH_OLDARGS},
7336
{"move2s", gl_move2s, METH_OLDARGS},
7337
{"pdr2s", gl_pdr2s, METH_OLDARGS},
7338
{"pmv2s", gl_pmv2s, METH_OLDARGS},
7339
{"pnt2s", gl_pnt2s, METH_OLDARGS},
7340
{"rdr2s", gl_rdr2s, METH_OLDARGS},
7341
{"rmv2s", gl_rmv2s, METH_OLDARGS},
7342
{"rpdr2s", gl_rpdr2s, METH_OLDARGS},
7343
{"rpmv2s", gl_rpmv2s, METH_OLDARGS},
7344
{"xfpt2s", gl_xfpt2s, METH_OLDARGS},
7345
{"cmov2", gl_cmov2, METH_OLDARGS},
7346
{"draw2", gl_draw2, METH_OLDARGS},
7347
{"move2", gl_move2, METH_OLDARGS},
7348
{"pnt2", gl_pnt2, METH_OLDARGS},
7349
{"pdr2", gl_pdr2, METH_OLDARGS},
7350
{"pmv2", gl_pmv2, METH_OLDARGS},
7351
{"rdr2", gl_rdr2, METH_OLDARGS},
7352
{"rmv2", gl_rmv2, METH_OLDARGS},
7353
{"rpdr2", gl_rpdr2, METH_OLDARGS},
7354
{"rpmv2", gl_rpmv2, METH_OLDARGS},
7355
{"xfpt2", gl_xfpt2, METH_OLDARGS},
7356
{"loadmatrix", gl_loadmatrix, METH_OLDARGS},
7357
{"multmatrix", gl_multmatrix, METH_OLDARGS},
7358
{"crv", gl_crv, METH_OLDARGS},
7359
{"rcrv", gl_rcrv, METH_OLDARGS},
7360
{"addtopup", gl_addtopup, METH_OLDARGS},
7361
{"charstr", gl_charstr, METH_OLDARGS},
7362
{"getport", gl_getport, METH_OLDARGS},
7363
{"strwidth", gl_strwidth, METH_OLDARGS},
7364
{"winopen", gl_winopen, METH_OLDARGS},
7365
{"wintitle", gl_wintitle, METH_OLDARGS},
7366
{"polf", gl_polf, METH_OLDARGS},
7367
{"polf2", gl_polf2, METH_OLDARGS},
7368
{"poly", gl_poly, METH_OLDARGS},
7369
{"poly2", gl_poly2, METH_OLDARGS},
7370
{"crvn", gl_crvn, METH_OLDARGS},
7371
{"rcrvn", gl_rcrvn, METH_OLDARGS},
7372
{"polf2i", gl_polf2i, METH_OLDARGS},
7373
{"polfi", gl_polfi, METH_OLDARGS},
7374
{"poly2i", gl_poly2i, METH_OLDARGS},
7375
{"polyi", gl_polyi, METH_OLDARGS},
7376
{"polf2s", gl_polf2s, METH_OLDARGS},
7377
{"polfs", gl_polfs, METH_OLDARGS},
7378
{"polys", gl_polys, METH_OLDARGS},
7379
{"poly2s", gl_poly2s, METH_OLDARGS},
7380
{"defcursor", gl_defcursor, METH_OLDARGS},
7381
{"writepixels", gl_writepixels, METH_OLDARGS},
7382
{"defbasis", gl_defbasis, METH_OLDARGS},
7383
{"gewrite", gl_gewrite, METH_OLDARGS},
7384
{"rotate", gl_rotate, METH_OLDARGS},
7385
{"rot", gl_rot, METH_OLDARGS},
7386
{"circfi", gl_circfi, METH_OLDARGS},
7387
{"circi", gl_circi, METH_OLDARGS},
7388
{"cmovi", gl_cmovi, METH_OLDARGS},
7389
{"drawi", gl_drawi, METH_OLDARGS},
7390
{"movei", gl_movei, METH_OLDARGS},
7391
{"pnti", gl_pnti, METH_OLDARGS},
7392
{"newtag", gl_newtag, METH_OLDARGS},
7393
{"pdri", gl_pdri, METH_OLDARGS},
7394
{"pmvi", gl_pmvi, METH_OLDARGS},
7395
{"rdri", gl_rdri, METH_OLDARGS},
7396
{"rmvi", gl_rmvi, METH_OLDARGS},
7397
{"rpdri", gl_rpdri, METH_OLDARGS},
7398
{"rpmvi", gl_rpmvi, METH_OLDARGS},
7399
{"xfpti", gl_xfpti, METH_OLDARGS},
7400
{"circ", gl_circ, METH_OLDARGS},
7401
{"circf", gl_circf, METH_OLDARGS},
7402
{"cmov", gl_cmov, METH_OLDARGS},
7403
{"draw", gl_draw, METH_OLDARGS},
7404
{"move", gl_move, METH_OLDARGS},
7405
{"pnt", gl_pnt, METH_OLDARGS},
7406
{"scale", gl_scale, METH_OLDARGS},
7407
{"translate", gl_translate, METH_OLDARGS},
7408
{"pdr", gl_pdr, METH_OLDARGS},
7409
{"pmv", gl_pmv, METH_OLDARGS},
7410
{"rdr", gl_rdr, METH_OLDARGS},
7411
{"rmv", gl_rmv, METH_OLDARGS},
7412
{"rpdr", gl_rpdr, METH_OLDARGS},
7413
{"rpmv", gl_rpmv, METH_OLDARGS},
7414
{"xfpt", gl_xfpt, METH_OLDARGS},
7415
{"RGBcolor", gl_RGBcolor, METH_OLDARGS},
7416
{"RGBwritemask", gl_RGBwritemask, METH_OLDARGS},
7417
{"setcursor", gl_setcursor, METH_OLDARGS},
7418
{"tie", gl_tie, METH_OLDARGS},
7419
{"circfs", gl_circfs, METH_OLDARGS},
7420
{"circs", gl_circs, METH_OLDARGS},
7421
{"cmovs", gl_cmovs, METH_OLDARGS},
7422
{"draws", gl_draws, METH_OLDARGS},
7423
{"moves", gl_moves, METH_OLDARGS},
7424
{"pdrs", gl_pdrs, METH_OLDARGS},
7425
{"pmvs", gl_pmvs, METH_OLDARGS},
7426
{"pnts", gl_pnts, METH_OLDARGS},
7427
{"rdrs", gl_rdrs, METH_OLDARGS},
7428
{"rmvs", gl_rmvs, METH_OLDARGS},
7429
{"rpdrs", gl_rpdrs, METH_OLDARGS},
7430
{"rpmvs", gl_rpmvs, METH_OLDARGS},
7431
{"xfpts", gl_xfpts, METH_OLDARGS},
7432
{"curorigin", gl_curorigin, METH_OLDARGS},
7433
{"cyclemap", gl_cyclemap, METH_OLDARGS},
7434
{"patch", gl_patch, METH_OLDARGS},
7435
{"splf", gl_splf, METH_OLDARGS},
7436
{"splf2", gl_splf2, METH_OLDARGS},
7437
{"splfi", gl_splfi, METH_OLDARGS},
7438
{"splf2i", gl_splf2i, METH_OLDARGS},
7439
{"splfs", gl_splfs, METH_OLDARGS},
7440
{"splf2s", gl_splf2s, METH_OLDARGS},
7441
{"rpatch", gl_rpatch, METH_OLDARGS},
7442
{"ortho2", gl_ortho2, METH_OLDARGS},
7443
{"rect", gl_rect, METH_OLDARGS},
7444
{"rectf", gl_rectf, METH_OLDARGS},
7445
{"xfpt4", gl_xfpt4, METH_OLDARGS},
7446
{"textport", gl_textport, METH_OLDARGS},
7447
{"mapcolor", gl_mapcolor, METH_OLDARGS},
7448
{"scrmask", gl_scrmask, METH_OLDARGS},
7449
{"setvaluator", gl_setvaluator, METH_OLDARGS},
7450
{"viewport", gl_viewport, METH_OLDARGS},
7451
{"shaderange", gl_shaderange, METH_OLDARGS},
7452
{"xfpt4s", gl_xfpt4s, METH_OLDARGS},
7453
{"rectfi", gl_rectfi, METH_OLDARGS},
7454
{"recti", gl_recti, METH_OLDARGS},
7455
{"xfpt4i", gl_xfpt4i, METH_OLDARGS},
7456
{"prefposition", gl_prefposition, METH_OLDARGS},
7457
{"arc", gl_arc, METH_OLDARGS},
7458
{"arcf", gl_arcf, METH_OLDARGS},
7459
{"arcfi", gl_arcfi, METH_OLDARGS},
7460
{"arci", gl_arci, METH_OLDARGS},
7461
{"bbox2", gl_bbox2, METH_OLDARGS},
7462
{"bbox2i", gl_bbox2i, METH_OLDARGS},
7463
{"bbox2s", gl_bbox2s, METH_OLDARGS},
7464
{"blink", gl_blink, METH_OLDARGS},
7465
{"ortho", gl_ortho, METH_OLDARGS},
7466
{"window", gl_window, METH_OLDARGS},
7467
{"lookat", gl_lookat, METH_OLDARGS},
7468
{"perspective", gl_perspective, METH_OLDARGS},
7469
{"polarview", gl_polarview, METH_OLDARGS},
7470
{"arcfs", gl_arcfs, METH_OLDARGS},
7471
{"arcs", gl_arcs, METH_OLDARGS},
7472
{"rectcopy", gl_rectcopy, METH_OLDARGS},
7473
{"RGBcursor", gl_RGBcursor, METH_OLDARGS},
7474
{"getbutton", gl_getbutton, METH_OLDARGS},
7475
{"getcmmode", gl_getcmmode, METH_OLDARGS},
7476
{"getlsbackup", gl_getlsbackup, METH_OLDARGS},
7477
{"getresetls", gl_getresetls, METH_OLDARGS},
7478
{"getdcm", gl_getdcm, METH_OLDARGS},
7479
{"getzbuffer", gl_getzbuffer, METH_OLDARGS},
7480
{"ismex", gl_ismex, METH_OLDARGS},
7481
{"isobj", gl_isobj, METH_OLDARGS},
7482
{"isqueued", gl_isqueued, METH_OLDARGS},
7483
{"istag", gl_istag, METH_OLDARGS},
7484
{"genobj", gl_genobj, METH_OLDARGS},
7485
{"gentag", gl_gentag, METH_OLDARGS},
7486
{"getbuffer", gl_getbuffer, METH_OLDARGS},
7487
{"getcolor", gl_getcolor, METH_OLDARGS},
7488
{"getdisplaymode", gl_getdisplaymode, METH_OLDARGS},
7489
{"getfont", gl_getfont, METH_OLDARGS},
7490
{"getheight", gl_getheight, METH_OLDARGS},
7491
{"gethitcode", gl_gethitcode, METH_OLDARGS},
7492
{"getlstyle", gl_getlstyle, METH_OLDARGS},
7493
{"getlwidth", gl_getlwidth, METH_OLDARGS},
7494
{"getmap", gl_getmap, METH_OLDARGS},
7495
{"getplanes", gl_getplanes, METH_OLDARGS},
7496
{"getwritemask", gl_getwritemask, METH_OLDARGS},
7497
{"qtest", gl_qtest, METH_OLDARGS},
7498
{"getlsrepeat", gl_getlsrepeat, METH_OLDARGS},
7499
{"getmonitor", gl_getmonitor, METH_OLDARGS},
7500
{"getopenobj", gl_getopenobj, METH_OLDARGS},
7501
{"getpattern", gl_getpattern, METH_OLDARGS},
7502
{"winget", gl_winget, METH_OLDARGS},
7503
{"winattach", gl_winattach, METH_OLDARGS},
7504
{"getothermonitor", gl_getothermonitor, METH_OLDARGS},
7505
{"newpup", gl_newpup, METH_OLDARGS},
7506
{"getvaluator", gl_getvaluator, METH_OLDARGS},
7507
{"winset", gl_winset, METH_OLDARGS},
7508
{"dopup", gl_dopup, METH_OLDARGS},
7509
{"getdepth", gl_getdepth, METH_OLDARGS},
7510
{"getcpos", gl_getcpos, METH_OLDARGS},
7511
{"getsize", gl_getsize, METH_OLDARGS},
7512
{"getorigin", gl_getorigin, METH_OLDARGS},
7513
{"getviewport", gl_getviewport, METH_OLDARGS},
7514
{"gettp", gl_gettp, METH_OLDARGS},
7515
{"getgpos", gl_getgpos, METH_OLDARGS},
7516
{"winposition", gl_winposition, METH_OLDARGS},
7517
{"gRGBcolor", gl_gRGBcolor, METH_OLDARGS},
7518
{"gRGBmask", gl_gRGBmask, METH_OLDARGS},
7519
{"getscrmask", gl_getscrmask, METH_OLDARGS},
7520
{"getmcolor", gl_getmcolor, METH_OLDARGS},
7521
{"mapw", gl_mapw, METH_OLDARGS},
7522
{"mapw2", gl_mapw2, METH_OLDARGS},
7523
{"getcursor", gl_getcursor, METH_OLDARGS},
7524
{"cmode", gl_cmode, METH_OLDARGS},
7525
{"concave", gl_concave, METH_OLDARGS},
7526
{"curstype", gl_curstype, METH_OLDARGS},
7527
{"drawmode", gl_drawmode, METH_OLDARGS},
7528
{"gammaramp", gl_gammaramp, METH_OLDARGS},
7529
{"getbackface", gl_getbackface, METH_OLDARGS},
7530
{"getdescender", gl_getdescender, METH_OLDARGS},
7531
{"getdrawmode", gl_getdrawmode, METH_OLDARGS},
7532
{"getmmode", gl_getmmode, METH_OLDARGS},
7533
{"getsm", gl_getsm, METH_OLDARGS},
7534
{"getvideo", gl_getvideo, METH_OLDARGS},
7535
{"imakebackground", gl_imakebackground, METH_OLDARGS},
7536
{"lmbind", gl_lmbind, METH_OLDARGS},
7537
{"lmdef", gl_lmdef, METH_OLDARGS},
7538
{"mmode", gl_mmode, METH_OLDARGS},
7539
{"normal", gl_normal, METH_OLDARGS},
7540
{"overlay", gl_overlay, METH_OLDARGS},
7541
{"RGBrange", gl_RGBrange, METH_OLDARGS},
7542
{"setvideo", gl_setvideo, METH_OLDARGS},
7543
{"shademodel", gl_shademodel, METH_OLDARGS},
7544
{"underlay", gl_underlay, METH_OLDARGS},
7545
{"bgnclosedline", gl_bgnclosedline, METH_OLDARGS},
7546
{"bgnline", gl_bgnline, METH_OLDARGS},
7547
{"bgnpoint", gl_bgnpoint, METH_OLDARGS},
7548
{"bgnpolygon", gl_bgnpolygon, METH_OLDARGS},
7549
{"bgnsurface", gl_bgnsurface, METH_OLDARGS},
7550
{"bgntmesh", gl_bgntmesh, METH_OLDARGS},
7551
{"bgntrim", gl_bgntrim, METH_OLDARGS},
7552
{"endclosedline", gl_endclosedline, METH_OLDARGS},
7553
{"endline", gl_endline, METH_OLDARGS},
7554
{"endpoint", gl_endpoint, METH_OLDARGS},
7555
{"endpolygon", gl_endpolygon, METH_OLDARGS},
7556
{"endsurface", gl_endsurface, METH_OLDARGS},
7557
{"endtmesh", gl_endtmesh, METH_OLDARGS},
7558
{"endtrim", gl_endtrim, METH_OLDARGS},
7559
{"blendfunction", gl_blendfunction, METH_OLDARGS},
7560
{"c3f", gl_c3f, METH_OLDARGS},
7561
{"c3i", gl_c3i, METH_OLDARGS},
7562
{"c3s", gl_c3s, METH_OLDARGS},
7563
{"c4f", gl_c4f, METH_OLDARGS},
7564
{"c4i", gl_c4i, METH_OLDARGS},
7565
{"c4s", gl_c4s, METH_OLDARGS},
7566
{"colorf", gl_colorf, METH_OLDARGS},
7567
{"cpack", gl_cpack, METH_OLDARGS},
7568
{"czclear", gl_czclear, METH_OLDARGS},
7569
{"dglclose", gl_dglclose, METH_OLDARGS},
7570
{"dglopen", gl_dglopen, METH_OLDARGS},
7571
{"getgdesc", gl_getgdesc, METH_OLDARGS},
7572
{"getnurbsproperty", gl_getnurbsproperty, METH_OLDARGS},
7573
{"glcompat", gl_glcompat, METH_OLDARGS},
7574
{"iconsize", gl_iconsize, METH_OLDARGS},
7575
{"icontitle", gl_icontitle, METH_OLDARGS},
7576
{"lRGBrange", gl_lRGBrange, METH_OLDARGS},
7577
{"linesmooth", gl_linesmooth, METH_OLDARGS},
7578
{"lmcolor", gl_lmcolor, METH_OLDARGS},
7579
{"logicop", gl_logicop, METH_OLDARGS},
7580
{"lsetdepth", gl_lsetdepth, METH_OLDARGS},
7581
{"lshaderange", gl_lshaderange, METH_OLDARGS},
7582
{"n3f", gl_n3f, METH_OLDARGS},
7583
{"noborder", gl_noborder, METH_OLDARGS},
7584
{"pntsmooth", gl_pntsmooth, METH_OLDARGS},
7585
{"readsource", gl_readsource, METH_OLDARGS},
7586
{"rectzoom", gl_rectzoom, METH_OLDARGS},
7587
{"sbox", gl_sbox, METH_OLDARGS},
7588
{"sboxi", gl_sboxi, METH_OLDARGS},
7589
{"sboxs", gl_sboxs, METH_OLDARGS},
7590
{"sboxf", gl_sboxf, METH_OLDARGS},
7591
{"sboxfi", gl_sboxfi, METH_OLDARGS},
7592
{"sboxfs", gl_sboxfs, METH_OLDARGS},
7593
{"setnurbsproperty", gl_setnurbsproperty, METH_OLDARGS},
7594
{"setpup", gl_setpup, METH_OLDARGS},
7595
{"smoothline", gl_smoothline, METH_OLDARGS},
7596
{"subpixel", gl_subpixel, METH_OLDARGS},
7597
{"swaptmesh", gl_swaptmesh, METH_OLDARGS},
7598
{"swinopen", gl_swinopen, METH_OLDARGS},
7599
{"v2f", gl_v2f, METH_OLDARGS},
7600
{"v2i", gl_v2i, METH_OLDARGS},
7601
{"v2s", gl_v2s, METH_OLDARGS},
7602
{"v3f", gl_v3f, METH_OLDARGS},
7603
{"v3i", gl_v3i, METH_OLDARGS},
7604
{"v3s", gl_v3s, METH_OLDARGS},
7605
{"v4f", gl_v4f, METH_OLDARGS},
7606
{"v4i", gl_v4i, METH_OLDARGS},
7607
{"v4s", gl_v4s, METH_OLDARGS},
7608
{"videocmd", gl_videocmd, METH_OLDARGS},
7609
{"windepth", gl_windepth, METH_OLDARGS},
7610
{"wmpack", gl_wmpack, METH_OLDARGS},
7611
{"zdraw", gl_zdraw, METH_OLDARGS},
7612
{"zfunction", gl_zfunction, METH_OLDARGS},
7613
{"zsource", gl_zsource, METH_OLDARGS},
7614
{"zwritemask", gl_zwritemask, METH_OLDARGS},
7615
{"v2d", gl_v2d, METH_OLDARGS},
7616
{"v3d", gl_v3d, METH_OLDARGS},
7617
{"v4d", gl_v4d, METH_OLDARGS},
7618
{"pixmode", gl_pixmode, METH_OLDARGS},
7619
{"qgetfd", gl_qgetfd, METH_OLDARGS},
7620
{"dither", gl_dither, METH_OLDARGS},
7621
{NULL, NULL} /* Sentinel */
7628
if (PyErr_WarnPy3k("the gl module has been removed in "
7629
"Python 3.0", 2) < 0)
7632
(void) Py_InitModule("gl", gl_methods);