blob: bed80dc6c1572591db0dc20b01c45ff8f93e72ba [file] [log] [blame]
Roger E. Massefbd1d741996-12-24 19:39:23 +00001/***********************************************************
Guido van Rossumfd71b9e2000-06-30 23:50:40 +00002Copyright (c) 2000, BeOpen.com.
3Copyright (c) 1995-2000, Corporation for National Research Initiatives.
4Copyright (c) 1990-1995, Stichting Mathematisch Centrum.
5All rights reserved.
Roger E. Massefbd1d741996-12-24 19:39:23 +00006
Guido van Rossumfd71b9e2000-06-30 23:50:40 +00007See the file "Misc/COPYRIGHT" for information on usage and
8redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
Roger E. Massefbd1d741996-12-24 19:39:23 +00009******************************************************************/
10
11/*
12Input used to generate the Python module "glmodule.c".
13The stub generator is a Python script called "cgen.py".
14
15Each definition must be contained on one line:
16
17<returntype> <name> <type> <arg> <type> <arg>
18
19<returntype> can be: void, short, long (XXX maybe others?)
20
21<type> can be: char, string, short, float, long, or double
22 string indicates a null terminated string;
23 if <type> is char and <arg> begins with a *, the * is stripped
24 and <type> is changed into string
25
26<arg> has the form <mode> or <mode>[<subscript>]
27 where <mode> can be
28 s: arg is sent
29 r: arg is received (arg is a pointer)
30 and <subscript> can be (N and I are numbers):
31 N
32 argI
33 retval
34 N*argI
35 N*I
36 N*retval
37 In the case where the subscript consists of two parts
38 separated by *, the first part is the width of the matrix, and
39 the second part is the length of the matrix. This order is
40 opposite from the order used in C to declare a two-dimensional
41 matrix.
42*/
43
44/*
45 * An attempt has been made to make this module switch threads on qread
46 * calls. It is far from safe, though.
47 */
48
49#include <gl.h>
50#include <device.h>
51
52#ifdef __sgi
53extern int devport();
54extern int textwritemask();
55extern int pagewritemask();
56extern int gewrite();
57extern int gettp();
58#endif
59
60#include "Python.h"
61#include "cgensupport.h"
62
Roger E. Massefbd1d741996-12-24 19:39:23 +000063/*
64Some stubs are too complicated for the stub generator.
65We can include manually written versions of them here.
66A line starting with '%' gives the name of the function so the stub
67generator can include it in the table of functions.
68*/
69
70
71static PyObject *
72gl_qread(self, args)
73 PyObject *self;
74 PyObject *args;
75{
76 long retval;
77 short arg1 ;
78 Py_BEGIN_ALLOW_THREADS
79 retval = qread( & arg1 );
80 Py_END_ALLOW_THREADS
81 { PyObject *v = PyTuple_New( 2 );
82 if (v == NULL) return NULL;
83 PyTuple_SetItem(v, 0, mknewlongobject(retval));
84 PyTuple_SetItem(v, 1, mknewshortobject(arg1));
85 return v;
86 }
87}
88
89
90/*
91varray -- an array of v.. calls.
92The argument is an array (maybe list or tuple) of points.
93Each point must be a tuple or list of coordinates (x, y, z).
94The points may be 2- or 3-dimensional but must all have the
95same dimension. Float and int values may be mixed however.
96The points are always converted to 3D double precision points
97by assuming z=0.0 if necessary (as indicated in the man page),
98and for each point v3d() is called.
99*/
100
101
102static PyObject *
103gl_varray(self, args)
104 PyObject *self;
105 PyObject *args;
106{
107 PyObject *v, *w=NULL;
108 int i, n, width;
109 double vec[3];
Tim Petersdbd9ba62000-07-09 03:09:57 +0000110 PyObject * (*getitem)(PyObject *, int);
Roger E. Massefbd1d741996-12-24 19:39:23 +0000111
112 if (!PyArg_GetObject(args, 1, 0, &v))
113 return NULL;
114
115 if (PyList_Check(v)) {
116 n = PyList_Size(v);
117 getitem = PyList_GetItem;
118 }
119 else if (PyTuple_Check(v)) {
120 n = PyTuple_Size(v);
121 getitem = PyTuple_GetItem;
122 }
123 else {
124 PyErr_BadArgument();
125 return NULL;
126 }
127
128 if (n == 0) {
129 Py_INCREF(Py_None);
130 return Py_None;
131 }
132 if (n > 0)
133 w = (*getitem)(v, 0);
134
135 width = 0;
136 if (w == NULL) {
137 }
138 else if (PyList_Check(w)) {
139 width = PyList_Size(w);
140 }
141 else if (PyTuple_Check(w)) {
142 width = PyTuple_Size(w);
143 }
144
145 switch (width) {
146 case 2:
147 vec[2] = 0.0;
148 /* Fall through */
149 case 3:
150 break;
151 default:
152 PyErr_BadArgument();
153 return NULL;
154 }
155
156 for (i = 0; i < n; i++) {
157 w = (*getitem)(v, i);
158 if (!PyArg_GetDoubleArray(w, 1, 0, width, vec))
159 return NULL;
160 v3d(vec);
161 }
162
163 Py_INCREF(Py_None);
164 return Py_None;
165}
166
167/*
168vnarray, nvarray -- an array of n3f and v3f calls.
169The argument is an array (list or tuple) of pairs of points and normals.
170Each pair is a tuple (NOT a list) of a point and a normal for that point.
171Each point or normal must be a tuple (NOT a list) of coordinates (x, y, z).
172Three coordinates must be given. Float and int values may be mixed.
173For each pair, n3f() is called for the normal, and then v3f() is called
174for the vector.
175
176vnarray and nvarray differ only in the order of the vector and normal in
177the pair: vnarray expects (v, n) while nvarray expects (n, v).
178*/
179
180static PyObject *gen_nvarray(); /* Forward */
181
182
183static PyObject *
184gl_nvarray(self, args)
185 PyObject *self;
186 PyObject *args;
187{
188 return gen_nvarray(args, 0);
189}
190
191
192static PyObject *
193gl_vnarray(self, args)
194 PyObject *self;
195 PyObject *args;
196{
197 return gen_nvarray(args, 1);
198}
199
200/* Generic, internal version of {nv,nv}array: inorm indicates the
201 argument order, 0: normal first, 1: vector first. */
202
203static PyObject *
204gen_nvarray(args, inorm)
205 PyObject *args;
206 int inorm;
207{
208 PyObject *v, *w, *wnorm, *wvec;
209 int i, n;
210 float norm[3], vec[3];
Tim Petersdbd9ba62000-07-09 03:09:57 +0000211 PyObject * (*getitem)(PyObject *, int);
Roger E. Massefbd1d741996-12-24 19:39:23 +0000212
213 if (!PyArg_GetObject(args, 1, 0, &v))
214 return NULL;
215
216 if (PyList_Check(v)) {
217 n = PyList_Size(v);
218 getitem = PyList_GetItem;
219 }
220 else if (PyTuple_Check(v)) {
221 n = PyTuple_Size(v);
222 getitem = PyTuple_GetItem;
223 }
224 else {
225 PyErr_BadArgument();
226 return NULL;
227 }
228
229 for (i = 0; i < n; i++) {
230 w = (*getitem)(v, i);
231 if (!PyTuple_Check(w) || PyTuple_Size(w) != 2) {
232 PyErr_BadArgument();
233 return NULL;
234 }
235 wnorm = PyTuple_GetItem(w, inorm);
236 wvec = PyTuple_GetItem(w, 1 - inorm);
237 if (!PyArg_GetFloatArray(wnorm, 1, 0, 3, norm) ||
238 !PyArg_GetFloatArray(wvec, 1, 0, 3, vec))
239 return NULL;
240 n3f(norm);
241 v3f(vec);
242 }
243
244 Py_INCREF(Py_None);
245 return Py_None;
246}
247
248/* nurbssurface(s_knots[], t_knots[], ctl[][], s_order, t_order, type).
249 The dimensions of ctl[] are computed as follows:
250 [len(s_knots) - s_order], [len(t_knots) - t_order]
251*/
252
253
254static PyObject *
255gl_nurbssurface(self, args)
256 PyObject *self;
257 PyObject *args;
258{
259 long arg1 ;
260 double * arg2 ;
261 long arg3 ;
262 double * arg4 ;
263 double *arg5 ;
264 long arg6 ;
265 long arg7 ;
266 long arg8 ;
267 long ncoords;
268 long s_byte_stride, t_byte_stride;
269 long s_nctl, t_nctl;
270 long s, t;
271 PyObject *v, *w, *pt;
272 double *pnext;
273 if (!PyArg_GetLongArraySize(args, 6, 0, &arg1))
274 return NULL;
275 if ((arg2 = PyMem_NEW(double, arg1 )) == NULL) {
276 return PyErr_NoMemory();
277 }
278 if (!PyArg_GetDoubleArray(args, 6, 0, arg1 , arg2))
279 return NULL;
280 if (!PyArg_GetLongArraySize(args, 6, 1, &arg3))
281 return NULL;
282 if ((arg4 = PyMem_NEW(double, arg3 )) == NULL) {
283 return PyErr_NoMemory();
284 }
285 if (!PyArg_GetDoubleArray(args, 6, 1, arg3 , arg4))
286 return NULL;
287 if (!PyArg_GetLong(args, 6, 3, &arg6))
288 return NULL;
289 if (!PyArg_GetLong(args, 6, 4, &arg7))
290 return NULL;
291 if (!PyArg_GetLong(args, 6, 5, &arg8))
292 return NULL;
293 if (arg8 == N_XYZ)
294 ncoords = 3;
295 else if (arg8 == N_XYZW)
296 ncoords = 4;
297 else {
298 PyErr_BadArgument();
299 return NULL;
300 }
301 s_nctl = arg1 - arg6;
302 t_nctl = arg3 - arg7;
303 if (!PyArg_GetObject(args, 6, 2, &v))
304 return NULL;
305 if (!PyList_Check(v) || PyList_Size(v) != s_nctl) {
306 PyErr_BadArgument();
307 return NULL;
308 }
309 if ((arg5 = PyMem_NEW(double, s_nctl*t_nctl*ncoords )) == NULL) {
310 return PyErr_NoMemory();
311 }
312 pnext = arg5;
313 for (s = 0; s < s_nctl; s++) {
314 w = PyList_GetItem(v, s);
315 if (w == NULL || !PyList_Check(w) ||
316 PyList_Size(w) != t_nctl) {
317 PyErr_BadArgument();
318 return NULL;
319 }
320 for (t = 0; t < t_nctl; t++) {
321 pt = PyList_GetItem(w, t);
322 if (!PyArg_GetDoubleArray(pt, 1, 0, ncoords, pnext))
323 return NULL;
324 pnext += ncoords;
325 }
326 }
327 s_byte_stride = sizeof(double) * ncoords;
328 t_byte_stride = s_byte_stride * s_nctl;
329 nurbssurface( arg1 , arg2 , arg3 , arg4 ,
330 s_byte_stride , t_byte_stride , arg5 , arg6 , arg7 , arg8 );
331 PyMem_DEL(arg2);
332 PyMem_DEL(arg4);
333 PyMem_DEL(arg5);
334 Py_INCREF(Py_None);
335 return Py_None;
336}
337
338/* nurbscurve(knots, ctlpoints, order, type).
339 The length of ctlpoints is len(knots)-order. */
340
341
342static PyObject *
343gl_nurbscurve(self, args)
344 PyObject *self;
345 PyObject *args;
346{
347 long arg1 ;
348 double * arg2 ;
349 long arg3 ;
350 double * arg4 ;
351 long arg5 ;
352 long arg6 ;
353 int ncoords, npoints;
354 int i;
355 PyObject *v;
356 double *pnext;
357 if (!PyArg_GetLongArraySize(args, 4, 0, &arg1))
358 return NULL;
359 if ((arg2 = PyMem_NEW(double, arg1 )) == NULL) {
360 return PyErr_NoMemory();
361 }
362 if (!PyArg_GetDoubleArray(args, 4, 0, arg1 , arg2))
363 return NULL;
364 if (!PyArg_GetLong(args, 4, 2, &arg5))
365 return NULL;
366 if (!PyArg_GetLong(args, 4, 3, &arg6))
367 return NULL;
368 if (arg6 == N_ST)
369 ncoords = 2;
370 else if (arg6 == N_STW)
371 ncoords = 3;
372 else {
373 PyErr_BadArgument();
374 return NULL;
375 }
376 npoints = arg1 - arg5;
377 if (!PyArg_GetObject(args, 4, 1, &v))
378 return NULL;
379 if (!PyList_Check(v) || PyList_Size(v) != npoints) {
380 PyErr_BadArgument();
381 return NULL;
382 }
383 if ((arg4 = PyMem_NEW(double, npoints*ncoords )) == NULL) {
384 return PyErr_NoMemory();
385 }
386 pnext = arg4;
387 for (i = 0; i < npoints; i++) {
Guido van Rossumdfed9201997-04-29 15:46:43 +0000388 if (!PyArg_GetDoubleArray(PyList_GetItem(v, i), 1, 0, ncoords, pnext))
Roger E. Massefbd1d741996-12-24 19:39:23 +0000389 return NULL;
390 pnext += ncoords;
391 }
392 arg3 = (sizeof(double)) * ncoords;
393 nurbscurve( arg1 , arg2 , arg3 , arg4 , arg5 , arg6 );
394 PyMem_DEL(arg2);
395 PyMem_DEL(arg4);
396 Py_INCREF(Py_None);
397 return Py_None;
398}
399
400/* pwlcurve(points, type).
401 Points is a list of points. Type must be N_ST. */
402
403
404static PyObject *
405gl_pwlcurve(self, args)
406 PyObject *self;
407 PyObject *args;
408{
409 PyObject *v;
410 long type;
411 double *data, *pnext;
412 long npoints, ncoords;
413 int i;
414 if (!PyArg_GetObject(args, 2, 0, &v))
415 return NULL;
416 if (!PyArg_GetLong(args, 2, 1, &type))
417 return NULL;
418 if (!PyList_Check(v)) {
419 PyErr_BadArgument();
420 return NULL;
421 }
422 npoints = PyList_Size(v);
423 if (type == N_ST)
424 ncoords = 2;
425 else {
426 PyErr_BadArgument();
427 return NULL;
428 }
429 if ((data = PyMem_NEW(double, npoints*ncoords)) == NULL) {
430 return PyErr_NoMemory();
431 }
432 pnext = data;
433 for (i = 0; i < npoints; i++) {
Guido van Rossumdfed9201997-04-29 15:46:43 +0000434 if (!PyArg_GetDoubleArray(PyList_GetItem(v, i), 1, 0, ncoords, pnext))
Roger E. Massefbd1d741996-12-24 19:39:23 +0000435 return NULL;
436 pnext += ncoords;
437 }
438 pwlcurve(npoints, data, sizeof(double)*ncoords, type);
439 PyMem_DEL(data);
440 Py_INCREF(Py_None);
441 return Py_None;
442}
443
444
445/* Picking and Selecting */
446
447static short *pickbuffer = NULL;
448static long pickbuffersize;
449
450static PyObject *
451pick_select(args, func)
452 PyObject *args;
453 void (*func)();
454{
455 if (!PyArg_GetLong(args, 1, 0, &pickbuffersize))
456 return NULL;
457 if (pickbuffer != NULL) {
458 PyErr_SetString(PyExc_RuntimeError,
459 "pick/gselect: already picking/selecting");
460 return NULL;
461 }
462 if ((pickbuffer = PyMem_NEW(short, pickbuffersize)) == NULL) {
463 return PyErr_NoMemory();
464 }
465 (*func)(pickbuffer, pickbuffersize);
466 Py_INCREF(Py_None);
467 return Py_None;
468}
469
470static PyObject *
471endpick_select(args, func)
472 PyObject *args;
473 long (*func)();
474{
475 PyObject *v, *w;
476 int i, nhits, n;
477 if (!PyArg_NoArgs(args))
478 return NULL;
479 if (pickbuffer == NULL) {
480 PyErr_SetString(PyExc_RuntimeError,
481 "endpick/endselect: not in pick/select mode");
482 return NULL;
483 }
484 nhits = (*func)(pickbuffer);
485 if (nhits < 0) {
486 nhits = -nhits; /* How to report buffer overflow otherwise? */
487 }
488 /* Scan the buffer to see how many integers */
489 n = 0;
490 for (; nhits > 0; nhits--) {
491 n += 1 + pickbuffer[n];
492 }
493 v = PyList_New(n);
494 if (v == NULL)
495 return NULL;
496 /* XXX Could do it nicer and interpret the data structure here,
497 returning a list of lists. But this can be done in Python... */
498 for (i = 0; i < n; i++) {
499 w = PyInt_FromLong((long)pickbuffer[i]);
500 if (w == NULL) {
501 Py_DECREF(v);
502 return NULL;
503 }
504 PyList_SetItem(v, i, w);
505 }
506 PyMem_DEL(pickbuffer);
507 pickbuffer = NULL;
508 return v;
509}
510
511extern void pick(), gselect();
512extern long endpick(), endselect();
513
514static PyObject *gl_pick(self, args) PyObject *self, *args; {
515 return pick_select(args, pick);
516}
517
518static PyObject *gl_endpick(self, args) PyObject *self, *args; {
519 return endpick_select(args, endpick);
520}
521
522static PyObject *gl_gselect(self, args) PyObject *self, *args; {
523 return pick_select(args, gselect);
524}
525
526static PyObject *gl_endselect(self, args) PyObject *self, *args; {
527 return endpick_select(args, endselect);
528}
529
530
531/* XXX The generator botches this one. Here's a quick hack to fix it. */
532
533/* XXX The generator botches this one. Here's a quick hack to fix it. */
534
535
536static PyObject *
537gl_getmatrix(self, args)
538 PyObject *self;
539 PyObject *args;
540{
541 Matrix arg1;
542 PyObject *v, *w;
543 int i, j;
544 getmatrix( arg1 );
545 v = PyList_New(16);
546 if (v == NULL) {
547 return PyErr_NoMemory();
548 }
549 for (i = 0; i < 4; i++) for (j = 0; j < 4; j++) {
550 w = mknewfloatobject(arg1[i][j]);
551 if (w == NULL) {
552 Py_DECREF(v);
553 return NULL;
554 }
555 PyList_SetItem(v, i*4+j, w);
556 }
557 return v;
558}
559
560/* Here's an alternate version that returns a 4x4 matrix instead of
561 a vector. Unfortunately it is incompatible with loadmatrix and
562 multmatrix... */
563
564
565static PyObject *
566gl_altgetmatrix(self, args)
567 PyObject *self;
568 PyObject *args;
569{
570 Matrix arg1;
571 PyObject *v, *w;
572 int i, j;
573 getmatrix( arg1 );
574 v = PyList_New(4);
575 if (v == NULL) {
576 return NULL;
577 }
578 for (i = 0; i < 4; i++) {
579 w = PyList_New(4);
580 if (w == NULL) {
581 Py_DECREF(v);
582 return NULL;
583 }
584 PyList_SetItem(v, i, w);
585 }
586 for (i = 0; i < 4; i++) {
587 for (j = 0; j < 4; j++) {
588 w = mknewfloatobject(arg1[i][j]);
589 if (w == NULL) {
590 Py_DECREF(v);
591 return NULL;
592 }
593 PyList_SetItem(PyList_GetItem(v, i), j, w);
594 }
595 }
596 return v;
597}
598
599
600static PyObject *
601gl_lrectwrite(self, args)
602 PyObject *self;
603 PyObject *args;
604{
605 short x1 ;
606 short y1 ;
607 short x2 ;
608 short y2 ;
609 string parray ;
610 PyObject *s;
611#if 0
612 int pixcount;
613#endif
614 if (!PyArg_GetShort(args, 5, 0, &x1))
615 return NULL;
616 if (!PyArg_GetShort(args, 5, 1, &y1))
617 return NULL;
618 if (!PyArg_GetShort(args, 5, 2, &x2))
619 return NULL;
620 if (!PyArg_GetShort(args, 5, 3, &y2))
621 return NULL;
622 if (!PyArg_GetString(args, 5, 4, &parray))
623 return NULL;
624 if (!PyArg_GetObject(args, 5, 4, &s))
625 return NULL;
626#if 0
627/* Don't check this, it breaks experiments with pixmode(PM_SIZE, ...) */
628 pixcount = (long)(x2+1-x1) * (long)(y2+1-y1);
629 if (!PyString_Check(s) || PyString_Size(s) != pixcount*sizeof(long)) {
630 PyErr_SetString(PyExc_RuntimeError,
631 "string arg to lrectwrite has wrong size");
632 return NULL;
633 }
634#endif
635 lrectwrite( x1 , y1 , x2 , y2 , (unsigned long *) parray );
636 Py_INCREF(Py_None);
637 return Py_None;
638}
639
640
641static PyObject *
642gl_lrectread(self, args)
643 PyObject *self;
644 PyObject *args;
645{
646 short x1 ;
647 short y1 ;
648 short x2 ;
649 short y2 ;
650 PyObject *parray;
651 int pixcount;
652 if (!PyArg_GetShort(args, 4, 0, &x1))
653 return NULL;
654 if (!PyArg_GetShort(args, 4, 1, &y1))
655 return NULL;
656 if (!PyArg_GetShort(args, 4, 2, &x2))
657 return NULL;
658 if (!PyArg_GetShort(args, 4, 3, &y2))
659 return NULL;
660 pixcount = (long)(x2+1-x1) * (long)(y2+1-y1);
Guido van Rossumdfed9201997-04-29 15:46:43 +0000661 parray = PyString_FromStringAndSize((char *)NULL, pixcount*sizeof(long));
Roger E. Massefbd1d741996-12-24 19:39:23 +0000662 if (parray == NULL)
663 return NULL; /* No memory */
664 lrectread(x1, y1, x2, y2, (unsigned long *) PyString_AsString(parray));
665 return parray;
666}
667
668
669static PyObject *
670gl_readdisplay(self, args)
671 PyObject *self;
672 PyObject *args;
673{
674 short x1, y1, x2, y2;
675 unsigned long *parray, hints;
676 long size, size_ret;
677 PyObject *rv;
678
679 if ( !PyArg_Parse(args, "hhhhl", &x1, &y1, &x2, &y2, &hints) )
680 return 0;
681 size = (long)(x2+1-x1) * (long)(y2+1-y1);
682 rv = PyString_FromStringAndSize((char *)NULL, size*sizeof(long));
683 if ( rv == NULL )
684 return NULL;
685 parray = (unsigned long *)PyString_AsString(rv);
686 size_ret = readdisplay(x1, y1, x2, y2, parray, hints);
687 if ( size_ret != size ) {
688 printf("gl_readdisplay: got %ld pixels, expected %ld\n",
689 size_ret, size);
Guido van Rossumdfed9201997-04-29 15:46:43 +0000690 PyErr_SetString(PyExc_RuntimeError, "readdisplay returned unexpected length");
Roger E. Massefbd1d741996-12-24 19:39:23 +0000691 return NULL;
692 }
693 return rv;
694}
695
696/* Desperately needed, here are tools to compress and decompress
697 the data manipulated by lrectread/lrectwrite.
698
699 gl.packrect(width, height, packfactor, bigdata) --> smalldata
700 makes 'bigdata' 4*(packfactor**2) times smaller by:
701 - turning it into B/W (a factor 4)
702 - replacing squares of size pacfactor by one
703 representative
704
705 gl.unpackrect(width, height, packfactor, smalldata) --> bigdata
706 is the inverse; the numeric arguments must be *the same*.
707
708 Both work best if width and height are multiples of packfactor
709 (in fact unpackrect will leave garbage bytes).
710*/
711
712
713static PyObject *
714gl_packrect(self, args)
715 PyObject *self;
716 PyObject *args;
717{
718 long width, height, packfactor;
719 char *s;
720 PyObject *unpacked, *packed;
721 int pixcount, packedcount, x, y, r, g, b;
722 unsigned long pixel;
723 unsigned char *p;
724 unsigned long *parray;
725 if (!PyArg_GetLong(args, 4, 0, &width))
726 return NULL;
727 if (!PyArg_GetLong(args, 4, 1, &height))
728 return NULL;
729 if (!PyArg_GetLong(args, 4, 2, &packfactor))
730 return NULL;
731 if (!PyArg_GetString(args, 4, 3, &s)) /* For type checking only */
732 return NULL;
733 if (!PyArg_GetObject(args, 4, 3, &unpacked))
734 return NULL;
735 if (width <= 0 || height <= 0 || packfactor <= 0) {
Guido van Rossumdfed9201997-04-29 15:46:43 +0000736 PyErr_SetString(PyExc_RuntimeError, "packrect args must be > 0");
Roger E. Massefbd1d741996-12-24 19:39:23 +0000737 return NULL;
738 }
739 pixcount = width*height;
740 packedcount = ((width+packfactor-1)/packfactor) *
741 ((height+packfactor-1)/packfactor);
742 if (PyString_Size(unpacked) != pixcount*sizeof(long)) {
743 PyErr_SetString(PyExc_RuntimeError,
744 "string arg to packrect has wrong size");
745 return NULL;
746 }
747 packed = PyString_FromStringAndSize((char *)NULL, packedcount);
748 if (packed == NULL)
749 return NULL;
750 parray = (unsigned long *) PyString_AsString(unpacked);
751 p = (unsigned char *) PyString_AsString(packed);
752 for (y = 0; y < height; y += packfactor, parray += packfactor*width) {
753 for (x = 0; x < width; x += packfactor) {
754 pixel = parray[x];
755 r = pixel & 0xff;
756 g = (pixel >> 8) & 0xff;
757 b = (pixel >> 16) & 0xff;
758 *p++ = (30*r+59*g+11*b) / 100;
759 }
760 }
761 return packed;
762}
763
764
765static unsigned long unpacktab[256];
766static int unpacktab_inited = 0;
767
768static PyObject *
769gl_unpackrect(self, args)
770 PyObject *self;
771 PyObject *args;
772{
773 long width, height, packfactor;
774 char *s;
775 PyObject *unpacked, *packed;
776 int pixcount, packedcount;
777 register unsigned char *p;
778 register unsigned long *parray;
779 if (!unpacktab_inited) {
780 register int white;
781 for (white = 256; --white >= 0; )
782 unpacktab[white] = white * 0x010101L;
783 unpacktab_inited++;
784 }
785 if (!PyArg_GetLong(args, 4, 0, &width))
786 return NULL;
787 if (!PyArg_GetLong(args, 4, 1, &height))
788 return NULL;
789 if (!PyArg_GetLong(args, 4, 2, &packfactor))
790 return NULL;
791 if (!PyArg_GetString(args, 4, 3, &s)) /* For type checking only */
792 return NULL;
793 if (!PyArg_GetObject(args, 4, 3, &packed))
794 return NULL;
795 if (width <= 0 || height <= 0 || packfactor <= 0) {
Guido van Rossumdfed9201997-04-29 15:46:43 +0000796 PyErr_SetString(PyExc_RuntimeError, "packrect args must be > 0");
Roger E. Massefbd1d741996-12-24 19:39:23 +0000797 return NULL;
798 }
799 pixcount = width*height;
800 packedcount = ((width+packfactor-1)/packfactor) *
801 ((height+packfactor-1)/packfactor);
802 if (PyString_Size(packed) != packedcount) {
803 PyErr_SetString(PyExc_RuntimeError,
804 "string arg to unpackrect has wrong size");
805 return NULL;
806 }
Guido van Rossumdfed9201997-04-29 15:46:43 +0000807 unpacked = PyString_FromStringAndSize((char *)NULL, pixcount*sizeof(long));
Roger E. Massefbd1d741996-12-24 19:39:23 +0000808 if (unpacked == NULL)
809 return NULL;
810 parray = (unsigned long *) PyString_AsString(unpacked);
811 p = (unsigned char *) PyString_AsString(packed);
812 if (packfactor == 1 && width*height > 0) {
813 /* Just expand bytes to longs */
814 register int x = width * height;
815 do {
816 *parray++ = unpacktab[*p++];
817 } while (--x >= 0);
818 }
819 else {
820 register int y;
821 for (y = 0; y < height-packfactor+1;
822 y += packfactor, parray += packfactor*width) {
823 register int x;
824 for (x = 0; x < width-packfactor+1; x += packfactor) {
825 register unsigned long pixel = unpacktab[*p++];
826 register int i;
827 for (i = packfactor*width; (i-=width) >= 0;) {
828 register int j;
829 for (j = packfactor; --j >= 0; )
830 parray[i+x+j] = pixel;
831 }
832 }
833 }
834 }
835 return unpacked;
836}
837
838static PyObject *
839gl_gversion(self, args)
840 PyObject *self;
841 PyObject *args;
842{
843 char buf[20];
844 gversion(buf);
845 return PyString_FromString(buf);
846}
847
848
Guido van Rossum89733a81998-10-21 16:10:40 +0000849/* void clear - Manual because of clash with termcap */
850static PyObject *
851gl_clear(self, args)
852 PyObject *self;
853 PyObject *args;
854{
855 __GLclear( );
856 Py_INCREF(Py_None);
857 return Py_None;
858}
859
Roger E. Massefbd1d741996-12-24 19:39:23 +0000860/* End of manually written stubs */
861
862
863/* long getshade */
864
865static PyObject *
866gl_getshade(self, args)
867 PyObject *self;
868 PyObject *args;
869{
870 long retval;
871 retval = getshade( );
872 return mknewlongobject(retval);
873}
874
875/* void devport short s long s */
876
877static PyObject *
878gl_devport(self, args)
879 PyObject *self;
880 PyObject *args;
881{
882 short arg1 ;
883 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +0000884 if (!getishortarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +0000885 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +0000886 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +0000887 return NULL;
888 devport( arg1 , arg2 );
889 Py_INCREF(Py_None);
890 return Py_None;
891}
892
893/* void rdr2i long s long s */
894
895static PyObject *
896gl_rdr2i(self, args)
897 PyObject *self;
898 PyObject *args;
899{
900 long arg1 ;
901 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +0000902 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +0000903 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +0000904 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +0000905 return NULL;
906 rdr2i( arg1 , arg2 );
907 Py_INCREF(Py_None);
908 return Py_None;
909}
910
911/* void rectfs short s short s short s short s */
912
913static PyObject *
914gl_rectfs(self, args)
915 PyObject *self;
916 PyObject *args;
917{
918 short arg1 ;
919 short arg2 ;
920 short arg3 ;
921 short arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +0000922 if (!getishortarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +0000923 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +0000924 if (!getishortarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +0000925 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +0000926 if (!getishortarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +0000927 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +0000928 if (!getishortarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +0000929 return NULL;
930 rectfs( arg1 , arg2 , arg3 , arg4 );
931 Py_INCREF(Py_None);
932 return Py_None;
933}
934
935/* void rects short s short s short s short s */
936
937static PyObject *
938gl_rects(self, args)
939 PyObject *self;
940 PyObject *args;
941{
942 short arg1 ;
943 short arg2 ;
944 short arg3 ;
945 short arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +0000946 if (!getishortarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +0000947 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +0000948 if (!getishortarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +0000949 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +0000950 if (!getishortarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +0000951 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +0000952 if (!getishortarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +0000953 return NULL;
954 rects( arg1 , arg2 , arg3 , arg4 );
955 Py_INCREF(Py_None);
956 return Py_None;
957}
958
959/* void rmv2i long s long s */
960
961static PyObject *
962gl_rmv2i(self, args)
963 PyObject *self;
964 PyObject *args;
965{
966 long arg1 ;
967 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +0000968 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +0000969 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +0000970 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +0000971 return NULL;
972 rmv2i( arg1 , arg2 );
973 Py_INCREF(Py_None);
974 return Py_None;
975}
976
977/* void noport */
978
979static PyObject *
980gl_noport(self, args)
981 PyObject *self;
982 PyObject *args;
983{
984 noport( );
985 Py_INCREF(Py_None);
986 return Py_None;
987}
988
989/* void popviewport */
990
991static PyObject *
992gl_popviewport(self, args)
993 PyObject *self;
994 PyObject *args;
995{
996 popviewport( );
997 Py_INCREF(Py_None);
998 return Py_None;
999}
1000
Roger E. Massefbd1d741996-12-24 19:39:23 +00001001/* void clearhitcode */
1002
1003static PyObject *
1004gl_clearhitcode(self, args)
1005 PyObject *self;
1006 PyObject *args;
1007{
1008 clearhitcode( );
1009 Py_INCREF(Py_None);
1010 return Py_None;
1011}
1012
1013/* void closeobj */
1014
1015static PyObject *
1016gl_closeobj(self, args)
1017 PyObject *self;
1018 PyObject *args;
1019{
1020 closeobj( );
1021 Py_INCREF(Py_None);
1022 return Py_None;
1023}
1024
1025/* void cursoff */
1026
1027static PyObject *
1028gl_cursoff(self, args)
1029 PyObject *self;
1030 PyObject *args;
1031{
1032 cursoff( );
1033 Py_INCREF(Py_None);
1034 return Py_None;
1035}
1036
1037/* void curson */
1038
1039static PyObject *
1040gl_curson(self, args)
1041 PyObject *self;
1042 PyObject *args;
1043{
1044 curson( );
1045 Py_INCREF(Py_None);
1046 return Py_None;
1047}
1048
1049/* void doublebuffer */
1050
1051static PyObject *
1052gl_doublebuffer(self, args)
1053 PyObject *self;
1054 PyObject *args;
1055{
1056 doublebuffer( );
1057 Py_INCREF(Py_None);
1058 return Py_None;
1059}
1060
1061/* void finish */
1062
1063static PyObject *
1064gl_finish(self, args)
1065 PyObject *self;
1066 PyObject *args;
1067{
1068 finish( );
1069 Py_INCREF(Py_None);
1070 return Py_None;
1071}
1072
1073/* void gconfig */
1074
1075static PyObject *
1076gl_gconfig(self, args)
1077 PyObject *self;
1078 PyObject *args;
1079{
1080 gconfig( );
1081 Py_INCREF(Py_None);
1082 return Py_None;
1083}
1084
1085/* void ginit */
1086
1087static PyObject *
1088gl_ginit(self, args)
1089 PyObject *self;
1090 PyObject *args;
1091{
1092 ginit( );
1093 Py_INCREF(Py_None);
1094 return Py_None;
1095}
1096
1097/* void greset */
1098
1099static PyObject *
1100gl_greset(self, args)
1101 PyObject *self;
1102 PyObject *args;
1103{
1104 greset( );
1105 Py_INCREF(Py_None);
1106 return Py_None;
1107}
1108
1109/* void multimap */
1110
1111static PyObject *
1112gl_multimap(self, args)
1113 PyObject *self;
1114 PyObject *args;
1115{
1116 multimap( );
1117 Py_INCREF(Py_None);
1118 return Py_None;
1119}
1120
1121/* void onemap */
1122
1123static PyObject *
1124gl_onemap(self, args)
1125 PyObject *self;
1126 PyObject *args;
1127{
1128 onemap( );
1129 Py_INCREF(Py_None);
1130 return Py_None;
1131}
1132
1133/* void popattributes */
1134
1135static PyObject *
1136gl_popattributes(self, args)
1137 PyObject *self;
1138 PyObject *args;
1139{
1140 popattributes( );
1141 Py_INCREF(Py_None);
1142 return Py_None;
1143}
1144
1145/* void popmatrix */
1146
1147static PyObject *
1148gl_popmatrix(self, args)
1149 PyObject *self;
1150 PyObject *args;
1151{
1152 popmatrix( );
1153 Py_INCREF(Py_None);
1154 return Py_None;
1155}
1156
1157/* void pushattributes */
1158
1159static PyObject *
1160gl_pushattributes(self, args)
1161 PyObject *self;
1162 PyObject *args;
1163{
1164 pushattributes( );
1165 Py_INCREF(Py_None);
1166 return Py_None;
1167}
1168
1169/* void pushmatrix */
1170
1171static PyObject *
1172gl_pushmatrix(self, args)
1173 PyObject *self;
1174 PyObject *args;
1175{
1176 pushmatrix( );
1177 Py_INCREF(Py_None);
1178 return Py_None;
1179}
1180
1181/* void pushviewport */
1182
1183static PyObject *
1184gl_pushviewport(self, args)
1185 PyObject *self;
1186 PyObject *args;
1187{
1188 pushviewport( );
1189 Py_INCREF(Py_None);
1190 return Py_None;
1191}
1192
1193/* void qreset */
1194
1195static PyObject *
1196gl_qreset(self, args)
1197 PyObject *self;
1198 PyObject *args;
1199{
1200 qreset( );
1201 Py_INCREF(Py_None);
1202 return Py_None;
1203}
1204
1205/* void RGBmode */
1206
1207static PyObject *
1208gl_RGBmode(self, args)
1209 PyObject *self;
1210 PyObject *args;
1211{
1212 RGBmode( );
1213 Py_INCREF(Py_None);
1214 return Py_None;
1215}
1216
1217/* void singlebuffer */
1218
1219static PyObject *
1220gl_singlebuffer(self, args)
1221 PyObject *self;
1222 PyObject *args;
1223{
1224 singlebuffer( );
1225 Py_INCREF(Py_None);
1226 return Py_None;
1227}
1228
1229/* void swapbuffers */
1230
1231static PyObject *
1232gl_swapbuffers(self, args)
1233 PyObject *self;
1234 PyObject *args;
1235{
1236 swapbuffers( );
1237 Py_INCREF(Py_None);
1238 return Py_None;
1239}
1240
1241/* void gsync */
1242
1243static PyObject *
1244gl_gsync(self, args)
1245 PyObject *self;
1246 PyObject *args;
1247{
1248 gsync( );
1249 Py_INCREF(Py_None);
1250 return Py_None;
1251}
1252
1253/* void gflush */
1254
1255static PyObject *
1256gl_gflush(self, args)
1257 PyObject *self;
1258 PyObject *args;
1259{
1260 gflush( );
1261 Py_INCREF(Py_None);
1262 return Py_None;
1263}
1264
1265/* void tpon */
1266
1267static PyObject *
1268gl_tpon(self, args)
1269 PyObject *self;
1270 PyObject *args;
1271{
1272 tpon( );
1273 Py_INCREF(Py_None);
1274 return Py_None;
1275}
1276
1277/* void tpoff */
1278
1279static PyObject *
1280gl_tpoff(self, args)
1281 PyObject *self;
1282 PyObject *args;
1283{
1284 tpoff( );
1285 Py_INCREF(Py_None);
1286 return Py_None;
1287}
1288
1289/* void clkon */
1290
1291static PyObject *
1292gl_clkon(self, args)
1293 PyObject *self;
1294 PyObject *args;
1295{
1296 clkon( );
1297 Py_INCREF(Py_None);
1298 return Py_None;
1299}
1300
1301/* void clkoff */
1302
1303static PyObject *
1304gl_clkoff(self, args)
1305 PyObject *self;
1306 PyObject *args;
1307{
1308 clkoff( );
1309 Py_INCREF(Py_None);
1310 return Py_None;
1311}
1312
1313/* void ringbell */
1314
1315static PyObject *
1316gl_ringbell(self, args)
1317 PyObject *self;
1318 PyObject *args;
1319{
1320 ringbell( );
1321 Py_INCREF(Py_None);
1322 return Py_None;
1323}
1324
1325/* void gbegin */
1326
1327static PyObject *
1328gl_gbegin(self, args)
1329 PyObject *self;
1330 PyObject *args;
1331{
1332 gbegin( );
1333 Py_INCREF(Py_None);
1334 return Py_None;
1335}
1336
1337/* void textinit */
1338
1339static PyObject *
1340gl_textinit(self, args)
1341 PyObject *self;
1342 PyObject *args;
1343{
1344 textinit( );
1345 Py_INCREF(Py_None);
1346 return Py_None;
1347}
1348
1349/* void initnames */
1350
1351static PyObject *
1352gl_initnames(self, args)
1353 PyObject *self;
1354 PyObject *args;
1355{
1356 initnames( );
1357 Py_INCREF(Py_None);
1358 return Py_None;
1359}
1360
1361/* void pclos */
1362
1363static PyObject *
1364gl_pclos(self, args)
1365 PyObject *self;
1366 PyObject *args;
1367{
1368 pclos( );
1369 Py_INCREF(Py_None);
1370 return Py_None;
1371}
1372
1373/* void popname */
1374
1375static PyObject *
1376gl_popname(self, args)
1377 PyObject *self;
1378 PyObject *args;
1379{
1380 popname( );
1381 Py_INCREF(Py_None);
1382 return Py_None;
1383}
1384
1385/* void spclos */
1386
1387static PyObject *
1388gl_spclos(self, args)
1389 PyObject *self;
1390 PyObject *args;
1391{
1392 spclos( );
1393 Py_INCREF(Py_None);
1394 return Py_None;
1395}
1396
1397/* void zclear */
1398
1399static PyObject *
1400gl_zclear(self, args)
1401 PyObject *self;
1402 PyObject *args;
1403{
1404 zclear( );
1405 Py_INCREF(Py_None);
1406 return Py_None;
1407}
1408
1409/* void screenspace */
1410
1411static PyObject *
1412gl_screenspace(self, args)
1413 PyObject *self;
1414 PyObject *args;
1415{
1416 screenspace( );
1417 Py_INCREF(Py_None);
1418 return Py_None;
1419}
1420
1421/* void reshapeviewport */
1422
1423static PyObject *
1424gl_reshapeviewport(self, args)
1425 PyObject *self;
1426 PyObject *args;
1427{
1428 reshapeviewport( );
1429 Py_INCREF(Py_None);
1430 return Py_None;
1431}
1432
1433/* void winpush */
1434
1435static PyObject *
1436gl_winpush(self, args)
1437 PyObject *self;
1438 PyObject *args;
1439{
1440 winpush( );
1441 Py_INCREF(Py_None);
1442 return Py_None;
1443}
1444
1445/* void winpop */
1446
1447static PyObject *
1448gl_winpop(self, args)
1449 PyObject *self;
1450 PyObject *args;
1451{
1452 winpop( );
1453 Py_INCREF(Py_None);
1454 return Py_None;
1455}
1456
1457/* void foreground */
1458
1459static PyObject *
1460gl_foreground(self, args)
1461 PyObject *self;
1462 PyObject *args;
1463{
1464 foreground( );
1465 Py_INCREF(Py_None);
1466 return Py_None;
1467}
1468
1469/* void endfullscrn */
1470
1471static PyObject *
1472gl_endfullscrn(self, args)
1473 PyObject *self;
1474 PyObject *args;
1475{
1476 endfullscrn( );
1477 Py_INCREF(Py_None);
1478 return Py_None;
1479}
1480
1481/* void endpupmode */
1482
1483static PyObject *
1484gl_endpupmode(self, args)
1485 PyObject *self;
1486 PyObject *args;
1487{
1488 endpupmode( );
1489 Py_INCREF(Py_None);
1490 return Py_None;
1491}
1492
1493/* void fullscrn */
1494
1495static PyObject *
1496gl_fullscrn(self, args)
1497 PyObject *self;
1498 PyObject *args;
1499{
1500 fullscrn( );
1501 Py_INCREF(Py_None);
1502 return Py_None;
1503}
1504
1505/* void pupmode */
1506
1507static PyObject *
1508gl_pupmode(self, args)
1509 PyObject *self;
1510 PyObject *args;
1511{
1512 pupmode( );
1513 Py_INCREF(Py_None);
1514 return Py_None;
1515}
1516
1517/* void winconstraints */
1518
1519static PyObject *
1520gl_winconstraints(self, args)
1521 PyObject *self;
1522 PyObject *args;
1523{
1524 winconstraints( );
1525 Py_INCREF(Py_None);
1526 return Py_None;
1527}
1528
1529/* void pagecolor short s */
1530
1531static PyObject *
1532gl_pagecolor(self, args)
1533 PyObject *self;
1534 PyObject *args;
1535{
1536 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001537 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001538 return NULL;
1539 pagecolor( arg1 );
1540 Py_INCREF(Py_None);
1541 return Py_None;
1542}
1543
1544/* void textcolor short s */
1545
1546static PyObject *
1547gl_textcolor(self, args)
1548 PyObject *self;
1549 PyObject *args;
1550{
1551 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001552 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001553 return NULL;
1554 textcolor( arg1 );
1555 Py_INCREF(Py_None);
1556 return Py_None;
1557}
1558
1559/* void color short s */
1560
1561static PyObject *
1562gl_color(self, args)
1563 PyObject *self;
1564 PyObject *args;
1565{
1566 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001567 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001568 return NULL;
1569 color( arg1 );
1570 Py_INCREF(Py_None);
1571 return Py_None;
1572}
1573
1574/* void curveit short s */
1575
1576static PyObject *
1577gl_curveit(self, args)
1578 PyObject *self;
1579 PyObject *args;
1580{
1581 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001582 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001583 return NULL;
1584 curveit( arg1 );
1585 Py_INCREF(Py_None);
1586 return Py_None;
1587}
1588
1589/* void font short s */
1590
1591static PyObject *
1592gl_font(self, args)
1593 PyObject *self;
1594 PyObject *args;
1595{
1596 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001597 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001598 return NULL;
1599 font( arg1 );
1600 Py_INCREF(Py_None);
1601 return Py_None;
1602}
1603
1604/* void linewidth short s */
1605
1606static PyObject *
1607gl_linewidth(self, args)
1608 PyObject *self;
1609 PyObject *args;
1610{
1611 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001612 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001613 return NULL;
1614 linewidth( arg1 );
1615 Py_INCREF(Py_None);
1616 return Py_None;
1617}
1618
1619/* void setlinestyle short s */
1620
1621static PyObject *
1622gl_setlinestyle(self, args)
1623 PyObject *self;
1624 PyObject *args;
1625{
1626 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001627 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001628 return NULL;
1629 setlinestyle( arg1 );
1630 Py_INCREF(Py_None);
1631 return Py_None;
1632}
1633
1634/* void setmap short s */
1635
1636static PyObject *
1637gl_setmap(self, args)
1638 PyObject *self;
1639 PyObject *args;
1640{
1641 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001642 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001643 return NULL;
1644 setmap( arg1 );
1645 Py_INCREF(Py_None);
1646 return Py_None;
1647}
1648
1649/* void swapinterval short s */
1650
1651static PyObject *
1652gl_swapinterval(self, args)
1653 PyObject *self;
1654 PyObject *args;
1655{
1656 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001657 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001658 return NULL;
1659 swapinterval( arg1 );
1660 Py_INCREF(Py_None);
1661 return Py_None;
1662}
1663
1664/* void writemask short s */
1665
1666static PyObject *
1667gl_writemask(self, args)
1668 PyObject *self;
1669 PyObject *args;
1670{
1671 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001672 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001673 return NULL;
1674 writemask( arg1 );
1675 Py_INCREF(Py_None);
1676 return Py_None;
1677}
1678
1679/* void textwritemask short s */
1680
1681static PyObject *
1682gl_textwritemask(self, args)
1683 PyObject *self;
1684 PyObject *args;
1685{
1686 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001687 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001688 return NULL;
1689 textwritemask( arg1 );
1690 Py_INCREF(Py_None);
1691 return Py_None;
1692}
1693
1694/* void qdevice short s */
1695
1696static PyObject *
1697gl_qdevice(self, args)
1698 PyObject *self;
1699 PyObject *args;
1700{
1701 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001702 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001703 return NULL;
1704 qdevice( arg1 );
1705 Py_INCREF(Py_None);
1706 return Py_None;
1707}
1708
1709/* void unqdevice short s */
1710
1711static PyObject *
1712gl_unqdevice(self, args)
1713 PyObject *self;
1714 PyObject *args;
1715{
1716 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001717 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001718 return NULL;
1719 unqdevice( arg1 );
1720 Py_INCREF(Py_None);
1721 return Py_None;
1722}
1723
1724/* void curvebasis short s */
1725
1726static PyObject *
1727gl_curvebasis(self, args)
1728 PyObject *self;
1729 PyObject *args;
1730{
1731 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001732 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001733 return NULL;
1734 curvebasis( arg1 );
1735 Py_INCREF(Py_None);
1736 return Py_None;
1737}
1738
1739/* void curveprecision short s */
1740
1741static PyObject *
1742gl_curveprecision(self, args)
1743 PyObject *self;
1744 PyObject *args;
1745{
1746 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001747 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001748 return NULL;
1749 curveprecision( arg1 );
1750 Py_INCREF(Py_None);
1751 return Py_None;
1752}
1753
1754/* void loadname short s */
1755
1756static PyObject *
1757gl_loadname(self, args)
1758 PyObject *self;
1759 PyObject *args;
1760{
1761 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001762 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001763 return NULL;
1764 loadname( arg1 );
1765 Py_INCREF(Py_None);
1766 return Py_None;
1767}
1768
1769/* void passthrough short s */
1770
1771static PyObject *
1772gl_passthrough(self, args)
1773 PyObject *self;
1774 PyObject *args;
1775{
1776 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001777 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001778 return NULL;
1779 passthrough( arg1 );
1780 Py_INCREF(Py_None);
1781 return Py_None;
1782}
1783
1784/* void pushname short s */
1785
1786static PyObject *
1787gl_pushname(self, args)
1788 PyObject *self;
1789 PyObject *args;
1790{
1791 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001792 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001793 return NULL;
1794 pushname( arg1 );
1795 Py_INCREF(Py_None);
1796 return Py_None;
1797}
1798
1799/* void setmonitor short s */
1800
1801static PyObject *
1802gl_setmonitor(self, args)
1803 PyObject *self;
1804 PyObject *args;
1805{
1806 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001807 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001808 return NULL;
1809 setmonitor( arg1 );
1810 Py_INCREF(Py_None);
1811 return Py_None;
1812}
1813
1814/* void setshade short s */
1815
1816static PyObject *
1817gl_setshade(self, args)
1818 PyObject *self;
1819 PyObject *args;
1820{
1821 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001822 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001823 return NULL;
1824 setshade( arg1 );
1825 Py_INCREF(Py_None);
1826 return Py_None;
1827}
1828
1829/* void setpattern short s */
1830
1831static PyObject *
1832gl_setpattern(self, args)
1833 PyObject *self;
1834 PyObject *args;
1835{
1836 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001837 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001838 return NULL;
1839 setpattern( arg1 );
1840 Py_INCREF(Py_None);
1841 return Py_None;
1842}
1843
1844/* void pagewritemask short s */
1845
1846static PyObject *
1847gl_pagewritemask(self, args)
1848 PyObject *self;
1849 PyObject *args;
1850{
1851 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001852 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001853 return NULL;
1854 pagewritemask( arg1 );
1855 Py_INCREF(Py_None);
1856 return Py_None;
1857}
1858
1859/* void callobj long s */
1860
1861static PyObject *
1862gl_callobj(self, args)
1863 PyObject *self;
1864 PyObject *args;
1865{
1866 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001867 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001868 return NULL;
1869 callobj( arg1 );
1870 Py_INCREF(Py_None);
1871 return Py_None;
1872}
1873
1874/* void delobj long s */
1875
1876static PyObject *
1877gl_delobj(self, args)
1878 PyObject *self;
1879 PyObject *args;
1880{
1881 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001882 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001883 return NULL;
1884 delobj( arg1 );
1885 Py_INCREF(Py_None);
1886 return Py_None;
1887}
1888
1889/* void editobj long s */
1890
1891static PyObject *
1892gl_editobj(self, args)
1893 PyObject *self;
1894 PyObject *args;
1895{
1896 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001897 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001898 return NULL;
1899 editobj( arg1 );
1900 Py_INCREF(Py_None);
1901 return Py_None;
1902}
1903
1904/* void makeobj long s */
1905
1906static PyObject *
1907gl_makeobj(self, args)
1908 PyObject *self;
1909 PyObject *args;
1910{
1911 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001912 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001913 return NULL;
1914 makeobj( arg1 );
1915 Py_INCREF(Py_None);
1916 return Py_None;
1917}
1918
1919/* void maketag long s */
1920
1921static PyObject *
1922gl_maketag(self, args)
1923 PyObject *self;
1924 PyObject *args;
1925{
1926 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001927 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001928 return NULL;
1929 maketag( arg1 );
1930 Py_INCREF(Py_None);
1931 return Py_None;
1932}
1933
1934/* void chunksize long s */
1935
1936static PyObject *
1937gl_chunksize(self, args)
1938 PyObject *self;
1939 PyObject *args;
1940{
1941 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001942 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001943 return NULL;
1944 chunksize( arg1 );
1945 Py_INCREF(Py_None);
1946 return Py_None;
1947}
1948
1949/* void compactify long s */
1950
1951static PyObject *
1952gl_compactify(self, args)
1953 PyObject *self;
1954 PyObject *args;
1955{
1956 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001957 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001958 return NULL;
1959 compactify( arg1 );
1960 Py_INCREF(Py_None);
1961 return Py_None;
1962}
1963
1964/* void deltag long s */
1965
1966static PyObject *
1967gl_deltag(self, args)
1968 PyObject *self;
1969 PyObject *args;
1970{
1971 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001972 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001973 return NULL;
1974 deltag( arg1 );
1975 Py_INCREF(Py_None);
1976 return Py_None;
1977}
1978
1979/* void lsrepeat long s */
1980
1981static PyObject *
1982gl_lsrepeat(self, args)
1983 PyObject *self;
1984 PyObject *args;
1985{
1986 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001987 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001988 return NULL;
1989 lsrepeat( arg1 );
1990 Py_INCREF(Py_None);
1991 return Py_None;
1992}
1993
1994/* void objinsert long s */
1995
1996static PyObject *
1997gl_objinsert(self, args)
1998 PyObject *self;
1999 PyObject *args;
2000{
2001 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002002 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002003 return NULL;
2004 objinsert( arg1 );
2005 Py_INCREF(Py_None);
2006 return Py_None;
2007}
2008
2009/* void objreplace long s */
2010
2011static PyObject *
2012gl_objreplace(self, args)
2013 PyObject *self;
2014 PyObject *args;
2015{
2016 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002017 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002018 return NULL;
2019 objreplace( arg1 );
2020 Py_INCREF(Py_None);
2021 return Py_None;
2022}
2023
2024/* void winclose long s */
2025
2026static PyObject *
2027gl_winclose(self, args)
2028 PyObject *self;
2029 PyObject *args;
2030{
2031 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002032 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002033 return NULL;
2034 winclose( arg1 );
2035 Py_INCREF(Py_None);
2036 return Py_None;
2037}
2038
2039/* void blanktime long s */
2040
2041static PyObject *
2042gl_blanktime(self, args)
2043 PyObject *self;
2044 PyObject *args;
2045{
2046 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002047 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002048 return NULL;
2049 blanktime( arg1 );
2050 Py_INCREF(Py_None);
2051 return Py_None;
2052}
2053
2054/* void freepup long s */
2055
2056static PyObject *
2057gl_freepup(self, args)
2058 PyObject *self;
2059 PyObject *args;
2060{
2061 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002062 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002063 return NULL;
2064 freepup( arg1 );
2065 Py_INCREF(Py_None);
2066 return Py_None;
2067}
2068
2069/* void backbuffer long s */
2070
2071static PyObject *
2072gl_backbuffer(self, args)
2073 PyObject *self;
2074 PyObject *args;
2075{
2076 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002077 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002078 return NULL;
2079 backbuffer( arg1 );
2080 Py_INCREF(Py_None);
2081 return Py_None;
2082}
2083
2084/* void frontbuffer long s */
2085
2086static PyObject *
2087gl_frontbuffer(self, args)
2088 PyObject *self;
2089 PyObject *args;
2090{
2091 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002092 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002093 return NULL;
2094 frontbuffer( arg1 );
2095 Py_INCREF(Py_None);
2096 return Py_None;
2097}
2098
2099/* void lsbackup long s */
2100
2101static PyObject *
2102gl_lsbackup(self, args)
2103 PyObject *self;
2104 PyObject *args;
2105{
2106 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002107 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002108 return NULL;
2109 lsbackup( arg1 );
2110 Py_INCREF(Py_None);
2111 return Py_None;
2112}
2113
2114/* void resetls long s */
2115
2116static PyObject *
2117gl_resetls(self, args)
2118 PyObject *self;
2119 PyObject *args;
2120{
2121 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002122 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002123 return NULL;
2124 resetls( arg1 );
2125 Py_INCREF(Py_None);
2126 return Py_None;
2127}
2128
2129/* void lampon long s */
2130
2131static PyObject *
2132gl_lampon(self, args)
2133 PyObject *self;
2134 PyObject *args;
2135{
2136 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002137 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002138 return NULL;
2139 lampon( arg1 );
2140 Py_INCREF(Py_None);
2141 return Py_None;
2142}
2143
2144/* void lampoff long s */
2145
2146static PyObject *
2147gl_lampoff(self, args)
2148 PyObject *self;
2149 PyObject *args;
2150{
2151 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002152 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002153 return NULL;
2154 lampoff( arg1 );
2155 Py_INCREF(Py_None);
2156 return Py_None;
2157}
2158
2159/* void setbell long s */
2160
2161static PyObject *
2162gl_setbell(self, args)
2163 PyObject *self;
2164 PyObject *args;
2165{
2166 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002167 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002168 return NULL;
2169 setbell( arg1 );
2170 Py_INCREF(Py_None);
2171 return Py_None;
2172}
2173
2174/* void blankscreen long s */
2175
2176static PyObject *
2177gl_blankscreen(self, args)
2178 PyObject *self;
2179 PyObject *args;
2180{
2181 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002182 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002183 return NULL;
2184 blankscreen( arg1 );
2185 Py_INCREF(Py_None);
2186 return Py_None;
2187}
2188
2189/* void depthcue long s */
2190
2191static PyObject *
2192gl_depthcue(self, args)
2193 PyObject *self;
2194 PyObject *args;
2195{
2196 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002197 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002198 return NULL;
2199 depthcue( arg1 );
2200 Py_INCREF(Py_None);
2201 return Py_None;
2202}
2203
2204/* void zbuffer long s */
2205
2206static PyObject *
2207gl_zbuffer(self, args)
2208 PyObject *self;
2209 PyObject *args;
2210{
2211 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002212 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002213 return NULL;
2214 zbuffer( arg1 );
2215 Py_INCREF(Py_None);
2216 return Py_None;
2217}
2218
2219/* void backface long s */
2220
2221static PyObject *
2222gl_backface(self, args)
2223 PyObject *self;
2224 PyObject *args;
2225{
2226 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002227 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002228 return NULL;
2229 backface( arg1 );
2230 Py_INCREF(Py_None);
2231 return Py_None;
2232}
2233
2234/* void cmov2i long s long s */
2235
2236static PyObject *
2237gl_cmov2i(self, args)
2238 PyObject *self;
2239 PyObject *args;
2240{
2241 long arg1 ;
2242 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002243 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002244 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002245 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002246 return NULL;
2247 cmov2i( arg1 , arg2 );
2248 Py_INCREF(Py_None);
2249 return Py_None;
2250}
2251
2252/* void draw2i long s long s */
2253
2254static PyObject *
2255gl_draw2i(self, args)
2256 PyObject *self;
2257 PyObject *args;
2258{
2259 long arg1 ;
2260 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002261 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002262 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002263 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002264 return NULL;
2265 draw2i( arg1 , arg2 );
2266 Py_INCREF(Py_None);
2267 return Py_None;
2268}
2269
2270/* void move2i long s long s */
2271
2272static PyObject *
2273gl_move2i(self, args)
2274 PyObject *self;
2275 PyObject *args;
2276{
2277 long arg1 ;
2278 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002279 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002280 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002281 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002282 return NULL;
2283 move2i( arg1 , arg2 );
2284 Py_INCREF(Py_None);
2285 return Py_None;
2286}
2287
2288/* void pnt2i long s long s */
2289
2290static PyObject *
2291gl_pnt2i(self, args)
2292 PyObject *self;
2293 PyObject *args;
2294{
2295 long arg1 ;
2296 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002297 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002298 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002299 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002300 return NULL;
2301 pnt2i( arg1 , arg2 );
2302 Py_INCREF(Py_None);
2303 return Py_None;
2304}
2305
2306/* void patchbasis long s long s */
2307
2308static PyObject *
2309gl_patchbasis(self, args)
2310 PyObject *self;
2311 PyObject *args;
2312{
2313 long arg1 ;
2314 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002315 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002316 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002317 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002318 return NULL;
2319 patchbasis( arg1 , arg2 );
2320 Py_INCREF(Py_None);
2321 return Py_None;
2322}
2323
2324/* void patchprecision long s long s */
2325
2326static PyObject *
2327gl_patchprecision(self, args)
2328 PyObject *self;
2329 PyObject *args;
2330{
2331 long arg1 ;
2332 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002333 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002334 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002335 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002336 return NULL;
2337 patchprecision( arg1 , arg2 );
2338 Py_INCREF(Py_None);
2339 return Py_None;
2340}
2341
2342/* void pdr2i long s long s */
2343
2344static PyObject *
2345gl_pdr2i(self, args)
2346 PyObject *self;
2347 PyObject *args;
2348{
2349 long arg1 ;
2350 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002351 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002352 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002353 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002354 return NULL;
2355 pdr2i( arg1 , arg2 );
2356 Py_INCREF(Py_None);
2357 return Py_None;
2358}
2359
2360/* void pmv2i long s long s */
2361
2362static PyObject *
2363gl_pmv2i(self, args)
2364 PyObject *self;
2365 PyObject *args;
2366{
2367 long arg1 ;
2368 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002369 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002370 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002371 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002372 return NULL;
2373 pmv2i( arg1 , arg2 );
2374 Py_INCREF(Py_None);
2375 return Py_None;
2376}
2377
2378/* void rpdr2i long s long s */
2379
2380static PyObject *
2381gl_rpdr2i(self, args)
2382 PyObject *self;
2383 PyObject *args;
2384{
2385 long arg1 ;
2386 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002387 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002388 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002389 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002390 return NULL;
2391 rpdr2i( arg1 , arg2 );
2392 Py_INCREF(Py_None);
2393 return Py_None;
2394}
2395
2396/* void rpmv2i long s long s */
2397
2398static PyObject *
2399gl_rpmv2i(self, args)
2400 PyObject *self;
2401 PyObject *args;
2402{
2403 long arg1 ;
2404 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002405 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002406 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002407 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002408 return NULL;
2409 rpmv2i( arg1 , arg2 );
2410 Py_INCREF(Py_None);
2411 return Py_None;
2412}
2413
2414/* void xfpt2i long s long s */
2415
2416static PyObject *
2417gl_xfpt2i(self, args)
2418 PyObject *self;
2419 PyObject *args;
2420{
2421 long arg1 ;
2422 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002423 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002424 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002425 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002426 return NULL;
2427 xfpt2i( arg1 , arg2 );
2428 Py_INCREF(Py_None);
2429 return Py_None;
2430}
2431
2432/* void objdelete long s long s */
2433
2434static PyObject *
2435gl_objdelete(self, args)
2436 PyObject *self;
2437 PyObject *args;
2438{
2439 long arg1 ;
2440 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002441 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002442 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002443 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002444 return NULL;
2445 objdelete( arg1 , arg2 );
2446 Py_INCREF(Py_None);
2447 return Py_None;
2448}
2449
2450/* void patchcurves long s long s */
2451
2452static PyObject *
2453gl_patchcurves(self, args)
2454 PyObject *self;
2455 PyObject *args;
2456{
2457 long arg1 ;
2458 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002459 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002460 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002461 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002462 return NULL;
2463 patchcurves( arg1 , arg2 );
2464 Py_INCREF(Py_None);
2465 return Py_None;
2466}
2467
2468/* void minsize long s long s */
2469
2470static PyObject *
2471gl_minsize(self, args)
2472 PyObject *self;
2473 PyObject *args;
2474{
2475 long arg1 ;
2476 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002477 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002478 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002479 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002480 return NULL;
2481 minsize( arg1 , arg2 );
2482 Py_INCREF(Py_None);
2483 return Py_None;
2484}
2485
2486/* void maxsize long s long s */
2487
2488static PyObject *
2489gl_maxsize(self, args)
2490 PyObject *self;
2491 PyObject *args;
2492{
2493 long arg1 ;
2494 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002495 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002496 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002497 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002498 return NULL;
2499 maxsize( arg1 , arg2 );
2500 Py_INCREF(Py_None);
2501 return Py_None;
2502}
2503
2504/* void keepaspect long s long s */
2505
2506static PyObject *
2507gl_keepaspect(self, args)
2508 PyObject *self;
2509 PyObject *args;
2510{
2511 long arg1 ;
2512 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002513 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002514 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002515 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002516 return NULL;
2517 keepaspect( arg1 , arg2 );
2518 Py_INCREF(Py_None);
2519 return Py_None;
2520}
2521
2522/* void prefsize long s long s */
2523
2524static PyObject *
2525gl_prefsize(self, args)
2526 PyObject *self;
2527 PyObject *args;
2528{
2529 long arg1 ;
2530 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002531 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002532 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002533 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002534 return NULL;
2535 prefsize( arg1 , arg2 );
2536 Py_INCREF(Py_None);
2537 return Py_None;
2538}
2539
2540/* void stepunit long s long s */
2541
2542static PyObject *
2543gl_stepunit(self, args)
2544 PyObject *self;
2545 PyObject *args;
2546{
2547 long arg1 ;
2548 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002549 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002550 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002551 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002552 return NULL;
2553 stepunit( arg1 , arg2 );
2554 Py_INCREF(Py_None);
2555 return Py_None;
2556}
2557
2558/* void fudge long s long s */
2559
2560static PyObject *
2561gl_fudge(self, args)
2562 PyObject *self;
2563 PyObject *args;
2564{
2565 long arg1 ;
2566 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002567 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002568 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002569 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002570 return NULL;
2571 fudge( arg1 , arg2 );
2572 Py_INCREF(Py_None);
2573 return Py_None;
2574}
2575
2576/* void winmove long s long s */
2577
2578static PyObject *
2579gl_winmove(self, args)
2580 PyObject *self;
2581 PyObject *args;
2582{
2583 long arg1 ;
2584 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002585 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002586 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002587 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002588 return NULL;
2589 winmove( arg1 , arg2 );
2590 Py_INCREF(Py_None);
2591 return Py_None;
2592}
2593
2594/* void attachcursor short s short s */
2595
2596static PyObject *
2597gl_attachcursor(self, args)
2598 PyObject *self;
2599 PyObject *args;
2600{
2601 short arg1 ;
2602 short arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002603 if (!getishortarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002604 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002605 if (!getishortarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002606 return NULL;
2607 attachcursor( arg1 , arg2 );
2608 Py_INCREF(Py_None);
2609 return Py_None;
2610}
2611
2612/* void deflinestyle short s short s */
2613
2614static PyObject *
2615gl_deflinestyle(self, args)
2616 PyObject *self;
2617 PyObject *args;
2618{
2619 short arg1 ;
2620 short arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002621 if (!getishortarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002622 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002623 if (!getishortarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002624 return NULL;
2625 deflinestyle( arg1 , arg2 );
2626 Py_INCREF(Py_None);
2627 return Py_None;
2628}
2629
2630/* void noise short s short s */
2631
2632static PyObject *
2633gl_noise(self, args)
2634 PyObject *self;
2635 PyObject *args;
2636{
2637 short arg1 ;
2638 short arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002639 if (!getishortarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002640 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002641 if (!getishortarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002642 return NULL;
2643 noise( arg1 , arg2 );
2644 Py_INCREF(Py_None);
2645 return Py_None;
2646}
2647
2648/* void picksize short s short s */
2649
2650static PyObject *
2651gl_picksize(self, args)
2652 PyObject *self;
2653 PyObject *args;
2654{
2655 short arg1 ;
2656 short arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002657 if (!getishortarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002658 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002659 if (!getishortarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002660 return NULL;
2661 picksize( arg1 , arg2 );
2662 Py_INCREF(Py_None);
2663 return Py_None;
2664}
2665
2666/* void qenter short s short s */
2667
2668static PyObject *
2669gl_qenter(self, args)
2670 PyObject *self;
2671 PyObject *args;
2672{
2673 short arg1 ;
2674 short arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002675 if (!getishortarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002676 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002677 if (!getishortarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002678 return NULL;
2679 qenter( arg1 , arg2 );
2680 Py_INCREF(Py_None);
2681 return Py_None;
2682}
2683
2684/* void setdepth short s short s */
2685
2686static PyObject *
2687gl_setdepth(self, args)
2688 PyObject *self;
2689 PyObject *args;
2690{
2691 short arg1 ;
2692 short arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002693 if (!getishortarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002694 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002695 if (!getishortarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002696 return NULL;
2697 setdepth( arg1 , arg2 );
2698 Py_INCREF(Py_None);
2699 return Py_None;
2700}
2701
2702/* void cmov2s short s short s */
2703
2704static PyObject *
2705gl_cmov2s(self, args)
2706 PyObject *self;
2707 PyObject *args;
2708{
2709 short arg1 ;
2710 short arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002711 if (!getishortarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002712 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002713 if (!getishortarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002714 return NULL;
2715 cmov2s( arg1 , arg2 );
2716 Py_INCREF(Py_None);
2717 return Py_None;
2718}
2719
2720/* void draw2s short s short s */
2721
2722static PyObject *
2723gl_draw2s(self, args)
2724 PyObject *self;
2725 PyObject *args;
2726{
2727 short arg1 ;
2728 short arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002729 if (!getishortarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002730 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002731 if (!getishortarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002732 return NULL;
2733 draw2s( arg1 , arg2 );
2734 Py_INCREF(Py_None);
2735 return Py_None;
2736}
2737
2738/* void move2s short s short s */
2739
2740static PyObject *
2741gl_move2s(self, args)
2742 PyObject *self;
2743 PyObject *args;
2744{
2745 short arg1 ;
2746 short arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002747 if (!getishortarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002748 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002749 if (!getishortarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002750 return NULL;
2751 move2s( arg1 , arg2 );
2752 Py_INCREF(Py_None);
2753 return Py_None;
2754}
2755
2756/* void pdr2s short s short s */
2757
2758static PyObject *
2759gl_pdr2s(self, args)
2760 PyObject *self;
2761 PyObject *args;
2762{
2763 short arg1 ;
2764 short arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002765 if (!getishortarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002766 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002767 if (!getishortarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002768 return NULL;
2769 pdr2s( arg1 , arg2 );
2770 Py_INCREF(Py_None);
2771 return Py_None;
2772}
2773
2774/* void pmv2s short s short s */
2775
2776static PyObject *
2777gl_pmv2s(self, args)
2778 PyObject *self;
2779 PyObject *args;
2780{
2781 short arg1 ;
2782 short arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002783 if (!getishortarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002784 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002785 if (!getishortarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002786 return NULL;
2787 pmv2s( arg1 , arg2 );
2788 Py_INCREF(Py_None);
2789 return Py_None;
2790}
2791
2792/* void pnt2s short s short s */
2793
2794static PyObject *
2795gl_pnt2s(self, args)
2796 PyObject *self;
2797 PyObject *args;
2798{
2799 short arg1 ;
2800 short arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002801 if (!getishortarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002802 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002803 if (!getishortarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002804 return NULL;
2805 pnt2s( arg1 , arg2 );
2806 Py_INCREF(Py_None);
2807 return Py_None;
2808}
2809
2810/* void rdr2s short s short s */
2811
2812static PyObject *
2813gl_rdr2s(self, args)
2814 PyObject *self;
2815 PyObject *args;
2816{
2817 short arg1 ;
2818 short arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002819 if (!getishortarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002820 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002821 if (!getishortarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002822 return NULL;
2823 rdr2s( arg1 , arg2 );
2824 Py_INCREF(Py_None);
2825 return Py_None;
2826}
2827
2828/* void rmv2s short s short s */
2829
2830static PyObject *
2831gl_rmv2s(self, args)
2832 PyObject *self;
2833 PyObject *args;
2834{
2835 short arg1 ;
2836 short arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002837 if (!getishortarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002838 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002839 if (!getishortarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002840 return NULL;
2841 rmv2s( arg1 , arg2 );
2842 Py_INCREF(Py_None);
2843 return Py_None;
2844}
2845
2846/* void rpdr2s short s short s */
2847
2848static PyObject *
2849gl_rpdr2s(self, args)
2850 PyObject *self;
2851 PyObject *args;
2852{
2853 short arg1 ;
2854 short arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002855 if (!getishortarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002856 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002857 if (!getishortarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002858 return NULL;
2859 rpdr2s( arg1 , arg2 );
2860 Py_INCREF(Py_None);
2861 return Py_None;
2862}
2863
2864/* void rpmv2s short s short s */
2865
2866static PyObject *
2867gl_rpmv2s(self, args)
2868 PyObject *self;
2869 PyObject *args;
2870{
2871 short arg1 ;
2872 short arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002873 if (!getishortarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002874 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002875 if (!getishortarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002876 return NULL;
2877 rpmv2s( arg1 , arg2 );
2878 Py_INCREF(Py_None);
2879 return Py_None;
2880}
2881
2882/* void xfpt2s short s short s */
2883
2884static PyObject *
2885gl_xfpt2s(self, args)
2886 PyObject *self;
2887 PyObject *args;
2888{
2889 short arg1 ;
2890 short arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002891 if (!getishortarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002892 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002893 if (!getishortarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002894 return NULL;
2895 xfpt2s( arg1 , arg2 );
2896 Py_INCREF(Py_None);
2897 return Py_None;
2898}
2899
2900/* void cmov2 float s float s */
2901
2902static PyObject *
2903gl_cmov2(self, args)
2904 PyObject *self;
2905 PyObject *args;
2906{
2907 float arg1 ;
2908 float arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002909 if (!getifloatarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002910 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002911 if (!getifloatarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002912 return NULL;
2913 cmov2( arg1 , arg2 );
2914 Py_INCREF(Py_None);
2915 return Py_None;
2916}
2917
2918/* void draw2 float s float s */
2919
2920static PyObject *
2921gl_draw2(self, args)
2922 PyObject *self;
2923 PyObject *args;
2924{
2925 float arg1 ;
2926 float arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002927 if (!getifloatarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002928 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002929 if (!getifloatarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002930 return NULL;
2931 draw2( arg1 , arg2 );
2932 Py_INCREF(Py_None);
2933 return Py_None;
2934}
2935
2936/* void move2 float s float s */
2937
2938static PyObject *
2939gl_move2(self, args)
2940 PyObject *self;
2941 PyObject *args;
2942{
2943 float arg1 ;
2944 float arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002945 if (!getifloatarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002946 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002947 if (!getifloatarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002948 return NULL;
2949 move2( arg1 , arg2 );
2950 Py_INCREF(Py_None);
2951 return Py_None;
2952}
2953
2954/* void pnt2 float s float s */
2955
2956static PyObject *
2957gl_pnt2(self, args)
2958 PyObject *self;
2959 PyObject *args;
2960{
2961 float arg1 ;
2962 float arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002963 if (!getifloatarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002964 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002965 if (!getifloatarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002966 return NULL;
2967 pnt2( arg1 , arg2 );
2968 Py_INCREF(Py_None);
2969 return Py_None;
2970}
2971
2972/* void pdr2 float s float s */
2973
2974static PyObject *
2975gl_pdr2(self, args)
2976 PyObject *self;
2977 PyObject *args;
2978{
2979 float arg1 ;
2980 float arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002981 if (!getifloatarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002982 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002983 if (!getifloatarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002984 return NULL;
2985 pdr2( arg1 , arg2 );
2986 Py_INCREF(Py_None);
2987 return Py_None;
2988}
2989
2990/* void pmv2 float s float s */
2991
2992static PyObject *
2993gl_pmv2(self, args)
2994 PyObject *self;
2995 PyObject *args;
2996{
2997 float arg1 ;
2998 float arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002999 if (!getifloatarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003000 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003001 if (!getifloatarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003002 return NULL;
3003 pmv2( arg1 , arg2 );
3004 Py_INCREF(Py_None);
3005 return Py_None;
3006}
3007
3008/* void rdr2 float s float s */
3009
3010static PyObject *
3011gl_rdr2(self, args)
3012 PyObject *self;
3013 PyObject *args;
3014{
3015 float arg1 ;
3016 float arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003017 if (!getifloatarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003018 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003019 if (!getifloatarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003020 return NULL;
3021 rdr2( arg1 , arg2 );
3022 Py_INCREF(Py_None);
3023 return Py_None;
3024}
3025
3026/* void rmv2 float s float s */
3027
3028static PyObject *
3029gl_rmv2(self, args)
3030 PyObject *self;
3031 PyObject *args;
3032{
3033 float arg1 ;
3034 float arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003035 if (!getifloatarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003036 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003037 if (!getifloatarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003038 return NULL;
3039 rmv2( arg1 , arg2 );
3040 Py_INCREF(Py_None);
3041 return Py_None;
3042}
3043
3044/* void rpdr2 float s float s */
3045
3046static PyObject *
3047gl_rpdr2(self, args)
3048 PyObject *self;
3049 PyObject *args;
3050{
3051 float arg1 ;
3052 float arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003053 if (!getifloatarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003054 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003055 if (!getifloatarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003056 return NULL;
3057 rpdr2( arg1 , arg2 );
3058 Py_INCREF(Py_None);
3059 return Py_None;
3060}
3061
3062/* void rpmv2 float s float s */
3063
3064static PyObject *
3065gl_rpmv2(self, args)
3066 PyObject *self;
3067 PyObject *args;
3068{
3069 float arg1 ;
3070 float arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003071 if (!getifloatarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003072 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003073 if (!getifloatarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003074 return NULL;
3075 rpmv2( arg1 , arg2 );
3076 Py_INCREF(Py_None);
3077 return Py_None;
3078}
3079
3080/* void xfpt2 float s float s */
3081
3082static PyObject *
3083gl_xfpt2(self, args)
3084 PyObject *self;
3085 PyObject *args;
3086{
3087 float arg1 ;
3088 float arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003089 if (!getifloatarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003090 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003091 if (!getifloatarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003092 return NULL;
3093 xfpt2( arg1 , arg2 );
3094 Py_INCREF(Py_None);
3095 return Py_None;
3096}
3097
3098/* void loadmatrix float s[4*4] */
3099
3100static PyObject *
3101gl_loadmatrix(self, args)
3102 PyObject *self;
3103 PyObject *args;
3104{
3105 float arg1 [ 4 ] [ 4 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003106 if (!getifloatarray(args, 1, 0, 4 * 4 , (float *) arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003107 return NULL;
3108 loadmatrix( arg1 );
3109 Py_INCREF(Py_None);
3110 return Py_None;
3111}
3112
3113/* void multmatrix float s[4*4] */
3114
3115static PyObject *
3116gl_multmatrix(self, args)
3117 PyObject *self;
3118 PyObject *args;
3119{
3120 float arg1 [ 4 ] [ 4 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003121 if (!getifloatarray(args, 1, 0, 4 * 4 , (float *) arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003122 return NULL;
3123 multmatrix( arg1 );
3124 Py_INCREF(Py_None);
3125 return Py_None;
3126}
3127
3128/* void crv float s[3*4] */
3129
3130static PyObject *
3131gl_crv(self, args)
3132 PyObject *self;
3133 PyObject *args;
3134{
3135 float arg1 [ 4 ] [ 3 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003136 if (!getifloatarray(args, 1, 0, 3 * 4 , (float *) arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003137 return NULL;
3138 crv( arg1 );
3139 Py_INCREF(Py_None);
3140 return Py_None;
3141}
3142
3143/* void rcrv float s[4*4] */
3144
3145static PyObject *
3146gl_rcrv(self, args)
3147 PyObject *self;
3148 PyObject *args;
3149{
3150 float arg1 [ 4 ] [ 4 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003151 if (!getifloatarray(args, 1, 0, 4 * 4 , (float *) arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003152 return NULL;
3153 rcrv( arg1 );
3154 Py_INCREF(Py_None);
3155 return Py_None;
3156}
3157
3158/* void addtopup long s char *s long s */
3159
3160static PyObject *
3161gl_addtopup(self, args)
3162 PyObject *self;
3163 PyObject *args;
3164{
3165 long arg1 ;
3166 string arg2 ;
3167 long arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003168 if (!getilongarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003169 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003170 if (!getistringarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003171 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003172 if (!getilongarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003173 return NULL;
3174 addtopup( arg1 , arg2 , arg3 );
3175 Py_INCREF(Py_None);
3176 return Py_None;
3177}
3178
3179/* void charstr char *s */
3180
3181static PyObject *
3182gl_charstr(self, args)
3183 PyObject *self;
3184 PyObject *args;
3185{
3186 string arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003187 if (!getistringarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003188 return NULL;
3189 charstr( arg1 );
3190 Py_INCREF(Py_None);
3191 return Py_None;
3192}
3193
3194/* void getport char *s */
3195
3196static PyObject *
3197gl_getport(self, args)
3198 PyObject *self;
3199 PyObject *args;
3200{
3201 string arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003202 if (!getistringarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003203 return NULL;
3204 getport( arg1 );
3205 Py_INCREF(Py_None);
3206 return Py_None;
3207}
3208
3209/* long strwidth char *s */
3210
3211static PyObject *
3212gl_strwidth(self, args)
3213 PyObject *self;
3214 PyObject *args;
3215{
3216 long retval;
3217 string arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003218 if (!getistringarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003219 return NULL;
3220 retval = strwidth( arg1 );
3221 return mknewlongobject(retval);
3222}
3223
3224/* long winopen char *s */
3225
3226static PyObject *
3227gl_winopen(self, args)
3228 PyObject *self;
3229 PyObject *args;
3230{
3231 long retval;
3232 string arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003233 if (!getistringarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003234 return NULL;
3235 retval = winopen( arg1 );
3236 return mknewlongobject(retval);
3237}
3238
3239/* void wintitle char *s */
3240
3241static PyObject *
3242gl_wintitle(self, args)
3243 PyObject *self;
3244 PyObject *args;
3245{
3246 string arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003247 if (!getistringarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003248 return NULL;
3249 wintitle( arg1 );
3250 Py_INCREF(Py_None);
3251 return Py_None;
3252}
3253
3254/* void polf long s float s[3*arg1] */
3255
3256static PyObject *
3257gl_polf(self, args)
3258 PyObject *self;
3259 PyObject *args;
3260{
3261 long arg1 ;
3262 float (* arg2) [ 3 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003263 if (!getilongarraysize(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003264 return NULL;
3265 arg1 = arg1 / 3;
3266 if ((arg2 = (float(*)[3]) PyMem_NEW(float , 3 * arg1 )) == NULL)
3267 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00003268 if (!getifloatarray(args, 1, 0, 3 * arg1 , (float *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003269 return NULL;
3270 polf( arg1 , arg2 );
3271 PyMem_DEL(arg2);
3272 Py_INCREF(Py_None);
3273 return Py_None;
3274}
3275
3276/* void polf2 long s float s[2*arg1] */
3277
3278static PyObject *
3279gl_polf2(self, args)
3280 PyObject *self;
3281 PyObject *args;
3282{
3283 long arg1 ;
3284 float (* arg2) [ 2 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003285 if (!getilongarraysize(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003286 return NULL;
3287 arg1 = arg1 / 2;
3288 if ((arg2 = (float(*)[2]) PyMem_NEW(float , 2 * arg1 )) == NULL)
3289 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00003290 if (!getifloatarray(args, 1, 0, 2 * arg1 , (float *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003291 return NULL;
3292 polf2( arg1 , arg2 );
3293 PyMem_DEL(arg2);
3294 Py_INCREF(Py_None);
3295 return Py_None;
3296}
3297
3298/* void poly long s float s[3*arg1] */
3299
3300static PyObject *
3301gl_poly(self, args)
3302 PyObject *self;
3303 PyObject *args;
3304{
3305 long arg1 ;
3306 float (* arg2) [ 3 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003307 if (!getilongarraysize(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003308 return NULL;
3309 arg1 = arg1 / 3;
3310 if ((arg2 = (float(*)[3]) PyMem_NEW(float , 3 * arg1 )) == NULL)
3311 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00003312 if (!getifloatarray(args, 1, 0, 3 * arg1 , (float *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003313 return NULL;
3314 poly( arg1 , arg2 );
3315 PyMem_DEL(arg2);
3316 Py_INCREF(Py_None);
3317 return Py_None;
3318}
3319
3320/* void poly2 long s float s[2*arg1] */
3321
3322static PyObject *
3323gl_poly2(self, args)
3324 PyObject *self;
3325 PyObject *args;
3326{
3327 long arg1 ;
3328 float (* arg2) [ 2 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003329 if (!getilongarraysize(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003330 return NULL;
3331 arg1 = arg1 / 2;
3332 if ((arg2 = (float(*)[2]) PyMem_NEW(float , 2 * arg1 )) == NULL)
3333 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00003334 if (!getifloatarray(args, 1, 0, 2 * arg1 , (float *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003335 return NULL;
3336 poly2( arg1 , arg2 );
3337 PyMem_DEL(arg2);
3338 Py_INCREF(Py_None);
3339 return Py_None;
3340}
3341
3342/* void crvn long s float s[3*arg1] */
3343
3344static PyObject *
3345gl_crvn(self, args)
3346 PyObject *self;
3347 PyObject *args;
3348{
3349 long arg1 ;
3350 float (* arg2) [ 3 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003351 if (!getilongarraysize(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003352 return NULL;
3353 arg1 = arg1 / 3;
3354 if ((arg2 = (float(*)[3]) PyMem_NEW(float , 3 * arg1 )) == NULL)
3355 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00003356 if (!getifloatarray(args, 1, 0, 3 * arg1 , (float *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003357 return NULL;
3358 crvn( arg1 , arg2 );
3359 PyMem_DEL(arg2);
3360 Py_INCREF(Py_None);
3361 return Py_None;
3362}
3363
3364/* void rcrvn long s float s[4*arg1] */
3365
3366static PyObject *
3367gl_rcrvn(self, args)
3368 PyObject *self;
3369 PyObject *args;
3370{
3371 long arg1 ;
3372 float (* arg2) [ 4 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003373 if (!getilongarraysize(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003374 return NULL;
3375 arg1 = arg1 / 4;
3376 if ((arg2 = (float(*)[4]) PyMem_NEW(float , 4 * arg1 )) == NULL)
3377 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00003378 if (!getifloatarray(args, 1, 0, 4 * arg1 , (float *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003379 return NULL;
3380 rcrvn( arg1 , arg2 );
3381 PyMem_DEL(arg2);
3382 Py_INCREF(Py_None);
3383 return Py_None;
3384}
3385
3386/* void polf2i long s long s[2*arg1] */
3387
3388static PyObject *
3389gl_polf2i(self, args)
3390 PyObject *self;
3391 PyObject *args;
3392{
3393 long arg1 ;
3394 long (* arg2) [ 2 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003395 if (!getilongarraysize(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003396 return NULL;
3397 arg1 = arg1 / 2;
3398 if ((arg2 = (long(*)[2]) PyMem_NEW(long , 2 * arg1 )) == NULL)
3399 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00003400 if (!getilongarray(args, 1, 0, 2 * arg1 , (long *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003401 return NULL;
3402 polf2i( arg1 , arg2 );
3403 PyMem_DEL(arg2);
3404 Py_INCREF(Py_None);
3405 return Py_None;
3406}
3407
3408/* void polfi long s long s[3*arg1] */
3409
3410static PyObject *
3411gl_polfi(self, args)
3412 PyObject *self;
3413 PyObject *args;
3414{
3415 long arg1 ;
3416 long (* arg2) [ 3 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003417 if (!getilongarraysize(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003418 return NULL;
3419 arg1 = arg1 / 3;
3420 if ((arg2 = (long(*)[3]) PyMem_NEW(long , 3 * arg1 )) == NULL)
3421 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00003422 if (!getilongarray(args, 1, 0, 3 * arg1 , (long *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003423 return NULL;
3424 polfi( arg1 , arg2 );
3425 PyMem_DEL(arg2);
3426 Py_INCREF(Py_None);
3427 return Py_None;
3428}
3429
3430/* void poly2i long s long s[2*arg1] */
3431
3432static PyObject *
3433gl_poly2i(self, args)
3434 PyObject *self;
3435 PyObject *args;
3436{
3437 long arg1 ;
3438 long (* arg2) [ 2 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003439 if (!getilongarraysize(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003440 return NULL;
3441 arg1 = arg1 / 2;
3442 if ((arg2 = (long(*)[2]) PyMem_NEW(long , 2 * arg1 )) == NULL)
3443 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00003444 if (!getilongarray(args, 1, 0, 2 * arg1 , (long *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003445 return NULL;
3446 poly2i( arg1 , arg2 );
3447 PyMem_DEL(arg2);
3448 Py_INCREF(Py_None);
3449 return Py_None;
3450}
3451
3452/* void polyi long s long s[3*arg1] */
3453
3454static PyObject *
3455gl_polyi(self, args)
3456 PyObject *self;
3457 PyObject *args;
3458{
3459 long arg1 ;
3460 long (* arg2) [ 3 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003461 if (!getilongarraysize(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003462 return NULL;
3463 arg1 = arg1 / 3;
3464 if ((arg2 = (long(*)[3]) PyMem_NEW(long , 3 * arg1 )) == NULL)
3465 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00003466 if (!getilongarray(args, 1, 0, 3 * arg1 , (long *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003467 return NULL;
3468 polyi( arg1 , arg2 );
3469 PyMem_DEL(arg2);
3470 Py_INCREF(Py_None);
3471 return Py_None;
3472}
3473
3474/* void polf2s long s short s[2*arg1] */
3475
3476static PyObject *
3477gl_polf2s(self, args)
3478 PyObject *self;
3479 PyObject *args;
3480{
3481 long arg1 ;
3482 short (* arg2) [ 2 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003483 if (!getilongarraysize(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003484 return NULL;
3485 arg1 = arg1 / 2;
3486 if ((arg2 = (short(*)[2]) PyMem_NEW(short , 2 * arg1 )) == NULL)
3487 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00003488 if (!getishortarray(args, 1, 0, 2 * arg1 , (short *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003489 return NULL;
3490 polf2s( arg1 , arg2 );
3491 PyMem_DEL(arg2);
3492 Py_INCREF(Py_None);
3493 return Py_None;
3494}
3495
3496/* void polfs long s short s[3*arg1] */
3497
3498static PyObject *
3499gl_polfs(self, args)
3500 PyObject *self;
3501 PyObject *args;
3502{
3503 long arg1 ;
3504 short (* arg2) [ 3 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003505 if (!getilongarraysize(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003506 return NULL;
3507 arg1 = arg1 / 3;
3508 if ((arg2 = (short(*)[3]) PyMem_NEW(short , 3 * arg1 )) == NULL)
3509 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00003510 if (!getishortarray(args, 1, 0, 3 * arg1 , (short *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003511 return NULL;
3512 polfs( arg1 , arg2 );
3513 PyMem_DEL(arg2);
3514 Py_INCREF(Py_None);
3515 return Py_None;
3516}
3517
3518/* void polys long s short s[3*arg1] */
3519
3520static PyObject *
3521gl_polys(self, args)
3522 PyObject *self;
3523 PyObject *args;
3524{
3525 long arg1 ;
3526 short (* arg2) [ 3 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003527 if (!getilongarraysize(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003528 return NULL;
3529 arg1 = arg1 / 3;
3530 if ((arg2 = (short(*)[3]) PyMem_NEW(short , 3 * arg1 )) == NULL)
3531 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00003532 if (!getishortarray(args, 1, 0, 3 * arg1 , (short *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003533 return NULL;
3534 polys( arg1 , arg2 );
3535 PyMem_DEL(arg2);
3536 Py_INCREF(Py_None);
3537 return Py_None;
3538}
3539
3540/* void poly2s long s short s[2*arg1] */
3541
3542static PyObject *
3543gl_poly2s(self, args)
3544 PyObject *self;
3545 PyObject *args;
3546{
3547 long arg1 ;
3548 short (* arg2) [ 2 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003549 if (!getilongarraysize(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003550 return NULL;
3551 arg1 = arg1 / 2;
3552 if ((arg2 = (short(*)[2]) PyMem_NEW(short , 2 * arg1 )) == NULL)
3553 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00003554 if (!getishortarray(args, 1, 0, 2 * arg1 , (short *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003555 return NULL;
3556 poly2s( arg1 , arg2 );
3557 PyMem_DEL(arg2);
3558 Py_INCREF(Py_None);
3559 return Py_None;
3560}
3561
3562/* void defcursor short s u_short s[128] */
3563
3564static PyObject *
3565gl_defcursor(self, args)
3566 PyObject *self;
3567 PyObject *args;
3568{
3569 short arg1 ;
3570 unsigned short arg2 [ 128 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003571 if (!getishortarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003572 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003573 if (!getishortarray(args, 2, 1, 128 , (short *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003574 return NULL;
3575 defcursor( arg1 , arg2 );
3576 Py_INCREF(Py_None);
3577 return Py_None;
3578}
3579
3580/* void writepixels short s u_short s[arg1] */
3581
3582static PyObject *
3583gl_writepixels(self, args)
3584 PyObject *self;
3585 PyObject *args;
3586{
3587 short arg1 ;
3588 unsigned short * arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003589 if (!getishortarraysize(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003590 return NULL;
3591 if ((arg2 = PyMem_NEW(unsigned short , arg1 )) == NULL)
3592 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00003593 if (!getishortarray(args, 1, 0, arg1 , (short *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003594 return NULL;
3595 writepixels( arg1 , arg2 );
3596 PyMem_DEL(arg2);
3597 Py_INCREF(Py_None);
3598 return Py_None;
3599}
3600
3601/* void defbasis long s float s[4*4] */
3602
3603static PyObject *
3604gl_defbasis(self, args)
3605 PyObject *self;
3606 PyObject *args;
3607{
3608 long arg1 ;
3609 float arg2 [ 4 ] [ 4 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003610 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003611 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003612 if (!getifloatarray(args, 2, 1, 4 * 4 , (float *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003613 return NULL;
3614 defbasis( arg1 , arg2 );
3615 Py_INCREF(Py_None);
3616 return Py_None;
3617}
3618
3619/* void gewrite short s short s[arg1] */
3620
3621static PyObject *
3622gl_gewrite(self, args)
3623 PyObject *self;
3624 PyObject *args;
3625{
3626 short arg1 ;
3627 short * arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003628 if (!getishortarraysize(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003629 return NULL;
3630 if ((arg2 = PyMem_NEW(short , arg1 )) == NULL)
3631 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00003632 if (!getishortarray(args, 1, 0, arg1 , arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003633 return NULL;
3634 gewrite( arg1 , arg2 );
3635 PyMem_DEL(arg2);
3636 Py_INCREF(Py_None);
3637 return Py_None;
3638}
3639
3640/* void rotate short s char s */
3641
3642static PyObject *
3643gl_rotate(self, args)
3644 PyObject *self;
3645 PyObject *args;
3646{
3647 short arg1 ;
3648 char arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003649 if (!getishortarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003650 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003651 if (!getichararg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003652 return NULL;
3653 rotate( arg1 , arg2 );
3654 Py_INCREF(Py_None);
3655 return Py_None;
3656}
3657
3658/* void rot float s char s */
3659
3660static PyObject *
3661gl_rot(self, args)
3662 PyObject *self;
3663 PyObject *args;
3664{
3665 float arg1 ;
3666 char arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003667 if (!getifloatarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003668 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003669 if (!getichararg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003670 return NULL;
3671 rot( arg1 , arg2 );
3672 Py_INCREF(Py_None);
3673 return Py_None;
3674}
3675
3676/* void circfi long s long s long s */
3677
3678static PyObject *
3679gl_circfi(self, args)
3680 PyObject *self;
3681 PyObject *args;
3682{
3683 long arg1 ;
3684 long arg2 ;
3685 long arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003686 if (!getilongarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003687 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003688 if (!getilongarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003689 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003690 if (!getilongarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003691 return NULL;
3692 circfi( arg1 , arg2 , arg3 );
3693 Py_INCREF(Py_None);
3694 return Py_None;
3695}
3696
3697/* void circi long s long s long s */
3698
3699static PyObject *
3700gl_circi(self, args)
3701 PyObject *self;
3702 PyObject *args;
3703{
3704 long arg1 ;
3705 long arg2 ;
3706 long arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003707 if (!getilongarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003708 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003709 if (!getilongarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003710 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003711 if (!getilongarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003712 return NULL;
3713 circi( arg1 , arg2 , arg3 );
3714 Py_INCREF(Py_None);
3715 return Py_None;
3716}
3717
3718/* void cmovi long s long s long s */
3719
3720static PyObject *
3721gl_cmovi(self, args)
3722 PyObject *self;
3723 PyObject *args;
3724{
3725 long arg1 ;
3726 long arg2 ;
3727 long arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003728 if (!getilongarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003729 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003730 if (!getilongarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003731 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003732 if (!getilongarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003733 return NULL;
3734 cmovi( arg1 , arg2 , arg3 );
3735 Py_INCREF(Py_None);
3736 return Py_None;
3737}
3738
3739/* void drawi long s long s long s */
3740
3741static PyObject *
3742gl_drawi(self, args)
3743 PyObject *self;
3744 PyObject *args;
3745{
3746 long arg1 ;
3747 long arg2 ;
3748 long arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003749 if (!getilongarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003750 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003751 if (!getilongarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003752 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003753 if (!getilongarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003754 return NULL;
3755 drawi( arg1 , arg2 , arg3 );
3756 Py_INCREF(Py_None);
3757 return Py_None;
3758}
3759
3760/* void movei long s long s long s */
3761
3762static PyObject *
3763gl_movei(self, args)
3764 PyObject *self;
3765 PyObject *args;
3766{
3767 long arg1 ;
3768 long arg2 ;
3769 long arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003770 if (!getilongarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003771 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003772 if (!getilongarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003773 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003774 if (!getilongarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003775 return NULL;
3776 movei( arg1 , arg2 , arg3 );
3777 Py_INCREF(Py_None);
3778 return Py_None;
3779}
3780
3781/* void pnti long s long s long s */
3782
3783static PyObject *
3784gl_pnti(self, args)
3785 PyObject *self;
3786 PyObject *args;
3787{
3788 long arg1 ;
3789 long arg2 ;
3790 long arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003791 if (!getilongarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003792 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003793 if (!getilongarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003794 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003795 if (!getilongarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003796 return NULL;
3797 pnti( arg1 , arg2 , arg3 );
3798 Py_INCREF(Py_None);
3799 return Py_None;
3800}
3801
3802/* void newtag long s long s long s */
3803
3804static PyObject *
3805gl_newtag(self, args)
3806 PyObject *self;
3807 PyObject *args;
3808{
3809 long arg1 ;
3810 long arg2 ;
3811 long arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003812 if (!getilongarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003813 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003814 if (!getilongarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003815 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003816 if (!getilongarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003817 return NULL;
3818 newtag( arg1 , arg2 , arg3 );
3819 Py_INCREF(Py_None);
3820 return Py_None;
3821}
3822
3823/* void pdri long s long s long s */
3824
3825static PyObject *
3826gl_pdri(self, args)
3827 PyObject *self;
3828 PyObject *args;
3829{
3830 long arg1 ;
3831 long arg2 ;
3832 long arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003833 if (!getilongarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003834 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003835 if (!getilongarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003836 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003837 if (!getilongarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003838 return NULL;
3839 pdri( arg1 , arg2 , arg3 );
3840 Py_INCREF(Py_None);
3841 return Py_None;
3842}
3843
3844/* void pmvi long s long s long s */
3845
3846static PyObject *
3847gl_pmvi(self, args)
3848 PyObject *self;
3849 PyObject *args;
3850{
3851 long arg1 ;
3852 long arg2 ;
3853 long arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003854 if (!getilongarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003855 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003856 if (!getilongarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003857 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003858 if (!getilongarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003859 return NULL;
3860 pmvi( arg1 , arg2 , arg3 );
3861 Py_INCREF(Py_None);
3862 return Py_None;
3863}
3864
3865/* void rdri long s long s long s */
3866
3867static PyObject *
3868gl_rdri(self, args)
3869 PyObject *self;
3870 PyObject *args;
3871{
3872 long arg1 ;
3873 long arg2 ;
3874 long arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003875 if (!getilongarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003876 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003877 if (!getilongarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003878 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003879 if (!getilongarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003880 return NULL;
3881 rdri( arg1 , arg2 , arg3 );
3882 Py_INCREF(Py_None);
3883 return Py_None;
3884}
3885
3886/* void rmvi long s long s long s */
3887
3888static PyObject *
3889gl_rmvi(self, args)
3890 PyObject *self;
3891 PyObject *args;
3892{
3893 long arg1 ;
3894 long arg2 ;
3895 long arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003896 if (!getilongarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003897 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003898 if (!getilongarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003899 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003900 if (!getilongarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003901 return NULL;
3902 rmvi( arg1 , arg2 , arg3 );
3903 Py_INCREF(Py_None);
3904 return Py_None;
3905}
3906
3907/* void rpdri long s long s long s */
3908
3909static PyObject *
3910gl_rpdri(self, args)
3911 PyObject *self;
3912 PyObject *args;
3913{
3914 long arg1 ;
3915 long arg2 ;
3916 long arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003917 if (!getilongarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003918 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003919 if (!getilongarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003920 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003921 if (!getilongarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003922 return NULL;
3923 rpdri( arg1 , arg2 , arg3 );
3924 Py_INCREF(Py_None);
3925 return Py_None;
3926}
3927
3928/* void rpmvi long s long s long s */
3929
3930static PyObject *
3931gl_rpmvi(self, args)
3932 PyObject *self;
3933 PyObject *args;
3934{
3935 long arg1 ;
3936 long arg2 ;
3937 long arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003938 if (!getilongarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003939 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003940 if (!getilongarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003941 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003942 if (!getilongarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003943 return NULL;
3944 rpmvi( arg1 , arg2 , arg3 );
3945 Py_INCREF(Py_None);
3946 return Py_None;
3947}
3948
3949/* void xfpti long s long s long s */
3950
3951static PyObject *
3952gl_xfpti(self, args)
3953 PyObject *self;
3954 PyObject *args;
3955{
3956 long arg1 ;
3957 long arg2 ;
3958 long arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003959 if (!getilongarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003960 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003961 if (!getilongarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003962 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003963 if (!getilongarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003964 return NULL;
3965 xfpti( arg1 , arg2 , arg3 );
3966 Py_INCREF(Py_None);
3967 return Py_None;
3968}
3969
3970/* void circ float s float s float s */
3971
3972static PyObject *
3973gl_circ(self, args)
3974 PyObject *self;
3975 PyObject *args;
3976{
3977 float arg1 ;
3978 float arg2 ;
3979 float arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003980 if (!getifloatarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003981 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003982 if (!getifloatarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003983 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003984 if (!getifloatarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003985 return NULL;
3986 circ( arg1 , arg2 , arg3 );
3987 Py_INCREF(Py_None);
3988 return Py_None;
3989}
3990
3991/* void circf float s float s float s */
3992
3993static PyObject *
3994gl_circf(self, args)
3995 PyObject *self;
3996 PyObject *args;
3997{
3998 float arg1 ;
3999 float arg2 ;
4000 float arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004001 if (!getifloatarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004002 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004003 if (!getifloatarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004004 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004005 if (!getifloatarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004006 return NULL;
4007 circf( arg1 , arg2 , arg3 );
4008 Py_INCREF(Py_None);
4009 return Py_None;
4010}
4011
4012/* void cmov float s float s float s */
4013
4014static PyObject *
4015gl_cmov(self, args)
4016 PyObject *self;
4017 PyObject *args;
4018{
4019 float arg1 ;
4020 float arg2 ;
4021 float arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004022 if (!getifloatarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004023 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004024 if (!getifloatarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004025 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004026 if (!getifloatarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004027 return NULL;
4028 cmov( arg1 , arg2 , arg3 );
4029 Py_INCREF(Py_None);
4030 return Py_None;
4031}
4032
4033/* void draw float s float s float s */
4034
4035static PyObject *
4036gl_draw(self, args)
4037 PyObject *self;
4038 PyObject *args;
4039{
4040 float arg1 ;
4041 float arg2 ;
4042 float arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004043 if (!getifloatarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004044 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004045 if (!getifloatarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004046 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004047 if (!getifloatarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004048 return NULL;
4049 draw( arg1 , arg2 , arg3 );
4050 Py_INCREF(Py_None);
4051 return Py_None;
4052}
4053
4054/* void move float s float s float s */
4055
4056static PyObject *
4057gl_move(self, args)
4058 PyObject *self;
4059 PyObject *args;
4060{
4061 float arg1 ;
4062 float arg2 ;
4063 float arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004064 if (!getifloatarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004065 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004066 if (!getifloatarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004067 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004068 if (!getifloatarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004069 return NULL;
4070 move( arg1 , arg2 , arg3 );
4071 Py_INCREF(Py_None);
4072 return Py_None;
4073}
4074
4075/* void pnt float s float s float s */
4076
4077static PyObject *
4078gl_pnt(self, args)
4079 PyObject *self;
4080 PyObject *args;
4081{
4082 float arg1 ;
4083 float arg2 ;
4084 float arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004085 if (!getifloatarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004086 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004087 if (!getifloatarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004088 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004089 if (!getifloatarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004090 return NULL;
4091 pnt( arg1 , arg2 , arg3 );
4092 Py_INCREF(Py_None);
4093 return Py_None;
4094}
4095
4096/* void scale float s float s float s */
4097
4098static PyObject *
4099gl_scale(self, args)
4100 PyObject *self;
4101 PyObject *args;
4102{
4103 float arg1 ;
4104 float arg2 ;
4105 float arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004106 if (!getifloatarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004107 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004108 if (!getifloatarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004109 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004110 if (!getifloatarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004111 return NULL;
4112 scale( arg1 , arg2 , arg3 );
4113 Py_INCREF(Py_None);
4114 return Py_None;
4115}
4116
4117/* void translate float s float s float s */
4118
4119static PyObject *
4120gl_translate(self, args)
4121 PyObject *self;
4122 PyObject *args;
4123{
4124 float arg1 ;
4125 float arg2 ;
4126 float arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004127 if (!getifloatarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004128 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004129 if (!getifloatarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004130 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004131 if (!getifloatarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004132 return NULL;
4133 translate( arg1 , arg2 , arg3 );
4134 Py_INCREF(Py_None);
4135 return Py_None;
4136}
4137
4138/* void pdr float s float s float s */
4139
4140static PyObject *
4141gl_pdr(self, args)
4142 PyObject *self;
4143 PyObject *args;
4144{
4145 float arg1 ;
4146 float arg2 ;
4147 float arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004148 if (!getifloatarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004149 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004150 if (!getifloatarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004151 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004152 if (!getifloatarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004153 return NULL;
4154 pdr( arg1 , arg2 , arg3 );
4155 Py_INCREF(Py_None);
4156 return Py_None;
4157}
4158
4159/* void pmv float s float s float s */
4160
4161static PyObject *
4162gl_pmv(self, args)
4163 PyObject *self;
4164 PyObject *args;
4165{
4166 float arg1 ;
4167 float arg2 ;
4168 float arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004169 if (!getifloatarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004170 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004171 if (!getifloatarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004172 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004173 if (!getifloatarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004174 return NULL;
4175 pmv( arg1 , arg2 , arg3 );
4176 Py_INCREF(Py_None);
4177 return Py_None;
4178}
4179
4180/* void rdr float s float s float s */
4181
4182static PyObject *
4183gl_rdr(self, args)
4184 PyObject *self;
4185 PyObject *args;
4186{
4187 float arg1 ;
4188 float arg2 ;
4189 float arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004190 if (!getifloatarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004191 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004192 if (!getifloatarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004193 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004194 if (!getifloatarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004195 return NULL;
4196 rdr( arg1 , arg2 , arg3 );
4197 Py_INCREF(Py_None);
4198 return Py_None;
4199}
4200
4201/* void rmv float s float s float s */
4202
4203static PyObject *
4204gl_rmv(self, args)
4205 PyObject *self;
4206 PyObject *args;
4207{
4208 float arg1 ;
4209 float arg2 ;
4210 float arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004211 if (!getifloatarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004212 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004213 if (!getifloatarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004214 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004215 if (!getifloatarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004216 return NULL;
4217 rmv( arg1 , arg2 , arg3 );
4218 Py_INCREF(Py_None);
4219 return Py_None;
4220}
4221
4222/* void rpdr float s float s float s */
4223
4224static PyObject *
4225gl_rpdr(self, args)
4226 PyObject *self;
4227 PyObject *args;
4228{
4229 float arg1 ;
4230 float arg2 ;
4231 float arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004232 if (!getifloatarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004233 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004234 if (!getifloatarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004235 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004236 if (!getifloatarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004237 return NULL;
4238 rpdr( arg1 , arg2 , arg3 );
4239 Py_INCREF(Py_None);
4240 return Py_None;
4241}
4242
4243/* void rpmv float s float s float s */
4244
4245static PyObject *
4246gl_rpmv(self, args)
4247 PyObject *self;
4248 PyObject *args;
4249{
4250 float arg1 ;
4251 float arg2 ;
4252 float arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004253 if (!getifloatarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004254 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004255 if (!getifloatarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004256 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004257 if (!getifloatarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004258 return NULL;
4259 rpmv( arg1 , arg2 , arg3 );
4260 Py_INCREF(Py_None);
4261 return Py_None;
4262}
4263
4264/* void xfpt float s float s float s */
4265
4266static PyObject *
4267gl_xfpt(self, args)
4268 PyObject *self;
4269 PyObject *args;
4270{
4271 float arg1 ;
4272 float arg2 ;
4273 float arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004274 if (!getifloatarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004275 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004276 if (!getifloatarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004277 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004278 if (!getifloatarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004279 return NULL;
4280 xfpt( arg1 , arg2 , arg3 );
4281 Py_INCREF(Py_None);
4282 return Py_None;
4283}
4284
4285/* void RGBcolor short s short s short s */
4286
4287static PyObject *
4288gl_RGBcolor(self, args)
4289 PyObject *self;
4290 PyObject *args;
4291{
4292 short arg1 ;
4293 short arg2 ;
4294 short arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004295 if (!getishortarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004296 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004297 if (!getishortarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004298 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004299 if (!getishortarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004300 return NULL;
4301 RGBcolor( arg1 , arg2 , arg3 );
4302 Py_INCREF(Py_None);
4303 return Py_None;
4304}
4305
4306/* void RGBwritemask short s short s short s */
4307
4308static PyObject *
4309gl_RGBwritemask(self, args)
4310 PyObject *self;
4311 PyObject *args;
4312{
4313 short arg1 ;
4314 short arg2 ;
4315 short arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004316 if (!getishortarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004317 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004318 if (!getishortarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004319 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004320 if (!getishortarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004321 return NULL;
4322 RGBwritemask( arg1 , arg2 , arg3 );
4323 Py_INCREF(Py_None);
4324 return Py_None;
4325}
4326
4327/* void setcursor short s short s short s */
4328
4329static PyObject *
4330gl_setcursor(self, args)
4331 PyObject *self;
4332 PyObject *args;
4333{
4334 short arg1 ;
4335 short arg2 ;
4336 short arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004337 if (!getishortarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004338 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004339 if (!getishortarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004340 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004341 if (!getishortarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004342 return NULL;
4343 setcursor( arg1 , arg2 , arg3 );
4344 Py_INCREF(Py_None);
4345 return Py_None;
4346}
4347
4348/* void tie short s short s short s */
4349
4350static PyObject *
4351gl_tie(self, args)
4352 PyObject *self;
4353 PyObject *args;
4354{
4355 short arg1 ;
4356 short arg2 ;
4357 short arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004358 if (!getishortarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004359 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004360 if (!getishortarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004361 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004362 if (!getishortarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004363 return NULL;
4364 tie( arg1 , arg2 , arg3 );
4365 Py_INCREF(Py_None);
4366 return Py_None;
4367}
4368
4369/* void circfs short s short s short s */
4370
4371static PyObject *
4372gl_circfs(self, args)
4373 PyObject *self;
4374 PyObject *args;
4375{
4376 short arg1 ;
4377 short arg2 ;
4378 short arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004379 if (!getishortarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004380 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004381 if (!getishortarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004382 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004383 if (!getishortarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004384 return NULL;
4385 circfs( arg1 , arg2 , arg3 );
4386 Py_INCREF(Py_None);
4387 return Py_None;
4388}
4389
4390/* void circs short s short s short s */
4391
4392static PyObject *
4393gl_circs(self, args)
4394 PyObject *self;
4395 PyObject *args;
4396{
4397 short arg1 ;
4398 short arg2 ;
4399 short arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004400 if (!getishortarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004401 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004402 if (!getishortarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004403 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004404 if (!getishortarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004405 return NULL;
4406 circs( arg1 , arg2 , arg3 );
4407 Py_INCREF(Py_None);
4408 return Py_None;
4409}
4410
4411/* void cmovs short s short s short s */
4412
4413static PyObject *
4414gl_cmovs(self, args)
4415 PyObject *self;
4416 PyObject *args;
4417{
4418 short arg1 ;
4419 short arg2 ;
4420 short arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004421 if (!getishortarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004422 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004423 if (!getishortarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004424 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004425 if (!getishortarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004426 return NULL;
4427 cmovs( arg1 , arg2 , arg3 );
4428 Py_INCREF(Py_None);
4429 return Py_None;
4430}
4431
4432/* void draws short s short s short s */
4433
4434static PyObject *
4435gl_draws(self, args)
4436 PyObject *self;
4437 PyObject *args;
4438{
4439 short arg1 ;
4440 short arg2 ;
4441 short arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004442 if (!getishortarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004443 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004444 if (!getishortarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004445 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004446 if (!getishortarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004447 return NULL;
4448 draws( arg1 , arg2 , arg3 );
4449 Py_INCREF(Py_None);
4450 return Py_None;
4451}
4452
4453/* void moves short s short s short s */
4454
4455static PyObject *
4456gl_moves(self, args)
4457 PyObject *self;
4458 PyObject *args;
4459{
4460 short arg1 ;
4461 short arg2 ;
4462 short arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004463 if (!getishortarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004464 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004465 if (!getishortarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004466 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004467 if (!getishortarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004468 return NULL;
4469 moves( arg1 , arg2 , arg3 );
4470 Py_INCREF(Py_None);
4471 return Py_None;
4472}
4473
4474/* void pdrs short s short s short s */
4475
4476static PyObject *
4477gl_pdrs(self, args)
4478 PyObject *self;
4479 PyObject *args;
4480{
4481 short arg1 ;
4482 short arg2 ;
4483 short arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004484 if (!getishortarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004485 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004486 if (!getishortarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004487 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004488 if (!getishortarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004489 return NULL;
4490 pdrs( arg1 , arg2 , arg3 );
4491 Py_INCREF(Py_None);
4492 return Py_None;
4493}
4494
4495/* void pmvs short s short s short s */
4496
4497static PyObject *
4498gl_pmvs(self, args)
4499 PyObject *self;
4500 PyObject *args;
4501{
4502 short arg1 ;
4503 short arg2 ;
4504 short arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004505 if (!getishortarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004506 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004507 if (!getishortarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004508 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004509 if (!getishortarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004510 return NULL;
4511 pmvs( arg1 , arg2 , arg3 );
4512 Py_INCREF(Py_None);
4513 return Py_None;
4514}
4515
4516/* void pnts short s short s short s */
4517
4518static PyObject *
4519gl_pnts(self, args)
4520 PyObject *self;
4521 PyObject *args;
4522{
4523 short arg1 ;
4524 short arg2 ;
4525 short arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004526 if (!getishortarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004527 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004528 if (!getishortarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004529 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004530 if (!getishortarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004531 return NULL;
4532 pnts( arg1 , arg2 , arg3 );
4533 Py_INCREF(Py_None);
4534 return Py_None;
4535}
4536
4537/* void rdrs short s short s short s */
4538
4539static PyObject *
4540gl_rdrs(self, args)
4541 PyObject *self;
4542 PyObject *args;
4543{
4544 short arg1 ;
4545 short arg2 ;
4546 short arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004547 if (!getishortarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004548 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004549 if (!getishortarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004550 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004551 if (!getishortarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004552 return NULL;
4553 rdrs( arg1 , arg2 , arg3 );
4554 Py_INCREF(Py_None);
4555 return Py_None;
4556}
4557
4558/* void rmvs short s short s short s */
4559
4560static PyObject *
4561gl_rmvs(self, args)
4562 PyObject *self;
4563 PyObject *args;
4564{
4565 short arg1 ;
4566 short arg2 ;
4567 short arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004568 if (!getishortarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004569 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004570 if (!getishortarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004571 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004572 if (!getishortarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004573 return NULL;
4574 rmvs( arg1 , arg2 , arg3 );
4575 Py_INCREF(Py_None);
4576 return Py_None;
4577}
4578
4579/* void rpdrs short s short s short s */
4580
4581static PyObject *
4582gl_rpdrs(self, args)
4583 PyObject *self;
4584 PyObject *args;
4585{
4586 short arg1 ;
4587 short arg2 ;
4588 short arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004589 if (!getishortarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004590 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004591 if (!getishortarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004592 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004593 if (!getishortarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004594 return NULL;
4595 rpdrs( arg1 , arg2 , arg3 );
4596 Py_INCREF(Py_None);
4597 return Py_None;
4598}
4599
4600/* void rpmvs short s short s short s */
4601
4602static PyObject *
4603gl_rpmvs(self, args)
4604 PyObject *self;
4605 PyObject *args;
4606{
4607 short arg1 ;
4608 short arg2 ;
4609 short arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004610 if (!getishortarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004611 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004612 if (!getishortarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004613 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004614 if (!getishortarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004615 return NULL;
4616 rpmvs( arg1 , arg2 , arg3 );
4617 Py_INCREF(Py_None);
4618 return Py_None;
4619}
4620
4621/* void xfpts short s short s short s */
4622
4623static PyObject *
4624gl_xfpts(self, args)
4625 PyObject *self;
4626 PyObject *args;
4627{
4628 short arg1 ;
4629 short arg2 ;
4630 short arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004631 if (!getishortarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004632 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004633 if (!getishortarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004634 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004635 if (!getishortarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004636 return NULL;
4637 xfpts( arg1 , arg2 , arg3 );
4638 Py_INCREF(Py_None);
4639 return Py_None;
4640}
4641
4642/* void curorigin short s short s short s */
4643
4644static PyObject *
4645gl_curorigin(self, args)
4646 PyObject *self;
4647 PyObject *args;
4648{
4649 short arg1 ;
4650 short arg2 ;
4651 short arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004652 if (!getishortarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004653 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004654 if (!getishortarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004655 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004656 if (!getishortarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004657 return NULL;
4658 curorigin( arg1 , arg2 , arg3 );
4659 Py_INCREF(Py_None);
4660 return Py_None;
4661}
4662
4663/* void cyclemap short s short s short s */
4664
4665static PyObject *
4666gl_cyclemap(self, args)
4667 PyObject *self;
4668 PyObject *args;
4669{
4670 short arg1 ;
4671 short arg2 ;
4672 short arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004673 if (!getishortarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004674 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004675 if (!getishortarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004676 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004677 if (!getishortarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004678 return NULL;
4679 cyclemap( arg1 , arg2 , arg3 );
4680 Py_INCREF(Py_None);
4681 return Py_None;
4682}
4683
4684/* void patch float s[4*4] float s[4*4] float s[4*4] */
4685
4686static PyObject *
4687gl_patch(self, args)
4688 PyObject *self;
4689 PyObject *args;
4690{
4691 float arg1 [ 4 ] [ 4 ] ;
4692 float arg2 [ 4 ] [ 4 ] ;
4693 float arg3 [ 4 ] [ 4 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004694 if (!getifloatarray(args, 3, 0, 4 * 4 , (float *) arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004695 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004696 if (!getifloatarray(args, 3, 1, 4 * 4 , (float *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004697 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004698 if (!getifloatarray(args, 3, 2, 4 * 4 , (float *) arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004699 return NULL;
4700 patch( arg1 , arg2 , arg3 );
4701 Py_INCREF(Py_None);
4702 return Py_None;
4703}
4704
4705/* void splf long s float s[3*arg1] u_short s[arg1] */
4706
4707static PyObject *
4708gl_splf(self, args)
4709 PyObject *self;
4710 PyObject *args;
4711{
4712 long arg1 ;
4713 float (* arg2) [ 3 ] ;
4714 unsigned short * arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004715 if (!getilongarraysize(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004716 return NULL;
4717 arg1 = arg1 / 3;
4718 if ((arg2 = (float(*)[3]) PyMem_NEW(float , 3 * arg1 )) == NULL)
4719 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00004720 if (!getifloatarray(args, 2, 0, 3 * arg1 , (float *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004721 return NULL;
4722 if ((arg3 = PyMem_NEW(unsigned short , arg1 )) == NULL)
4723 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00004724 if (!getishortarray(args, 2, 1, arg1 , (short *) arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004725 return NULL;
4726 splf( arg1 , arg2 , arg3 );
4727 PyMem_DEL(arg2);
4728 PyMem_DEL(arg3);
4729 Py_INCREF(Py_None);
4730 return Py_None;
4731}
4732
4733/* void splf2 long s float s[2*arg1] u_short s[arg1] */
4734
4735static PyObject *
4736gl_splf2(self, args)
4737 PyObject *self;
4738 PyObject *args;
4739{
4740 long arg1 ;
4741 float (* arg2) [ 2 ] ;
4742 unsigned short * arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004743 if (!getilongarraysize(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004744 return NULL;
4745 arg1 = arg1 / 2;
4746 if ((arg2 = (float(*)[2]) PyMem_NEW(float , 2 * arg1 )) == NULL)
4747 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00004748 if (!getifloatarray(args, 2, 0, 2 * arg1 , (float *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004749 return NULL;
4750 if ((arg3 = PyMem_NEW(unsigned short , arg1 )) == NULL)
4751 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00004752 if (!getishortarray(args, 2, 1, arg1 , (short *) arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004753 return NULL;
4754 splf2( arg1 , arg2 , arg3 );
4755 PyMem_DEL(arg2);
4756 PyMem_DEL(arg3);
4757 Py_INCREF(Py_None);
4758 return Py_None;
4759}
4760
4761/* void splfi long s long s[3*arg1] u_short s[arg1] */
4762
4763static PyObject *
4764gl_splfi(self, args)
4765 PyObject *self;
4766 PyObject *args;
4767{
4768 long arg1 ;
4769 long (* arg2) [ 3 ] ;
4770 unsigned short * arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004771 if (!getilongarraysize(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004772 return NULL;
4773 arg1 = arg1 / 3;
4774 if ((arg2 = (long(*)[3]) PyMem_NEW(long , 3 * arg1 )) == NULL)
4775 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00004776 if (!getilongarray(args, 2, 0, 3 * arg1 , (long *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004777 return NULL;
4778 if ((arg3 = PyMem_NEW(unsigned short , arg1 )) == NULL)
4779 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00004780 if (!getishortarray(args, 2, 1, arg1 , (short *) arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004781 return NULL;
4782 splfi( arg1 , arg2 , arg3 );
4783 PyMem_DEL(arg2);
4784 PyMem_DEL(arg3);
4785 Py_INCREF(Py_None);
4786 return Py_None;
4787}
4788
4789/* void splf2i long s long s[2*arg1] u_short s[arg1] */
4790
4791static PyObject *
4792gl_splf2i(self, args)
4793 PyObject *self;
4794 PyObject *args;
4795{
4796 long arg1 ;
4797 long (* arg2) [ 2 ] ;
4798 unsigned short * arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004799 if (!getilongarraysize(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004800 return NULL;
4801 arg1 = arg1 / 2;
4802 if ((arg2 = (long(*)[2]) PyMem_NEW(long , 2 * arg1 )) == NULL)
4803 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00004804 if (!getilongarray(args, 2, 0, 2 * arg1 , (long *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004805 return NULL;
4806 if ((arg3 = PyMem_NEW(unsigned short , arg1 )) == NULL)
4807 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00004808 if (!getishortarray(args, 2, 1, arg1 , (short *) arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004809 return NULL;
4810 splf2i( arg1 , arg2 , arg3 );
4811 PyMem_DEL(arg2);
4812 PyMem_DEL(arg3);
4813 Py_INCREF(Py_None);
4814 return Py_None;
4815}
4816
4817/* void splfs long s short s[3*arg1] u_short s[arg1] */
4818
4819static PyObject *
4820gl_splfs(self, args)
4821 PyObject *self;
4822 PyObject *args;
4823{
4824 long arg1 ;
4825 short (* arg2) [ 3 ] ;
4826 unsigned short * arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004827 if (!getilongarraysize(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004828 return NULL;
4829 arg1 = arg1 / 3;
4830 if ((arg2 = (short(*)[3]) PyMem_NEW(short , 3 * arg1 )) == NULL)
4831 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00004832 if (!getishortarray(args, 2, 0, 3 * arg1 , (short *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004833 return NULL;
4834 if ((arg3 = PyMem_NEW(unsigned short , arg1 )) == NULL)
4835 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00004836 if (!getishortarray(args, 2, 1, arg1 , (short *) arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004837 return NULL;
4838 splfs( arg1 , arg2 , arg3 );
4839 PyMem_DEL(arg2);
4840 PyMem_DEL(arg3);
4841 Py_INCREF(Py_None);
4842 return Py_None;
4843}
4844
4845/* void splf2s long s short s[2*arg1] u_short s[arg1] */
4846
4847static PyObject *
4848gl_splf2s(self, args)
4849 PyObject *self;
4850 PyObject *args;
4851{
4852 long arg1 ;
4853 short (* arg2) [ 2 ] ;
4854 unsigned short * arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004855 if (!getilongarraysize(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004856 return NULL;
4857 arg1 = arg1 / 2;
4858 if ((arg2 = (short(*)[2]) PyMem_NEW(short , 2 * arg1 )) == NULL)
4859 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00004860 if (!getishortarray(args, 2, 0, 2 * arg1 , (short *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004861 return NULL;
4862 if ((arg3 = PyMem_NEW(unsigned short , arg1 )) == NULL)
4863 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00004864 if (!getishortarray(args, 2, 1, arg1 , (short *) arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004865 return NULL;
4866 splf2s( arg1 , arg2 , arg3 );
4867 PyMem_DEL(arg2);
4868 PyMem_DEL(arg3);
4869 Py_INCREF(Py_None);
4870 return Py_None;
4871}
4872
4873/* void rpatch float s[4*4] float s[4*4] float s[4*4] float s[4*4] */
4874
4875static PyObject *
4876gl_rpatch(self, args)
4877 PyObject *self;
4878 PyObject *args;
4879{
4880 float arg1 [ 4 ] [ 4 ] ;
4881 float arg2 [ 4 ] [ 4 ] ;
4882 float arg3 [ 4 ] [ 4 ] ;
4883 float arg4 [ 4 ] [ 4 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004884 if (!getifloatarray(args, 4, 0, 4 * 4 , (float *) arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004885 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004886 if (!getifloatarray(args, 4, 1, 4 * 4 , (float *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004887 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004888 if (!getifloatarray(args, 4, 2, 4 * 4 , (float *) arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004889 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004890 if (!getifloatarray(args, 4, 3, 4 * 4 , (float *) arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004891 return NULL;
4892 rpatch( arg1 , arg2 , arg3 , arg4 );
4893 Py_INCREF(Py_None);
4894 return Py_None;
4895}
4896
4897/* void ortho2 float s float s float s float s */
4898
4899static PyObject *
4900gl_ortho2(self, args)
4901 PyObject *self;
4902 PyObject *args;
4903{
4904 float arg1 ;
4905 float arg2 ;
4906 float arg3 ;
4907 float arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004908 if (!getifloatarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004909 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004910 if (!getifloatarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004911 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004912 if (!getifloatarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004913 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004914 if (!getifloatarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004915 return NULL;
4916 ortho2( arg1 , arg2 , arg3 , arg4 );
4917 Py_INCREF(Py_None);
4918 return Py_None;
4919}
4920
4921/* void rect float s float s float s float s */
4922
4923static PyObject *
4924gl_rect(self, args)
4925 PyObject *self;
4926 PyObject *args;
4927{
4928 float arg1 ;
4929 float arg2 ;
4930 float arg3 ;
4931 float arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004932 if (!getifloatarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004933 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004934 if (!getifloatarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004935 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004936 if (!getifloatarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004937 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004938 if (!getifloatarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004939 return NULL;
4940 rect( arg1 , arg2 , arg3 , arg4 );
4941 Py_INCREF(Py_None);
4942 return Py_None;
4943}
4944
4945/* void rectf float s float s float s float s */
4946
4947static PyObject *
4948gl_rectf(self, args)
4949 PyObject *self;
4950 PyObject *args;
4951{
4952 float arg1 ;
4953 float arg2 ;
4954 float arg3 ;
4955 float arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004956 if (!getifloatarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004957 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004958 if (!getifloatarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004959 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004960 if (!getifloatarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004961 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004962 if (!getifloatarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004963 return NULL;
4964 rectf( arg1 , arg2 , arg3 , arg4 );
4965 Py_INCREF(Py_None);
4966 return Py_None;
4967}
4968
4969/* void xfpt4 float s float s float s float s */
4970
4971static PyObject *
4972gl_xfpt4(self, args)
4973 PyObject *self;
4974 PyObject *args;
4975{
4976 float arg1 ;
4977 float arg2 ;
4978 float arg3 ;
4979 float arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004980 if (!getifloatarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004981 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004982 if (!getifloatarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004983 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004984 if (!getifloatarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004985 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004986 if (!getifloatarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004987 return NULL;
4988 xfpt4( arg1 , arg2 , arg3 , arg4 );
4989 Py_INCREF(Py_None);
4990 return Py_None;
4991}
4992
4993/* void textport short s short s short s short s */
4994
4995static PyObject *
4996gl_textport(self, args)
4997 PyObject *self;
4998 PyObject *args;
4999{
5000 short arg1 ;
5001 short arg2 ;
5002 short arg3 ;
5003 short arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005004 if (!getishortarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005005 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005006 if (!getishortarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005007 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005008 if (!getishortarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005009 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005010 if (!getishortarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005011 return NULL;
5012 textport( arg1 , arg2 , arg3 , arg4 );
5013 Py_INCREF(Py_None);
5014 return Py_None;
5015}
5016
5017/* void mapcolor short s short s short s short s */
5018
5019static PyObject *
5020gl_mapcolor(self, args)
5021 PyObject *self;
5022 PyObject *args;
5023{
5024 short arg1 ;
5025 short arg2 ;
5026 short arg3 ;
5027 short arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005028 if (!getishortarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005029 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005030 if (!getishortarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005031 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005032 if (!getishortarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005033 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005034 if (!getishortarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005035 return NULL;
5036 mapcolor( arg1 , arg2 , arg3 , arg4 );
5037 Py_INCREF(Py_None);
5038 return Py_None;
5039}
5040
5041/* void scrmask short s short s short s short s */
5042
5043static PyObject *
5044gl_scrmask(self, args)
5045 PyObject *self;
5046 PyObject *args;
5047{
5048 short arg1 ;
5049 short arg2 ;
5050 short arg3 ;
5051 short arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005052 if (!getishortarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005053 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005054 if (!getishortarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005055 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005056 if (!getishortarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005057 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005058 if (!getishortarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005059 return NULL;
5060 scrmask( arg1 , arg2 , arg3 , arg4 );
5061 Py_INCREF(Py_None);
5062 return Py_None;
5063}
5064
5065/* void setvaluator short s short s short s short s */
5066
5067static PyObject *
5068gl_setvaluator(self, args)
5069 PyObject *self;
5070 PyObject *args;
5071{
5072 short arg1 ;
5073 short arg2 ;
5074 short arg3 ;
5075 short arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005076 if (!getishortarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005077 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005078 if (!getishortarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005079 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005080 if (!getishortarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005081 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005082 if (!getishortarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005083 return NULL;
5084 setvaluator( arg1 , arg2 , arg3 , arg4 );
5085 Py_INCREF(Py_None);
5086 return Py_None;
5087}
5088
5089/* void viewport short s short s short s short s */
5090
5091static PyObject *
5092gl_viewport(self, args)
5093 PyObject *self;
5094 PyObject *args;
5095{
5096 short arg1 ;
5097 short arg2 ;
5098 short arg3 ;
5099 short arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005100 if (!getishortarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005101 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005102 if (!getishortarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005103 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005104 if (!getishortarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005105 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005106 if (!getishortarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005107 return NULL;
5108 viewport( arg1 , arg2 , arg3 , arg4 );
5109 Py_INCREF(Py_None);
5110 return Py_None;
5111}
5112
5113/* void shaderange short s short s short s short s */
5114
5115static PyObject *
5116gl_shaderange(self, args)
5117 PyObject *self;
5118 PyObject *args;
5119{
5120 short arg1 ;
5121 short arg2 ;
5122 short arg3 ;
5123 short arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005124 if (!getishortarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005125 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005126 if (!getishortarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005127 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005128 if (!getishortarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005129 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005130 if (!getishortarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005131 return NULL;
5132 shaderange( arg1 , arg2 , arg3 , arg4 );
5133 Py_INCREF(Py_None);
5134 return Py_None;
5135}
5136
5137/* void xfpt4s short s short s short s short s */
5138
5139static PyObject *
5140gl_xfpt4s(self, args)
5141 PyObject *self;
5142 PyObject *args;
5143{
5144 short arg1 ;
5145 short arg2 ;
5146 short arg3 ;
5147 short arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005148 if (!getishortarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005149 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005150 if (!getishortarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005151 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005152 if (!getishortarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005153 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005154 if (!getishortarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005155 return NULL;
5156 xfpt4s( arg1 , arg2 , arg3 , arg4 );
5157 Py_INCREF(Py_None);
5158 return Py_None;
5159}
5160
5161/* void rectfi long s long s long s long s */
5162
5163static PyObject *
5164gl_rectfi(self, args)
5165 PyObject *self;
5166 PyObject *args;
5167{
5168 long arg1 ;
5169 long arg2 ;
5170 long arg3 ;
5171 long arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005172 if (!getilongarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005173 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005174 if (!getilongarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005175 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005176 if (!getilongarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005177 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005178 if (!getilongarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005179 return NULL;
5180 rectfi( arg1 , arg2 , arg3 , arg4 );
5181 Py_INCREF(Py_None);
5182 return Py_None;
5183}
5184
5185/* void recti long s long s long s long s */
5186
5187static PyObject *
5188gl_recti(self, args)
5189 PyObject *self;
5190 PyObject *args;
5191{
5192 long arg1 ;
5193 long arg2 ;
5194 long arg3 ;
5195 long arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005196 if (!getilongarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005197 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005198 if (!getilongarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005199 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005200 if (!getilongarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005201 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005202 if (!getilongarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005203 return NULL;
5204 recti( arg1 , arg2 , arg3 , arg4 );
5205 Py_INCREF(Py_None);
5206 return Py_None;
5207}
5208
5209/* void xfpt4i long s long s long s long s */
5210
5211static PyObject *
5212gl_xfpt4i(self, args)
5213 PyObject *self;
5214 PyObject *args;
5215{
5216 long arg1 ;
5217 long arg2 ;
5218 long arg3 ;
5219 long arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005220 if (!getilongarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005221 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005222 if (!getilongarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005223 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005224 if (!getilongarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005225 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005226 if (!getilongarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005227 return NULL;
5228 xfpt4i( arg1 , arg2 , arg3 , arg4 );
5229 Py_INCREF(Py_None);
5230 return Py_None;
5231}
5232
5233/* void prefposition long s long s long s long s */
5234
5235static PyObject *
5236gl_prefposition(self, args)
5237 PyObject *self;
5238 PyObject *args;
5239{
5240 long arg1 ;
5241 long arg2 ;
5242 long arg3 ;
5243 long arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005244 if (!getilongarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005245 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005246 if (!getilongarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005247 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005248 if (!getilongarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005249 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005250 if (!getilongarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005251 return NULL;
5252 prefposition( arg1 , arg2 , arg3 , arg4 );
5253 Py_INCREF(Py_None);
5254 return Py_None;
5255}
5256
5257/* void arc float s float s float s short s short s */
5258
5259static PyObject *
5260gl_arc(self, args)
5261 PyObject *self;
5262 PyObject *args;
5263{
5264 float arg1 ;
5265 float arg2 ;
5266 float arg3 ;
5267 short arg4 ;
5268 short arg5 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005269 if (!getifloatarg(args, 5, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005270 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005271 if (!getifloatarg(args, 5, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005272 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005273 if (!getifloatarg(args, 5, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005274 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005275 if (!getishortarg(args, 5, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005276 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005277 if (!getishortarg(args, 5, 4, &arg5))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005278 return NULL;
5279 arc( arg1 , arg2 , arg3 , arg4 , arg5 );
5280 Py_INCREF(Py_None);
5281 return Py_None;
5282}
5283
5284/* void arcf float s float s float s short s short s */
5285
5286static PyObject *
5287gl_arcf(self, args)
5288 PyObject *self;
5289 PyObject *args;
5290{
5291 float arg1 ;
5292 float arg2 ;
5293 float arg3 ;
5294 short arg4 ;
5295 short arg5 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005296 if (!getifloatarg(args, 5, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005297 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005298 if (!getifloatarg(args, 5, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005299 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005300 if (!getifloatarg(args, 5, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005301 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005302 if (!getishortarg(args, 5, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005303 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005304 if (!getishortarg(args, 5, 4, &arg5))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005305 return NULL;
5306 arcf( arg1 , arg2 , arg3 , arg4 , arg5 );
5307 Py_INCREF(Py_None);
5308 return Py_None;
5309}
5310
5311/* void arcfi long s long s long s short s short s */
5312
5313static PyObject *
5314gl_arcfi(self, args)
5315 PyObject *self;
5316 PyObject *args;
5317{
5318 long arg1 ;
5319 long arg2 ;
5320 long arg3 ;
5321 short arg4 ;
5322 short arg5 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005323 if (!getilongarg(args, 5, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005324 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005325 if (!getilongarg(args, 5, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005326 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005327 if (!getilongarg(args, 5, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005328 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005329 if (!getishortarg(args, 5, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005330 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005331 if (!getishortarg(args, 5, 4, &arg5))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005332 return NULL;
5333 arcfi( arg1 , arg2 , arg3 , arg4 , arg5 );
5334 Py_INCREF(Py_None);
5335 return Py_None;
5336}
5337
5338/* void arci long s long s long s short s short s */
5339
5340static PyObject *
5341gl_arci(self, args)
5342 PyObject *self;
5343 PyObject *args;
5344{
5345 long arg1 ;
5346 long arg2 ;
5347 long arg3 ;
5348 short arg4 ;
5349 short arg5 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005350 if (!getilongarg(args, 5, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005351 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005352 if (!getilongarg(args, 5, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005353 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005354 if (!getilongarg(args, 5, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005355 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005356 if (!getishortarg(args, 5, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005357 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005358 if (!getishortarg(args, 5, 4, &arg5))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005359 return NULL;
5360 arci( arg1 , arg2 , arg3 , arg4 , arg5 );
5361 Py_INCREF(Py_None);
5362 return Py_None;
5363}
5364
5365/* void bbox2 short s short s float s float s float s float s */
5366
5367static PyObject *
5368gl_bbox2(self, args)
5369 PyObject *self;
5370 PyObject *args;
5371{
5372 short arg1 ;
5373 short arg2 ;
5374 float arg3 ;
5375 float arg4 ;
5376 float arg5 ;
5377 float arg6 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005378 if (!getishortarg(args, 6, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005379 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005380 if (!getishortarg(args, 6, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005381 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005382 if (!getifloatarg(args, 6, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005383 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005384 if (!getifloatarg(args, 6, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005385 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005386 if (!getifloatarg(args, 6, 4, &arg5))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005387 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005388 if (!getifloatarg(args, 6, 5, &arg6))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005389 return NULL;
5390 bbox2( arg1 , arg2 , arg3 , arg4 , arg5 , arg6 );
5391 Py_INCREF(Py_None);
5392 return Py_None;
5393}
5394
5395/* void bbox2i short s short s long s long s long s long s */
5396
5397static PyObject *
5398gl_bbox2i(self, args)
5399 PyObject *self;
5400 PyObject *args;
5401{
5402 short arg1 ;
5403 short arg2 ;
5404 long arg3 ;
5405 long arg4 ;
5406 long arg5 ;
5407 long arg6 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005408 if (!getishortarg(args, 6, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005409 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005410 if (!getishortarg(args, 6, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005411 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005412 if (!getilongarg(args, 6, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005413 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005414 if (!getilongarg(args, 6, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005415 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005416 if (!getilongarg(args, 6, 4, &arg5))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005417 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005418 if (!getilongarg(args, 6, 5, &arg6))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005419 return NULL;
5420 bbox2i( arg1 , arg2 , arg3 , arg4 , arg5 , arg6 );
5421 Py_INCREF(Py_None);
5422 return Py_None;
5423}
5424
5425/* void bbox2s short s short s short s short s short s short s */
5426
5427static PyObject *
5428gl_bbox2s(self, args)
5429 PyObject *self;
5430 PyObject *args;
5431{
5432 short arg1 ;
5433 short arg2 ;
5434 short arg3 ;
5435 short arg4 ;
5436 short arg5 ;
5437 short arg6 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005438 if (!getishortarg(args, 6, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005439 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005440 if (!getishortarg(args, 6, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005441 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005442 if (!getishortarg(args, 6, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005443 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005444 if (!getishortarg(args, 6, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005445 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005446 if (!getishortarg(args, 6, 4, &arg5))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005447 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005448 if (!getishortarg(args, 6, 5, &arg6))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005449 return NULL;
5450 bbox2s( arg1 , arg2 , arg3 , arg4 , arg5 , arg6 );
5451 Py_INCREF(Py_None);
5452 return Py_None;
5453}
5454
5455/* void blink short s short s short s short s short s */
5456
5457static PyObject *
5458gl_blink(self, args)
5459 PyObject *self;
5460 PyObject *args;
5461{
5462 short arg1 ;
5463 short arg2 ;
5464 short arg3 ;
5465 short arg4 ;
5466 short arg5 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005467 if (!getishortarg(args, 5, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005468 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005469 if (!getishortarg(args, 5, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005470 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005471 if (!getishortarg(args, 5, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005472 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005473 if (!getishortarg(args, 5, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005474 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005475 if (!getishortarg(args, 5, 4, &arg5))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005476 return NULL;
5477 blink( arg1 , arg2 , arg3 , arg4 , arg5 );
5478 Py_INCREF(Py_None);
5479 return Py_None;
5480}
5481
5482/* void ortho float s float s float s float s float s float s */
5483
5484static PyObject *
5485gl_ortho(self, args)
5486 PyObject *self;
5487 PyObject *args;
5488{
5489 float arg1 ;
5490 float arg2 ;
5491 float arg3 ;
5492 float arg4 ;
5493 float arg5 ;
5494 float arg6 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005495 if (!getifloatarg(args, 6, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005496 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005497 if (!getifloatarg(args, 6, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005498 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005499 if (!getifloatarg(args, 6, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005500 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005501 if (!getifloatarg(args, 6, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005502 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005503 if (!getifloatarg(args, 6, 4, &arg5))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005504 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005505 if (!getifloatarg(args, 6, 5, &arg6))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005506 return NULL;
5507 ortho( arg1 , arg2 , arg3 , arg4 , arg5 , arg6 );
5508 Py_INCREF(Py_None);
5509 return Py_None;
5510}
5511
5512/* void window float s float s float s float s float s float s */
5513
5514static PyObject *
5515gl_window(self, args)
5516 PyObject *self;
5517 PyObject *args;
5518{
5519 float arg1 ;
5520 float arg2 ;
5521 float arg3 ;
5522 float arg4 ;
5523 float arg5 ;
5524 float arg6 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005525 if (!getifloatarg(args, 6, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005526 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005527 if (!getifloatarg(args, 6, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005528 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005529 if (!getifloatarg(args, 6, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005530 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005531 if (!getifloatarg(args, 6, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005532 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005533 if (!getifloatarg(args, 6, 4, &arg5))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005534 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005535 if (!getifloatarg(args, 6, 5, &arg6))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005536 return NULL;
5537 window( arg1 , arg2 , arg3 , arg4 , arg5 , arg6 );
5538 Py_INCREF(Py_None);
5539 return Py_None;
5540}
5541
5542/* void lookat float s float s float s float s float s float s short s */
5543
5544static PyObject *
5545gl_lookat(self, args)
5546 PyObject *self;
5547 PyObject *args;
5548{
5549 float arg1 ;
5550 float arg2 ;
5551 float arg3 ;
5552 float arg4 ;
5553 float arg5 ;
5554 float arg6 ;
5555 short arg7 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005556 if (!getifloatarg(args, 7, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005557 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005558 if (!getifloatarg(args, 7, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005559 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005560 if (!getifloatarg(args, 7, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005561 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005562 if (!getifloatarg(args, 7, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005563 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005564 if (!getifloatarg(args, 7, 4, &arg5))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005565 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005566 if (!getifloatarg(args, 7, 5, &arg6))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005567 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005568 if (!getishortarg(args, 7, 6, &arg7))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005569 return NULL;
5570 lookat( arg1 , arg2 , arg3 , arg4 , arg5 , arg6 , arg7 );
5571 Py_INCREF(Py_None);
5572 return Py_None;
5573}
5574
5575/* void perspective short s float s float s float s */
5576
5577static PyObject *
5578gl_perspective(self, args)
5579 PyObject *self;
5580 PyObject *args;
5581{
5582 short arg1 ;
5583 float arg2 ;
5584 float arg3 ;
5585 float arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005586 if (!getishortarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005587 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005588 if (!getifloatarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005589 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005590 if (!getifloatarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005591 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005592 if (!getifloatarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005593 return NULL;
5594 perspective( arg1 , arg2 , arg3 , arg4 );
5595 Py_INCREF(Py_None);
5596 return Py_None;
5597}
5598
5599/* void polarview float s short s short s short s */
5600
5601static PyObject *
5602gl_polarview(self, args)
5603 PyObject *self;
5604 PyObject *args;
5605{
5606 float arg1 ;
5607 short arg2 ;
5608 short arg3 ;
5609 short arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005610 if (!getifloatarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005611 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005612 if (!getishortarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005613 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005614 if (!getishortarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005615 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005616 if (!getishortarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005617 return NULL;
5618 polarview( arg1 , arg2 , arg3 , arg4 );
5619 Py_INCREF(Py_None);
5620 return Py_None;
5621}
5622
5623/* void arcfs short s short s short s short s short s */
5624
5625static PyObject *
5626gl_arcfs(self, args)
5627 PyObject *self;
5628 PyObject *args;
5629{
5630 short arg1 ;
5631 short arg2 ;
5632 short arg3 ;
5633 short arg4 ;
5634 short arg5 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005635 if (!getishortarg(args, 5, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005636 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005637 if (!getishortarg(args, 5, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005638 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005639 if (!getishortarg(args, 5, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005640 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005641 if (!getishortarg(args, 5, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005642 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005643 if (!getishortarg(args, 5, 4, &arg5))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005644 return NULL;
5645 arcfs( arg1 , arg2 , arg3 , arg4 , arg5 );
5646 Py_INCREF(Py_None);
5647 return Py_None;
5648}
5649
5650/* void arcs short s short s short s short s short s */
5651
5652static PyObject *
5653gl_arcs(self, args)
5654 PyObject *self;
5655 PyObject *args;
5656{
5657 short arg1 ;
5658 short arg2 ;
5659 short arg3 ;
5660 short arg4 ;
5661 short arg5 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005662 if (!getishortarg(args, 5, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005663 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005664 if (!getishortarg(args, 5, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005665 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005666 if (!getishortarg(args, 5, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005667 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005668 if (!getishortarg(args, 5, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005669 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005670 if (!getishortarg(args, 5, 4, &arg5))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005671 return NULL;
5672 arcs( arg1 , arg2 , arg3 , arg4 , arg5 );
5673 Py_INCREF(Py_None);
5674 return Py_None;
5675}
5676
5677/* void rectcopy short s short s short s short s short s short s */
5678
5679static PyObject *
5680gl_rectcopy(self, args)
5681 PyObject *self;
5682 PyObject *args;
5683{
5684 short arg1 ;
5685 short arg2 ;
5686 short arg3 ;
5687 short arg4 ;
5688 short arg5 ;
5689 short arg6 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005690 if (!getishortarg(args, 6, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005691 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005692 if (!getishortarg(args, 6, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005693 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005694 if (!getishortarg(args, 6, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005695 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005696 if (!getishortarg(args, 6, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005697 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005698 if (!getishortarg(args, 6, 4, &arg5))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005699 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005700 if (!getishortarg(args, 6, 5, &arg6))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005701 return NULL;
5702 rectcopy( arg1 , arg2 , arg3 , arg4 , arg5 , arg6 );
5703 Py_INCREF(Py_None);
5704 return Py_None;
5705}
5706
5707/* void RGBcursor short s short s short s short s short s short s short s */
5708
5709static PyObject *
5710gl_RGBcursor(self, args)
5711 PyObject *self;
5712 PyObject *args;
5713{
5714 short arg1 ;
5715 short arg2 ;
5716 short arg3 ;
5717 short arg4 ;
5718 short arg5 ;
5719 short arg6 ;
5720 short arg7 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005721 if (!getishortarg(args, 7, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005722 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005723 if (!getishortarg(args, 7, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005724 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005725 if (!getishortarg(args, 7, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005726 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005727 if (!getishortarg(args, 7, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005728 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005729 if (!getishortarg(args, 7, 4, &arg5))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005730 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005731 if (!getishortarg(args, 7, 5, &arg6))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005732 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005733 if (!getishortarg(args, 7, 6, &arg7))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005734 return NULL;
5735 RGBcursor( arg1 , arg2 , arg3 , arg4 , arg5 , arg6 , arg7 );
5736 Py_INCREF(Py_None);
5737 return Py_None;
5738}
5739
5740/* long getbutton short s */
5741
5742static PyObject *
5743gl_getbutton(self, args)
5744 PyObject *self;
5745 PyObject *args;
5746{
5747 long retval;
5748 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005749 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005750 return NULL;
5751 retval = getbutton( arg1 );
5752 return mknewlongobject(retval);
5753}
5754
5755/* long getcmmode */
5756
5757static PyObject *
5758gl_getcmmode(self, args)
5759 PyObject *self;
5760 PyObject *args;
5761{
5762 long retval;
5763 retval = getcmmode( );
5764 return mknewlongobject(retval);
5765}
5766
5767/* long getlsbackup */
5768
5769static PyObject *
5770gl_getlsbackup(self, args)
5771 PyObject *self;
5772 PyObject *args;
5773{
5774 long retval;
5775 retval = getlsbackup( );
5776 return mknewlongobject(retval);
5777}
5778
5779/* long getresetls */
5780
5781static PyObject *
5782gl_getresetls(self, args)
5783 PyObject *self;
5784 PyObject *args;
5785{
5786 long retval;
5787 retval = getresetls( );
5788 return mknewlongobject(retval);
5789}
5790
5791/* long getdcm */
5792
5793static PyObject *
5794gl_getdcm(self, args)
5795 PyObject *self;
5796 PyObject *args;
5797{
5798 long retval;
5799 retval = getdcm( );
5800 return mknewlongobject(retval);
5801}
5802
5803/* long getzbuffer */
5804
5805static PyObject *
5806gl_getzbuffer(self, args)
5807 PyObject *self;
5808 PyObject *args;
5809{
5810 long retval;
5811 retval = getzbuffer( );
5812 return mknewlongobject(retval);
5813}
5814
5815/* long ismex */
5816
5817static PyObject *
5818gl_ismex(self, args)
5819 PyObject *self;
5820 PyObject *args;
5821{
5822 long retval;
5823 retval = ismex( );
5824 return mknewlongobject(retval);
5825}
5826
5827/* long isobj long s */
5828
5829static PyObject *
5830gl_isobj(self, args)
5831 PyObject *self;
5832 PyObject *args;
5833{
5834 long retval;
5835 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005836 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005837 return NULL;
5838 retval = isobj( arg1 );
5839 return mknewlongobject(retval);
5840}
5841
5842/* long isqueued short s */
5843
5844static PyObject *
5845gl_isqueued(self, args)
5846 PyObject *self;
5847 PyObject *args;
5848{
5849 long retval;
5850 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005851 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005852 return NULL;
5853 retval = isqueued( arg1 );
5854 return mknewlongobject(retval);
5855}
5856
5857/* long istag long s */
5858
5859static PyObject *
5860gl_istag(self, args)
5861 PyObject *self;
5862 PyObject *args;
5863{
5864 long retval;
5865 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005866 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005867 return NULL;
5868 retval = istag( arg1 );
5869 return mknewlongobject(retval);
5870}
5871
5872/* long genobj */
5873
5874static PyObject *
5875gl_genobj(self, args)
5876 PyObject *self;
5877 PyObject *args;
5878{
5879 long retval;
5880 retval = genobj( );
5881 return mknewlongobject(retval);
5882}
5883
5884/* long gentag */
5885
5886static PyObject *
5887gl_gentag(self, args)
5888 PyObject *self;
5889 PyObject *args;
5890{
5891 long retval;
5892 retval = gentag( );
5893 return mknewlongobject(retval);
5894}
5895
5896/* long getbuffer */
5897
5898static PyObject *
5899gl_getbuffer(self, args)
5900 PyObject *self;
5901 PyObject *args;
5902{
5903 long retval;
5904 retval = getbuffer( );
5905 return mknewlongobject(retval);
5906}
5907
5908/* long getcolor */
5909
5910static PyObject *
5911gl_getcolor(self, args)
5912 PyObject *self;
5913 PyObject *args;
5914{
5915 long retval;
5916 retval = getcolor( );
5917 return mknewlongobject(retval);
5918}
5919
5920/* long getdisplaymode */
5921
5922static PyObject *
5923gl_getdisplaymode(self, args)
5924 PyObject *self;
5925 PyObject *args;
5926{
5927 long retval;
5928 retval = getdisplaymode( );
5929 return mknewlongobject(retval);
5930}
5931
5932/* long getfont */
5933
5934static PyObject *
5935gl_getfont(self, args)
5936 PyObject *self;
5937 PyObject *args;
5938{
5939 long retval;
5940 retval = getfont( );
5941 return mknewlongobject(retval);
5942}
5943
5944/* long getheight */
5945
5946static PyObject *
5947gl_getheight(self, args)
5948 PyObject *self;
5949 PyObject *args;
5950{
5951 long retval;
5952 retval = getheight( );
5953 return mknewlongobject(retval);
5954}
5955
5956/* long gethitcode */
5957
5958static PyObject *
5959gl_gethitcode(self, args)
5960 PyObject *self;
5961 PyObject *args;
5962{
5963 long retval;
5964 retval = gethitcode( );
5965 return mknewlongobject(retval);
5966}
5967
5968/* long getlstyle */
5969
5970static PyObject *
5971gl_getlstyle(self, args)
5972 PyObject *self;
5973 PyObject *args;
5974{
5975 long retval;
5976 retval = getlstyle( );
5977 return mknewlongobject(retval);
5978}
5979
5980/* long getlwidth */
5981
5982static PyObject *
5983gl_getlwidth(self, args)
5984 PyObject *self;
5985 PyObject *args;
5986{
5987 long retval;
5988 retval = getlwidth( );
5989 return mknewlongobject(retval);
5990}
5991
5992/* long getmap */
5993
5994static PyObject *
5995gl_getmap(self, args)
5996 PyObject *self;
5997 PyObject *args;
5998{
5999 long retval;
6000 retval = getmap( );
6001 return mknewlongobject(retval);
6002}
6003
6004/* long getplanes */
6005
6006static PyObject *
6007gl_getplanes(self, args)
6008 PyObject *self;
6009 PyObject *args;
6010{
6011 long retval;
6012 retval = getplanes( );
6013 return mknewlongobject(retval);
6014}
6015
6016/* long getwritemask */
6017
6018static PyObject *
6019gl_getwritemask(self, args)
6020 PyObject *self;
6021 PyObject *args;
6022{
6023 long retval;
6024 retval = getwritemask( );
6025 return mknewlongobject(retval);
6026}
6027
6028/* long qtest */
6029
6030static PyObject *
6031gl_qtest(self, args)
6032 PyObject *self;
6033 PyObject *args;
6034{
6035 long retval;
6036 retval = qtest( );
6037 return mknewlongobject(retval);
6038}
6039
6040/* long getlsrepeat */
6041
6042static PyObject *
6043gl_getlsrepeat(self, args)
6044 PyObject *self;
6045 PyObject *args;
6046{
6047 long retval;
6048 retval = getlsrepeat( );
6049 return mknewlongobject(retval);
6050}
6051
6052/* long getmonitor */
6053
6054static PyObject *
6055gl_getmonitor(self, args)
6056 PyObject *self;
6057 PyObject *args;
6058{
6059 long retval;
6060 retval = getmonitor( );
6061 return mknewlongobject(retval);
6062}
6063
6064/* long getopenobj */
6065
6066static PyObject *
6067gl_getopenobj(self, args)
6068 PyObject *self;
6069 PyObject *args;
6070{
6071 long retval;
6072 retval = getopenobj( );
6073 return mknewlongobject(retval);
6074}
6075
6076/* long getpattern */
6077
6078static PyObject *
6079gl_getpattern(self, args)
6080 PyObject *self;
6081 PyObject *args;
6082{
6083 long retval;
6084 retval = getpattern( );
6085 return mknewlongobject(retval);
6086}
6087
6088/* long winget */
6089
6090static PyObject *
6091gl_winget(self, args)
6092 PyObject *self;
6093 PyObject *args;
6094{
6095 long retval;
6096 retval = winget( );
6097 return mknewlongobject(retval);
6098}
6099
6100/* long winattach */
6101
6102static PyObject *
6103gl_winattach(self, args)
6104 PyObject *self;
6105 PyObject *args;
6106{
6107 long retval;
6108 retval = winattach( );
6109 return mknewlongobject(retval);
6110}
6111
6112/* long getothermonitor */
6113
6114static PyObject *
6115gl_getothermonitor(self, args)
6116 PyObject *self;
6117 PyObject *args;
6118{
6119 long retval;
6120 retval = getothermonitor( );
6121 return mknewlongobject(retval);
6122}
6123
6124/* long newpup */
6125
6126static PyObject *
6127gl_newpup(self, args)
6128 PyObject *self;
6129 PyObject *args;
6130{
6131 long retval;
6132 retval = newpup( );
6133 return mknewlongobject(retval);
6134}
6135
6136/* long getvaluator short s */
6137
6138static PyObject *
6139gl_getvaluator(self, args)
6140 PyObject *self;
6141 PyObject *args;
6142{
6143 long retval;
6144 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006145 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006146 return NULL;
6147 retval = getvaluator( arg1 );
6148 return mknewlongobject(retval);
6149}
6150
6151/* void winset long s */
6152
6153static PyObject *
6154gl_winset(self, args)
6155 PyObject *self;
6156 PyObject *args;
6157{
6158 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006159 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006160 return NULL;
6161 winset( arg1 );
6162 Py_INCREF(Py_None);
6163 return Py_None;
6164}
6165
6166/* long dopup long s */
6167
6168static PyObject *
6169gl_dopup(self, args)
6170 PyObject *self;
6171 PyObject *args;
6172{
6173 long retval;
6174 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006175 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006176 return NULL;
6177 retval = dopup( arg1 );
6178 return mknewlongobject(retval);
6179}
6180
6181/* void getdepth short r short r */
6182
6183static PyObject *
6184gl_getdepth(self, args)
6185 PyObject *self;
6186 PyObject *args;
6187{
6188 short arg1 ;
6189 short arg2 ;
6190 getdepth( & arg1 , & arg2 );
6191 { PyObject *v = PyTuple_New( 2 );
6192 if (v == NULL) return NULL;
6193 PyTuple_SetItem(v, 0, mknewshortobject(arg1));
6194 PyTuple_SetItem(v, 1, mknewshortobject(arg2));
6195 return v;
6196 }
6197}
6198
6199/* void getcpos short r short r */
6200
6201static PyObject *
6202gl_getcpos(self, args)
6203 PyObject *self;
6204 PyObject *args;
6205{
6206 short arg1 ;
6207 short arg2 ;
6208 getcpos( & arg1 , & arg2 );
6209 { PyObject *v = PyTuple_New( 2 );
6210 if (v == NULL) return NULL;
6211 PyTuple_SetItem(v, 0, mknewshortobject(arg1));
6212 PyTuple_SetItem(v, 1, mknewshortobject(arg2));
6213 return v;
6214 }
6215}
6216
6217/* void getsize long r long r */
6218
6219static PyObject *
6220gl_getsize(self, args)
6221 PyObject *self;
6222 PyObject *args;
6223{
6224 long arg1 ;
6225 long arg2 ;
6226 getsize( & arg1 , & arg2 );
6227 { PyObject *v = PyTuple_New( 2 );
6228 if (v == NULL) return NULL;
6229 PyTuple_SetItem(v, 0, mknewlongobject(arg1));
6230 PyTuple_SetItem(v, 1, mknewlongobject(arg2));
6231 return v;
6232 }
6233}
6234
6235/* void getorigin long r long r */
6236
6237static PyObject *
6238gl_getorigin(self, args)
6239 PyObject *self;
6240 PyObject *args;
6241{
6242 long arg1 ;
6243 long arg2 ;
6244 getorigin( & arg1 , & arg2 );
6245 { PyObject *v = PyTuple_New( 2 );
6246 if (v == NULL) return NULL;
6247 PyTuple_SetItem(v, 0, mknewlongobject(arg1));
6248 PyTuple_SetItem(v, 1, mknewlongobject(arg2));
6249 return v;
6250 }
6251}
6252
6253/* void getviewport short r short r short r short r */
6254
6255static PyObject *
6256gl_getviewport(self, args)
6257 PyObject *self;
6258 PyObject *args;
6259{
6260 short arg1 ;
6261 short arg2 ;
6262 short arg3 ;
6263 short arg4 ;
6264 getviewport( & arg1 , & arg2 , & arg3 , & arg4 );
6265 { PyObject *v = PyTuple_New( 4 );
6266 if (v == NULL) return NULL;
6267 PyTuple_SetItem(v, 0, mknewshortobject(arg1));
6268 PyTuple_SetItem(v, 1, mknewshortobject(arg2));
6269 PyTuple_SetItem(v, 2, mknewshortobject(arg3));
6270 PyTuple_SetItem(v, 3, mknewshortobject(arg4));
6271 return v;
6272 }
6273}
6274
6275/* void gettp short r short r short r short r */
6276
6277static PyObject *
6278gl_gettp(self, args)
6279 PyObject *self;
6280 PyObject *args;
6281{
6282 short arg1 ;
6283 short arg2 ;
6284 short arg3 ;
6285 short arg4 ;
6286 gettp( & arg1 , & arg2 , & arg3 , & arg4 );
6287 { PyObject *v = PyTuple_New( 4 );
6288 if (v == NULL) return NULL;
6289 PyTuple_SetItem(v, 0, mknewshortobject(arg1));
6290 PyTuple_SetItem(v, 1, mknewshortobject(arg2));
6291 PyTuple_SetItem(v, 2, mknewshortobject(arg3));
6292 PyTuple_SetItem(v, 3, mknewshortobject(arg4));
6293 return v;
6294 }
6295}
6296
6297/* void getgpos float r float r float r float r */
6298
6299static PyObject *
6300gl_getgpos(self, args)
6301 PyObject *self;
6302 PyObject *args;
6303{
6304 float arg1 ;
6305 float arg2 ;
6306 float arg3 ;
6307 float arg4 ;
6308 getgpos( & arg1 , & arg2 , & arg3 , & arg4 );
6309 { PyObject *v = PyTuple_New( 4 );
6310 if (v == NULL) return NULL;
6311 PyTuple_SetItem(v, 0, mknewfloatobject(arg1));
6312 PyTuple_SetItem(v, 1, mknewfloatobject(arg2));
6313 PyTuple_SetItem(v, 2, mknewfloatobject(arg3));
6314 PyTuple_SetItem(v, 3, mknewfloatobject(arg4));
6315 return v;
6316 }
6317}
6318
6319/* void winposition long s long s long s long s */
6320
6321static PyObject *
6322gl_winposition(self, args)
6323 PyObject *self;
6324 PyObject *args;
6325{
6326 long arg1 ;
6327 long arg2 ;
6328 long arg3 ;
6329 long arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006330 if (!getilongarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006331 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006332 if (!getilongarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006333 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006334 if (!getilongarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006335 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006336 if (!getilongarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006337 return NULL;
6338 winposition( arg1 , arg2 , arg3 , arg4 );
6339 Py_INCREF(Py_None);
6340 return Py_None;
6341}
6342
6343/* void gRGBcolor short r short r short r */
6344
6345static PyObject *
6346gl_gRGBcolor(self, args)
6347 PyObject *self;
6348 PyObject *args;
6349{
6350 short arg1 ;
6351 short arg2 ;
6352 short arg3 ;
6353 gRGBcolor( & arg1 , & arg2 , & arg3 );
6354 { PyObject *v = PyTuple_New( 3 );
6355 if (v == NULL) return NULL;
6356 PyTuple_SetItem(v, 0, mknewshortobject(arg1));
6357 PyTuple_SetItem(v, 1, mknewshortobject(arg2));
6358 PyTuple_SetItem(v, 2, mknewshortobject(arg3));
6359 return v;
6360 }
6361}
6362
6363/* void gRGBmask short r short r short r */
6364
6365static PyObject *
6366gl_gRGBmask(self, args)
6367 PyObject *self;
6368 PyObject *args;
6369{
6370 short arg1 ;
6371 short arg2 ;
6372 short arg3 ;
6373 gRGBmask( & arg1 , & arg2 , & arg3 );
6374 { PyObject *v = PyTuple_New( 3 );
6375 if (v == NULL) return NULL;
6376 PyTuple_SetItem(v, 0, mknewshortobject(arg1));
6377 PyTuple_SetItem(v, 1, mknewshortobject(arg2));
6378 PyTuple_SetItem(v, 2, mknewshortobject(arg3));
6379 return v;
6380 }
6381}
6382
6383/* void getscrmask short r short r short r short r */
6384
6385static PyObject *
6386gl_getscrmask(self, args)
6387 PyObject *self;
6388 PyObject *args;
6389{
6390 short arg1 ;
6391 short arg2 ;
6392 short arg3 ;
6393 short arg4 ;
6394 getscrmask( & arg1 , & arg2 , & arg3 , & arg4 );
6395 { PyObject *v = PyTuple_New( 4 );
6396 if (v == NULL) return NULL;
6397 PyTuple_SetItem(v, 0, mknewshortobject(arg1));
6398 PyTuple_SetItem(v, 1, mknewshortobject(arg2));
6399 PyTuple_SetItem(v, 2, mknewshortobject(arg3));
6400 PyTuple_SetItem(v, 3, mknewshortobject(arg4));
6401 return v;
6402 }
6403}
6404
6405/* void getmcolor short s short r short r short r */
6406
6407static PyObject *
6408gl_getmcolor(self, args)
6409 PyObject *self;
6410 PyObject *args;
6411{
6412 short arg1 ;
6413 short arg2 ;
6414 short arg3 ;
6415 short arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006416 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006417 return NULL;
6418 getmcolor( arg1 , & arg2 , & arg3 , & arg4 );
6419 { PyObject *v = PyTuple_New( 3 );
6420 if (v == NULL) return NULL;
6421 PyTuple_SetItem(v, 0, mknewshortobject(arg2));
6422 PyTuple_SetItem(v, 1, mknewshortobject(arg3));
6423 PyTuple_SetItem(v, 2, mknewshortobject(arg4));
6424 return v;
6425 }
6426}
6427
Guido van Rossumdfed9201997-04-29 15:46:43 +00006428/* void mapw long s short s short s float r float r float r float r float r float r */
Roger E. Massefbd1d741996-12-24 19:39:23 +00006429
6430static PyObject *
6431gl_mapw(self, args)
6432 PyObject *self;
6433 PyObject *args;
6434{
6435 long arg1 ;
6436 short arg2 ;
6437 short arg3 ;
6438 float arg4 ;
6439 float arg5 ;
6440 float arg6 ;
6441 float arg7 ;
6442 float arg8 ;
6443 float arg9 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006444 if (!getilongarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006445 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006446 if (!getishortarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006447 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006448 if (!getishortarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006449 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006450 mapw( arg1 , arg2 , arg3 , & arg4 , & arg5 , & arg6 , & arg7 , & arg8 , & arg9 );
Roger E. Massefbd1d741996-12-24 19:39:23 +00006451 { PyObject *v = PyTuple_New( 6 );
6452 if (v == NULL) return NULL;
6453 PyTuple_SetItem(v, 0, mknewfloatobject(arg4));
6454 PyTuple_SetItem(v, 1, mknewfloatobject(arg5));
6455 PyTuple_SetItem(v, 2, mknewfloatobject(arg6));
6456 PyTuple_SetItem(v, 3, mknewfloatobject(arg7));
6457 PyTuple_SetItem(v, 4, mknewfloatobject(arg8));
6458 PyTuple_SetItem(v, 5, mknewfloatobject(arg9));
6459 return v;
6460 }
6461}
6462
6463/* void mapw2 long s short s short s float r float r */
6464
6465static PyObject *
6466gl_mapw2(self, args)
6467 PyObject *self;
6468 PyObject *args;
6469{
6470 long arg1 ;
6471 short arg2 ;
6472 short arg3 ;
6473 float arg4 ;
6474 float arg5 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006475 if (!getilongarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006476 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006477 if (!getishortarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006478 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006479 if (!getishortarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006480 return NULL;
6481 mapw2( arg1 , arg2 , arg3 , & arg4 , & arg5 );
6482 { PyObject *v = PyTuple_New( 2 );
6483 if (v == NULL) return NULL;
6484 PyTuple_SetItem(v, 0, mknewfloatobject(arg4));
6485 PyTuple_SetItem(v, 1, mknewfloatobject(arg5));
6486 return v;
6487 }
6488}
6489
6490/* void getcursor short r u_short r u_short r long r */
6491
6492static PyObject *
6493gl_getcursor(self, args)
6494 PyObject *self;
6495 PyObject *args;
6496{
6497 short arg1 ;
6498 unsigned short arg2 ;
6499 unsigned short arg3 ;
6500 long arg4 ;
6501 getcursor( & arg1 , & arg2 , & arg3 , & arg4 );
6502 { PyObject *v = PyTuple_New( 4 );
6503 if (v == NULL) return NULL;
6504 PyTuple_SetItem(v, 0, mknewshortobject(arg1));
6505 PyTuple_SetItem(v, 1, mknewshortobject((short) arg2));
6506 PyTuple_SetItem(v, 2, mknewshortobject((short) arg3));
6507 PyTuple_SetItem(v, 3, mknewlongobject(arg4));
6508 return v;
6509 }
6510}
6511
6512/* void cmode */
6513
6514static PyObject *
6515gl_cmode(self, args)
6516 PyObject *self;
6517 PyObject *args;
6518{
6519 cmode( );
6520 Py_INCREF(Py_None);
6521 return Py_None;
6522}
6523
6524/* void concave long s */
6525
6526static PyObject *
6527gl_concave(self, args)
6528 PyObject *self;
6529 PyObject *args;
6530{
6531 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006532 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006533 return NULL;
6534 concave( arg1 );
6535 Py_INCREF(Py_None);
6536 return Py_None;
6537}
6538
6539/* void curstype long s */
6540
6541static PyObject *
6542gl_curstype(self, args)
6543 PyObject *self;
6544 PyObject *args;
6545{
6546 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006547 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006548 return NULL;
6549 curstype( arg1 );
6550 Py_INCREF(Py_None);
6551 return Py_None;
6552}
6553
6554/* void drawmode long s */
6555
6556static PyObject *
6557gl_drawmode(self, args)
6558 PyObject *self;
6559 PyObject *args;
6560{
6561 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006562 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006563 return NULL;
6564 drawmode( arg1 );
6565 Py_INCREF(Py_None);
6566 return Py_None;
6567}
6568
6569/* void gammaramp short s[256] short s[256] short s[256] */
6570
6571static PyObject *
6572gl_gammaramp(self, args)
6573 PyObject *self;
6574 PyObject *args;
6575{
6576 short arg1 [ 256 ] ;
6577 short arg2 [ 256 ] ;
6578 short arg3 [ 256 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006579 if (!getishortarray(args, 3, 0, 256 , arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006580 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006581 if (!getishortarray(args, 3, 1, 256 , arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006582 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006583 if (!getishortarray(args, 3, 2, 256 , arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006584 return NULL;
6585 gammaramp( arg1 , arg2 , arg3 );
6586 Py_INCREF(Py_None);
6587 return Py_None;
6588}
6589
6590/* long getbackface */
6591
6592static PyObject *
6593gl_getbackface(self, args)
6594 PyObject *self;
6595 PyObject *args;
6596{
6597 long retval;
6598 retval = getbackface( );
6599 return mknewlongobject(retval);
6600}
6601
6602/* long getdescender */
6603
6604static PyObject *
6605gl_getdescender(self, args)
6606 PyObject *self;
6607 PyObject *args;
6608{
6609 long retval;
6610 retval = getdescender( );
6611 return mknewlongobject(retval);
6612}
6613
6614/* long getdrawmode */
6615
6616static PyObject *
6617gl_getdrawmode(self, args)
6618 PyObject *self;
6619 PyObject *args;
6620{
6621 long retval;
6622 retval = getdrawmode( );
6623 return mknewlongobject(retval);
6624}
6625
6626/* long getmmode */
6627
6628static PyObject *
6629gl_getmmode(self, args)
6630 PyObject *self;
6631 PyObject *args;
6632{
6633 long retval;
6634 retval = getmmode( );
6635 return mknewlongobject(retval);
6636}
6637
6638/* long getsm */
6639
6640static PyObject *
6641gl_getsm(self, args)
6642 PyObject *self;
6643 PyObject *args;
6644{
6645 long retval;
6646 retval = getsm( );
6647 return mknewlongobject(retval);
6648}
6649
6650/* long getvideo long s */
6651
6652static PyObject *
6653gl_getvideo(self, args)
6654 PyObject *self;
6655 PyObject *args;
6656{
6657 long retval;
6658 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006659 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006660 return NULL;
6661 retval = getvideo( arg1 );
6662 return mknewlongobject(retval);
6663}
6664
6665/* void imakebackground */
6666
6667static PyObject *
6668gl_imakebackground(self, args)
6669 PyObject *self;
6670 PyObject *args;
6671{
6672 imakebackground( );
6673 Py_INCREF(Py_None);
6674 return Py_None;
6675}
6676
6677/* void lmbind short s short s */
6678
6679static PyObject *
6680gl_lmbind(self, args)
6681 PyObject *self;
6682 PyObject *args;
6683{
6684 short arg1 ;
6685 short arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006686 if (!getishortarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006687 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006688 if (!getishortarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006689 return NULL;
6690 lmbind( arg1 , arg2 );
6691 Py_INCREF(Py_None);
6692 return Py_None;
6693}
6694
6695/* void lmdef long s long s long s float s[arg3] */
6696
6697static PyObject *
6698gl_lmdef(self, args)
6699 PyObject *self;
6700 PyObject *args;
6701{
6702 long arg1 ;
6703 long arg2 ;
6704 long arg3 ;
6705 float * arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006706 if (!getilongarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006707 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006708 if (!getilongarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006709 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006710 if (!getilongarraysize(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006711 return NULL;
6712 if ((arg4 = PyMem_NEW(float , arg3 )) == NULL)
6713 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00006714 if (!getifloatarray(args, 3, 2, arg3 , arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006715 return NULL;
6716 lmdef( arg1 , arg2 , arg3 , arg4 );
6717 PyMem_DEL(arg4);
6718 Py_INCREF(Py_None);
6719 return Py_None;
6720}
6721
6722/* void mmode long s */
6723
6724static PyObject *
6725gl_mmode(self, args)
6726 PyObject *self;
6727 PyObject *args;
6728{
6729 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006730 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006731 return NULL;
6732 mmode( arg1 );
6733 Py_INCREF(Py_None);
6734 return Py_None;
6735}
6736
6737/* void normal float s[3] */
6738
6739static PyObject *
6740gl_normal(self, args)
6741 PyObject *self;
6742 PyObject *args;
6743{
6744 float arg1 [ 3 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006745 if (!getifloatarray(args, 1, 0, 3 , arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006746 return NULL;
6747 normal( arg1 );
6748 Py_INCREF(Py_None);
6749 return Py_None;
6750}
6751
6752/* void overlay long s */
6753
6754static PyObject *
6755gl_overlay(self, args)
6756 PyObject *self;
6757 PyObject *args;
6758{
6759 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006760 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006761 return NULL;
6762 overlay( arg1 );
6763 Py_INCREF(Py_None);
6764 return Py_None;
6765}
6766
Guido van Rossumdfed9201997-04-29 15:46:43 +00006767/* void RGBrange short s short s short s short s short s short s short s short s */
Roger E. Massefbd1d741996-12-24 19:39:23 +00006768
6769static PyObject *
6770gl_RGBrange(self, args)
6771 PyObject *self;
6772 PyObject *args;
6773{
6774 short arg1 ;
6775 short arg2 ;
6776 short arg3 ;
6777 short arg4 ;
6778 short arg5 ;
6779 short arg6 ;
6780 short arg7 ;
6781 short arg8 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006782 if (!getishortarg(args, 8, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006783 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006784 if (!getishortarg(args, 8, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006785 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006786 if (!getishortarg(args, 8, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006787 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006788 if (!getishortarg(args, 8, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006789 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006790 if (!getishortarg(args, 8, 4, &arg5))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006791 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006792 if (!getishortarg(args, 8, 5, &arg6))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006793 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006794 if (!getishortarg(args, 8, 6, &arg7))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006795 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006796 if (!getishortarg(args, 8, 7, &arg8))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006797 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006798 RGBrange( arg1 , arg2 , arg3 , arg4 , arg5 , arg6 , arg7 , arg8 );
Roger E. Massefbd1d741996-12-24 19:39:23 +00006799 Py_INCREF(Py_None);
6800 return Py_None;
6801}
6802
6803/* void setvideo long s long s */
6804
6805static PyObject *
6806gl_setvideo(self, args)
6807 PyObject *self;
6808 PyObject *args;
6809{
6810 long arg1 ;
6811 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006812 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006813 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006814 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006815 return NULL;
6816 setvideo( arg1 , arg2 );
6817 Py_INCREF(Py_None);
6818 return Py_None;
6819}
6820
6821/* void shademodel long s */
6822
6823static PyObject *
6824gl_shademodel(self, args)
6825 PyObject *self;
6826 PyObject *args;
6827{
6828 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006829 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006830 return NULL;
6831 shademodel( arg1 );
6832 Py_INCREF(Py_None);
6833 return Py_None;
6834}
6835
6836/* void underlay long s */
6837
6838static PyObject *
6839gl_underlay(self, args)
6840 PyObject *self;
6841 PyObject *args;
6842{
6843 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006844 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006845 return NULL;
6846 underlay( arg1 );
6847 Py_INCREF(Py_None);
6848 return Py_None;
6849}
6850
6851/* void bgnclosedline */
6852
6853static PyObject *
6854gl_bgnclosedline(self, args)
6855 PyObject *self;
6856 PyObject *args;
6857{
6858 bgnclosedline( );
6859 Py_INCREF(Py_None);
6860 return Py_None;
6861}
6862
6863/* void bgnline */
6864
6865static PyObject *
6866gl_bgnline(self, args)
6867 PyObject *self;
6868 PyObject *args;
6869{
6870 bgnline( );
6871 Py_INCREF(Py_None);
6872 return Py_None;
6873}
6874
6875/* void bgnpoint */
6876
6877static PyObject *
6878gl_bgnpoint(self, args)
6879 PyObject *self;
6880 PyObject *args;
6881{
6882 bgnpoint( );
6883 Py_INCREF(Py_None);
6884 return Py_None;
6885}
6886
6887/* void bgnpolygon */
6888
6889static PyObject *
6890gl_bgnpolygon(self, args)
6891 PyObject *self;
6892 PyObject *args;
6893{
6894 bgnpolygon( );
6895 Py_INCREF(Py_None);
6896 return Py_None;
6897}
6898
6899/* void bgnsurface */
6900
6901static PyObject *
6902gl_bgnsurface(self, args)
6903 PyObject *self;
6904 PyObject *args;
6905{
6906 bgnsurface( );
6907 Py_INCREF(Py_None);
6908 return Py_None;
6909}
6910
6911/* void bgntmesh */
6912
6913static PyObject *
6914gl_bgntmesh(self, args)
6915 PyObject *self;
6916 PyObject *args;
6917{
6918 bgntmesh( );
6919 Py_INCREF(Py_None);
6920 return Py_None;
6921}
6922
6923/* void bgntrim */
6924
6925static PyObject *
6926gl_bgntrim(self, args)
6927 PyObject *self;
6928 PyObject *args;
6929{
6930 bgntrim( );
6931 Py_INCREF(Py_None);
6932 return Py_None;
6933}
6934
6935/* void endclosedline */
6936
6937static PyObject *
6938gl_endclosedline(self, args)
6939 PyObject *self;
6940 PyObject *args;
6941{
6942 endclosedline( );
6943 Py_INCREF(Py_None);
6944 return Py_None;
6945}
6946
6947/* void endline */
6948
6949static PyObject *
6950gl_endline(self, args)
6951 PyObject *self;
6952 PyObject *args;
6953{
6954 endline( );
6955 Py_INCREF(Py_None);
6956 return Py_None;
6957}
6958
6959/* void endpoint */
6960
6961static PyObject *
6962gl_endpoint(self, args)
6963 PyObject *self;
6964 PyObject *args;
6965{
6966 endpoint( );
6967 Py_INCREF(Py_None);
6968 return Py_None;
6969}
6970
6971/* void endpolygon */
6972
6973static PyObject *
6974gl_endpolygon(self, args)
6975 PyObject *self;
6976 PyObject *args;
6977{
6978 endpolygon( );
6979 Py_INCREF(Py_None);
6980 return Py_None;
6981}
6982
6983/* void endsurface */
6984
6985static PyObject *
6986gl_endsurface(self, args)
6987 PyObject *self;
6988 PyObject *args;
6989{
6990 endsurface( );
6991 Py_INCREF(Py_None);
6992 return Py_None;
6993}
6994
6995/* void endtmesh */
6996
6997static PyObject *
6998gl_endtmesh(self, args)
6999 PyObject *self;
7000 PyObject *args;
7001{
7002 endtmesh( );
7003 Py_INCREF(Py_None);
7004 return Py_None;
7005}
7006
7007/* void endtrim */
7008
7009static PyObject *
7010gl_endtrim(self, args)
7011 PyObject *self;
7012 PyObject *args;
7013{
7014 endtrim( );
7015 Py_INCREF(Py_None);
7016 return Py_None;
7017}
7018
7019/* void blendfunction long s long s */
7020
7021static PyObject *
7022gl_blendfunction(self, args)
7023 PyObject *self;
7024 PyObject *args;
7025{
7026 long arg1 ;
7027 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007028 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007029 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007030 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007031 return NULL;
7032 blendfunction( arg1 , arg2 );
7033 Py_INCREF(Py_None);
7034 return Py_None;
7035}
7036
7037/* void c3f float s[3] */
7038
7039static PyObject *
7040gl_c3f(self, args)
7041 PyObject *self;
7042 PyObject *args;
7043{
7044 float arg1 [ 3 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007045 if (!getifloatarray(args, 1, 0, 3 , arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007046 return NULL;
7047 c3f( arg1 );
7048 Py_INCREF(Py_None);
7049 return Py_None;
7050}
7051
7052/* void c3i long s[3] */
7053
7054static PyObject *
7055gl_c3i(self, args)
7056 PyObject *self;
7057 PyObject *args;
7058{
7059 long arg1 [ 3 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007060 if (!getilongarray(args, 1, 0, 3 , arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007061 return NULL;
7062 c3i( arg1 );
7063 Py_INCREF(Py_None);
7064 return Py_None;
7065}
7066
7067/* void c3s short s[3] */
7068
7069static PyObject *
7070gl_c3s(self, args)
7071 PyObject *self;
7072 PyObject *args;
7073{
7074 short arg1 [ 3 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007075 if (!getishortarray(args, 1, 0, 3 , arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007076 return NULL;
7077 c3s( arg1 );
7078 Py_INCREF(Py_None);
7079 return Py_None;
7080}
7081
7082/* void c4f float s[4] */
7083
7084static PyObject *
7085gl_c4f(self, args)
7086 PyObject *self;
7087 PyObject *args;
7088{
7089 float arg1 [ 4 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007090 if (!getifloatarray(args, 1, 0, 4 , arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007091 return NULL;
7092 c4f( arg1 );
7093 Py_INCREF(Py_None);
7094 return Py_None;
7095}
7096
7097/* void c4i long s[4] */
7098
7099static PyObject *
7100gl_c4i(self, args)
7101 PyObject *self;
7102 PyObject *args;
7103{
7104 long arg1 [ 4 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007105 if (!getilongarray(args, 1, 0, 4 , arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007106 return NULL;
7107 c4i( arg1 );
7108 Py_INCREF(Py_None);
7109 return Py_None;
7110}
7111
7112/* void c4s short s[4] */
7113
7114static PyObject *
7115gl_c4s(self, args)
7116 PyObject *self;
7117 PyObject *args;
7118{
7119 short arg1 [ 4 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007120 if (!getishortarray(args, 1, 0, 4 , arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007121 return NULL;
7122 c4s( arg1 );
7123 Py_INCREF(Py_None);
7124 return Py_None;
7125}
7126
7127/* void colorf float s */
7128
7129static PyObject *
7130gl_colorf(self, args)
7131 PyObject *self;
7132 PyObject *args;
7133{
7134 float arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007135 if (!getifloatarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007136 return NULL;
7137 colorf( arg1 );
7138 Py_INCREF(Py_None);
7139 return Py_None;
7140}
7141
7142/* void cpack long s */
7143
7144static PyObject *
7145gl_cpack(self, args)
7146 PyObject *self;
7147 PyObject *args;
7148{
7149 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007150 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007151 return NULL;
7152 cpack( arg1 );
7153 Py_INCREF(Py_None);
7154 return Py_None;
7155}
7156
7157/* void czclear long s long s */
7158
7159static PyObject *
7160gl_czclear(self, args)
7161 PyObject *self;
7162 PyObject *args;
7163{
7164 long arg1 ;
7165 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007166 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007167 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007168 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007169 return NULL;
7170 czclear( arg1 , arg2 );
7171 Py_INCREF(Py_None);
7172 return Py_None;
7173}
7174
7175/* void dglclose long s */
7176
7177static PyObject *
7178gl_dglclose(self, args)
7179 PyObject *self;
7180 PyObject *args;
7181{
7182 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007183 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007184 return NULL;
7185 dglclose( arg1 );
7186 Py_INCREF(Py_None);
7187 return Py_None;
7188}
7189
7190/* long dglopen char *s long s */
7191
7192static PyObject *
7193gl_dglopen(self, args)
7194 PyObject *self;
7195 PyObject *args;
7196{
7197 long retval;
7198 string arg1 ;
7199 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007200 if (!getistringarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007201 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007202 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007203 return NULL;
7204 retval = dglopen( arg1 , arg2 );
7205 return mknewlongobject(retval);
7206}
7207
7208/* long getgdesc long s */
7209
7210static PyObject *
7211gl_getgdesc(self, args)
7212 PyObject *self;
7213 PyObject *args;
7214{
7215 long retval;
7216 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007217 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007218 return NULL;
7219 retval = getgdesc( arg1 );
7220 return mknewlongobject(retval);
7221}
7222
7223/* void getnurbsproperty long s float r */
7224
7225static PyObject *
7226gl_getnurbsproperty(self, args)
7227 PyObject *self;
7228 PyObject *args;
7229{
7230 long arg1 ;
7231 float arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007232 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007233 return NULL;
7234 getnurbsproperty( arg1 , & arg2 );
7235 return mknewfloatobject(arg2);
7236}
7237
7238/* void glcompat long s long s */
7239
7240static PyObject *
7241gl_glcompat(self, args)
7242 PyObject *self;
7243 PyObject *args;
7244{
7245 long arg1 ;
7246 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007247 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007248 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007249 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007250 return NULL;
7251 glcompat( arg1 , arg2 );
7252 Py_INCREF(Py_None);
7253 return Py_None;
7254}
7255
7256/* void iconsize long s long s */
7257
7258static PyObject *
7259gl_iconsize(self, args)
7260 PyObject *self;
7261 PyObject *args;
7262{
7263 long arg1 ;
7264 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007265 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007266 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007267 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007268 return NULL;
7269 iconsize( arg1 , arg2 );
7270 Py_INCREF(Py_None);
7271 return Py_None;
7272}
7273
7274/* void icontitle char *s */
7275
7276static PyObject *
7277gl_icontitle(self, args)
7278 PyObject *self;
7279 PyObject *args;
7280{
7281 string arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007282 if (!getistringarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007283 return NULL;
7284 icontitle( arg1 );
7285 Py_INCREF(Py_None);
7286 return Py_None;
7287}
7288
Guido van Rossumdfed9201997-04-29 15:46:43 +00007289/* void lRGBrange short s short s short s short s short s short s long s long s */
Roger E. Massefbd1d741996-12-24 19:39:23 +00007290
7291static PyObject *
7292gl_lRGBrange(self, args)
7293 PyObject *self;
7294 PyObject *args;
7295{
7296 short arg1 ;
7297 short arg2 ;
7298 short arg3 ;
7299 short arg4 ;
7300 short arg5 ;
7301 short arg6 ;
7302 long arg7 ;
7303 long arg8 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007304 if (!getishortarg(args, 8, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007305 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007306 if (!getishortarg(args, 8, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007307 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007308 if (!getishortarg(args, 8, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007309 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007310 if (!getishortarg(args, 8, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007311 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007312 if (!getishortarg(args, 8, 4, &arg5))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007313 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007314 if (!getishortarg(args, 8, 5, &arg6))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007315 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007316 if (!getilongarg(args, 8, 6, &arg7))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007317 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007318 if (!getilongarg(args, 8, 7, &arg8))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007319 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007320 lRGBrange( arg1 , arg2 , arg3 , arg4 , arg5 , arg6 , arg7 , arg8 );
Roger E. Massefbd1d741996-12-24 19:39:23 +00007321 Py_INCREF(Py_None);
7322 return Py_None;
7323}
7324
7325/* void linesmooth long s */
7326
7327static PyObject *
7328gl_linesmooth(self, args)
7329 PyObject *self;
7330 PyObject *args;
7331{
7332 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007333 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007334 return NULL;
7335 linesmooth( arg1 );
7336 Py_INCREF(Py_None);
7337 return Py_None;
7338}
7339
7340/* void lmcolor long s */
7341
7342static PyObject *
7343gl_lmcolor(self, args)
7344 PyObject *self;
7345 PyObject *args;
7346{
7347 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007348 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007349 return NULL;
7350 lmcolor( arg1 );
7351 Py_INCREF(Py_None);
7352 return Py_None;
7353}
7354
7355/* void logicop long s */
7356
7357static PyObject *
7358gl_logicop(self, args)
7359 PyObject *self;
7360 PyObject *args;
7361{
7362 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007363 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007364 return NULL;
7365 logicop( arg1 );
7366 Py_INCREF(Py_None);
7367 return Py_None;
7368}
7369
7370/* void lsetdepth long s long s */
7371
7372static PyObject *
7373gl_lsetdepth(self, args)
7374 PyObject *self;
7375 PyObject *args;
7376{
7377 long arg1 ;
7378 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007379 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007380 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007381 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007382 return NULL;
7383 lsetdepth( arg1 , arg2 );
7384 Py_INCREF(Py_None);
7385 return Py_None;
7386}
7387
7388/* void lshaderange short s short s long s long s */
7389
7390static PyObject *
7391gl_lshaderange(self, args)
7392 PyObject *self;
7393 PyObject *args;
7394{
7395 short arg1 ;
7396 short arg2 ;
7397 long arg3 ;
7398 long arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007399 if (!getishortarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007400 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007401 if (!getishortarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007402 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007403 if (!getilongarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007404 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007405 if (!getilongarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007406 return NULL;
7407 lshaderange( arg1 , arg2 , arg3 , arg4 );
7408 Py_INCREF(Py_None);
7409 return Py_None;
7410}
7411
7412/* void n3f float s[3] */
7413
7414static PyObject *
7415gl_n3f(self, args)
7416 PyObject *self;
7417 PyObject *args;
7418{
7419 float arg1 [ 3 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007420 if (!getifloatarray(args, 1, 0, 3 , arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007421 return NULL;
7422 n3f( arg1 );
7423 Py_INCREF(Py_None);
7424 return Py_None;
7425}
7426
7427/* void noborder */
7428
7429static PyObject *
7430gl_noborder(self, args)
7431 PyObject *self;
7432 PyObject *args;
7433{
7434 noborder( );
7435 Py_INCREF(Py_None);
7436 return Py_None;
7437}
7438
7439/* void pntsmooth long s */
7440
7441static PyObject *
7442gl_pntsmooth(self, args)
7443 PyObject *self;
7444 PyObject *args;
7445{
7446 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007447 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007448 return NULL;
7449 pntsmooth( arg1 );
7450 Py_INCREF(Py_None);
7451 return Py_None;
7452}
7453
7454/* void readsource long s */
7455
7456static PyObject *
7457gl_readsource(self, args)
7458 PyObject *self;
7459 PyObject *args;
7460{
7461 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007462 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007463 return NULL;
7464 readsource( arg1 );
7465 Py_INCREF(Py_None);
7466 return Py_None;
7467}
7468
7469/* void rectzoom float s float s */
7470
7471static PyObject *
7472gl_rectzoom(self, args)
7473 PyObject *self;
7474 PyObject *args;
7475{
7476 float arg1 ;
7477 float arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007478 if (!getifloatarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007479 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007480 if (!getifloatarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007481 return NULL;
7482 rectzoom( arg1 , arg2 );
7483 Py_INCREF(Py_None);
7484 return Py_None;
7485}
7486
7487/* void sbox float s float s float s float s */
7488
7489static PyObject *
7490gl_sbox(self, args)
7491 PyObject *self;
7492 PyObject *args;
7493{
7494 float arg1 ;
7495 float arg2 ;
7496 float arg3 ;
7497 float arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007498 if (!getifloatarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007499 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007500 if (!getifloatarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007501 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007502 if (!getifloatarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007503 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007504 if (!getifloatarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007505 return NULL;
7506 sbox( arg1 , arg2 , arg3 , arg4 );
7507 Py_INCREF(Py_None);
7508 return Py_None;
7509}
7510
7511/* void sboxi long s long s long s long s */
7512
7513static PyObject *
7514gl_sboxi(self, args)
7515 PyObject *self;
7516 PyObject *args;
7517{
7518 long arg1 ;
7519 long arg2 ;
7520 long arg3 ;
7521 long arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007522 if (!getilongarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007523 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007524 if (!getilongarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007525 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007526 if (!getilongarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007527 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007528 if (!getilongarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007529 return NULL;
7530 sboxi( arg1 , arg2 , arg3 , arg4 );
7531 Py_INCREF(Py_None);
7532 return Py_None;
7533}
7534
7535/* void sboxs short s short s short s short s */
7536
7537static PyObject *
7538gl_sboxs(self, args)
7539 PyObject *self;
7540 PyObject *args;
7541{
7542 short arg1 ;
7543 short arg2 ;
7544 short arg3 ;
7545 short arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007546 if (!getishortarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007547 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007548 if (!getishortarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007549 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007550 if (!getishortarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007551 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007552 if (!getishortarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007553 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007554 sboxs( arg1 , arg2 , arg3 , arg4 );
Roger E. Massefbd1d741996-12-24 19:39:23 +00007555 Py_INCREF(Py_None);
7556 return Py_None;
7557}
7558
7559/* void sboxf float s float s float s float s */
7560
7561static PyObject *
7562gl_sboxf(self, args)
7563 PyObject *self;
7564 PyObject *args;
7565{
7566 float arg1 ;
7567 float arg2 ;
7568 float arg3 ;
7569 float arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007570 if (!getifloatarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007571 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007572 if (!getifloatarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007573 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007574 if (!getifloatarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007575 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007576 if (!getifloatarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007577 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007578 sboxf( arg1 , arg2 , arg3 , arg4 );
Roger E. Massefbd1d741996-12-24 19:39:23 +00007579 Py_INCREF(Py_None);
7580 return Py_None;
7581}
7582
7583/* void sboxfi long s long s long s long s */
7584
7585static PyObject *
7586gl_sboxfi(self, args)
7587 PyObject *self;
7588 PyObject *args;
7589{
7590 long arg1 ;
7591 long arg2 ;
7592 long arg3 ;
7593 long arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007594 if (!getilongarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007595 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007596 if (!getilongarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007597 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007598 if (!getilongarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007599 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007600 if (!getilongarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007601 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007602 sboxfi( arg1 , arg2 , arg3 , arg4 );
Roger E. Massefbd1d741996-12-24 19:39:23 +00007603 Py_INCREF(Py_None);
7604 return Py_None;
7605}
7606
7607/* void sboxfs short s short s short s short s */
7608
7609static PyObject *
7610gl_sboxfs(self, args)
7611 PyObject *self;
7612 PyObject *args;
7613{
7614 short arg1 ;
7615 short arg2 ;
7616 short arg3 ;
7617 short arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007618 if (!getishortarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007619 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007620 if (!getishortarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007621 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007622 if (!getishortarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007623 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007624 if (!getishortarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007625 return NULL;
7626 sboxfs( arg1 , arg2 , arg3 , arg4 );
7627 Py_INCREF(Py_None);
7628 return Py_None;
7629}
7630
7631/* void setnurbsproperty long s float s */
7632
7633static PyObject *
7634gl_setnurbsproperty(self, args)
7635 PyObject *self;
7636 PyObject *args;
7637{
7638 long arg1 ;
7639 float arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007640 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007641 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007642 if (!getifloatarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007643 return NULL;
7644 setnurbsproperty( arg1 , arg2 );
7645 Py_INCREF(Py_None);
7646 return Py_None;
7647}
7648
7649/* void setpup long s long s long s */
7650
7651static PyObject *
7652gl_setpup(self, args)
7653 PyObject *self;
7654 PyObject *args;
7655{
7656 long arg1 ;
7657 long arg2 ;
7658 long arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007659 if (!getilongarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007660 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007661 if (!getilongarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007662 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007663 if (!getilongarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007664 return NULL;
7665 setpup( arg1 , arg2 , arg3 );
7666 Py_INCREF(Py_None);
7667 return Py_None;
7668}
7669
7670/* void smoothline long s */
7671
7672static PyObject *
7673gl_smoothline(self, args)
7674 PyObject *self;
7675 PyObject *args;
7676{
7677 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007678 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007679 return NULL;
7680 smoothline( arg1 );
7681 Py_INCREF(Py_None);
7682 return Py_None;
7683}
7684
7685/* void subpixel long s */
7686
7687static PyObject *
7688gl_subpixel(self, args)
7689 PyObject *self;
7690 PyObject *args;
7691{
7692 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007693 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007694 return NULL;
7695 subpixel( arg1 );
7696 Py_INCREF(Py_None);
7697 return Py_None;
7698}
7699
7700/* void swaptmesh */
7701
7702static PyObject *
7703gl_swaptmesh(self, args)
7704 PyObject *self;
7705 PyObject *args;
7706{
7707 swaptmesh( );
7708 Py_INCREF(Py_None);
7709 return Py_None;
7710}
7711
7712/* long swinopen long s */
7713
7714static PyObject *
7715gl_swinopen(self, args)
7716 PyObject *self;
7717 PyObject *args;
7718{
7719 long retval;
7720 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007721 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007722 return NULL;
7723 retval = swinopen( arg1 );
7724 return mknewlongobject(retval);
7725}
7726
7727/* void v2f float s[2] */
7728
7729static PyObject *
7730gl_v2f(self, args)
7731 PyObject *self;
7732 PyObject *args;
7733{
7734 float arg1 [ 2 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007735 if (!getifloatarray(args, 1, 0, 2 , arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007736 return NULL;
7737 v2f( arg1 );
7738 Py_INCREF(Py_None);
7739 return Py_None;
7740}
7741
7742/* void v2i long s[2] */
7743
7744static PyObject *
7745gl_v2i(self, args)
7746 PyObject *self;
7747 PyObject *args;
7748{
7749 long arg1 [ 2 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007750 if (!getilongarray(args, 1, 0, 2 , arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007751 return NULL;
7752 v2i( arg1 );
7753 Py_INCREF(Py_None);
7754 return Py_None;
7755}
7756
7757/* void v2s short s[2] */
7758
7759static PyObject *
7760gl_v2s(self, args)
7761 PyObject *self;
7762 PyObject *args;
7763{
7764 short arg1 [ 2 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007765 if (!getishortarray(args, 1, 0, 2 , arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007766 return NULL;
7767 v2s( arg1 );
7768 Py_INCREF(Py_None);
7769 return Py_None;
7770}
7771
7772/* void v3f float s[3] */
7773
7774static PyObject *
7775gl_v3f(self, args)
7776 PyObject *self;
7777 PyObject *args;
7778{
7779 float arg1 [ 3 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007780 if (!getifloatarray(args, 1, 0, 3 , arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007781 return NULL;
7782 v3f( arg1 );
7783 Py_INCREF(Py_None);
7784 return Py_None;
7785}
7786
7787/* void v3i long s[3] */
7788
7789static PyObject *
7790gl_v3i(self, args)
7791 PyObject *self;
7792 PyObject *args;
7793{
7794 long arg1 [ 3 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007795 if (!getilongarray(args, 1, 0, 3 , arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007796 return NULL;
7797 v3i( arg1 );
7798 Py_INCREF(Py_None);
7799 return Py_None;
7800}
7801
7802/* void v3s short s[3] */
7803
7804static PyObject *
7805gl_v3s(self, args)
7806 PyObject *self;
7807 PyObject *args;
7808{
7809 short arg1 [ 3 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007810 if (!getishortarray(args, 1, 0, 3 , arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007811 return NULL;
7812 v3s( arg1 );
7813 Py_INCREF(Py_None);
7814 return Py_None;
7815}
7816
7817/* void v4f float s[4] */
7818
7819static PyObject *
7820gl_v4f(self, args)
7821 PyObject *self;
7822 PyObject *args;
7823{
7824 float arg1 [ 4 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007825 if (!getifloatarray(args, 1, 0, 4 , arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007826 return NULL;
7827 v4f( arg1 );
7828 Py_INCREF(Py_None);
7829 return Py_None;
7830}
7831
7832/* void v4i long s[4] */
7833
7834static PyObject *
7835gl_v4i(self, args)
7836 PyObject *self;
7837 PyObject *args;
7838{
7839 long arg1 [ 4 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007840 if (!getilongarray(args, 1, 0, 4 , arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007841 return NULL;
7842 v4i( arg1 );
7843 Py_INCREF(Py_None);
7844 return Py_None;
7845}
7846
7847/* void v4s short s[4] */
7848
7849static PyObject *
7850gl_v4s(self, args)
7851 PyObject *self;
7852 PyObject *args;
7853{
7854 short arg1 [ 4 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007855 if (!getishortarray(args, 1, 0, 4 , arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007856 return NULL;
7857 v4s( arg1 );
7858 Py_INCREF(Py_None);
7859 return Py_None;
7860}
7861
7862/* void videocmd long s */
7863
7864static PyObject *
7865gl_videocmd(self, args)
7866 PyObject *self;
7867 PyObject *args;
7868{
7869 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007870 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007871 return NULL;
7872 videocmd( arg1 );
7873 Py_INCREF(Py_None);
7874 return Py_None;
7875}
7876
7877/* long windepth long s */
7878
7879static PyObject *
7880gl_windepth(self, args)
7881 PyObject *self;
7882 PyObject *args;
7883{
7884 long retval;
7885 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007886 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007887 return NULL;
7888 retval = windepth( arg1 );
7889 return mknewlongobject(retval);
7890}
7891
7892/* void wmpack long s */
7893
7894static PyObject *
7895gl_wmpack(self, args)
7896 PyObject *self;
7897 PyObject *args;
7898{
7899 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007900 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007901 return NULL;
7902 wmpack( arg1 );
7903 Py_INCREF(Py_None);
7904 return Py_None;
7905}
7906
7907/* void zdraw long s */
7908
7909static PyObject *
7910gl_zdraw(self, args)
7911 PyObject *self;
7912 PyObject *args;
7913{
7914 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007915 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007916 return NULL;
7917 zdraw( arg1 );
7918 Py_INCREF(Py_None);
7919 return Py_None;
7920}
7921
7922/* void zfunction long s */
7923
7924static PyObject *
7925gl_zfunction(self, args)
7926 PyObject *self;
7927 PyObject *args;
7928{
7929 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007930 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007931 return NULL;
7932 zfunction( arg1 );
7933 Py_INCREF(Py_None);
7934 return Py_None;
7935}
7936
7937/* void zsource long s */
7938
7939static PyObject *
7940gl_zsource(self, args)
7941 PyObject *self;
7942 PyObject *args;
7943{
7944 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007945 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007946 return NULL;
7947 zsource( arg1 );
7948 Py_INCREF(Py_None);
7949 return Py_None;
7950}
7951
7952/* void zwritemask long s */
7953
7954static PyObject *
7955gl_zwritemask(self, args)
7956 PyObject *self;
7957 PyObject *args;
7958{
7959 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007960 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007961 return NULL;
7962 zwritemask( arg1 );
7963 Py_INCREF(Py_None);
7964 return Py_None;
7965}
7966
7967/* void v2d double s[2] */
7968
7969static PyObject *
7970gl_v2d(self, args)
7971 PyObject *self;
7972 PyObject *args;
7973{
7974 double arg1 [ 2 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007975 if (!getidoublearray(args, 1, 0, 2 , arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007976 return NULL;
7977 v2d( arg1 );
7978 Py_INCREF(Py_None);
7979 return Py_None;
7980}
7981
7982/* void v3d double s[3] */
7983
7984static PyObject *
7985gl_v3d(self, args)
7986 PyObject *self;
7987 PyObject *args;
7988{
7989 double arg1 [ 3 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007990 if (!getidoublearray(args, 1, 0, 3 , arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007991 return NULL;
7992 v3d( arg1 );
7993 Py_INCREF(Py_None);
7994 return Py_None;
7995}
7996
7997/* void v4d double s[4] */
7998
7999static PyObject *
8000gl_v4d(self, args)
8001 PyObject *self;
8002 PyObject *args;
8003{
8004 double arg1 [ 4 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00008005 if (!getidoublearray(args, 1, 0, 4 , arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00008006 return NULL;
8007 v4d( arg1 );
8008 Py_INCREF(Py_None);
8009 return Py_None;
8010}
8011
8012/* void pixmode long s long s */
8013
8014static PyObject *
8015gl_pixmode(self, args)
8016 PyObject *self;
8017 PyObject *args;
8018{
8019 long arg1 ;
8020 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00008021 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00008022 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00008023 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00008024 return NULL;
8025 pixmode( arg1 , arg2 );
8026 Py_INCREF(Py_None);
8027 return Py_None;
8028}
8029
8030/* long qgetfd */
8031
8032static PyObject *
8033gl_qgetfd(self, args)
8034 PyObject *self;
8035 PyObject *args;
8036{
8037 long retval;
8038 retval = qgetfd( );
8039 return mknewlongobject(retval);
8040}
8041
8042/* void dither long s */
8043
8044static PyObject *
8045gl_dither(self, args)
8046 PyObject *self;
8047 PyObject *args;
8048{
8049 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00008050 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00008051 return NULL;
8052 dither( arg1 );
8053 Py_INCREF(Py_None);
8054 return Py_None;
8055}
8056
Guido van Rossumdfed9201997-04-29 15:46:43 +00008057static struct PyMethodDef gl_methods[] = {
Roger E. Massefbd1d741996-12-24 19:39:23 +00008058 {"qread", gl_qread},
8059 {"varray", gl_varray},
8060 {"nvarray", gl_nvarray},
8061 {"vnarray", gl_vnarray},
8062 {"nurbssurface", gl_nurbssurface},
8063 {"nurbscurve", gl_nurbscurve},
8064 {"pwlcurve", gl_pwlcurve},
8065 {"pick", gl_pick},
8066 {"endpick", gl_endpick},
8067 {"gselect", gl_gselect},
8068 {"endselect", gl_endselect},
8069 {"getmatrix", gl_getmatrix},
8070 {"altgetmatrix", gl_altgetmatrix},
8071 {"lrectwrite", gl_lrectwrite},
8072 {"lrectread", gl_lrectread},
8073 {"readdisplay", gl_readdisplay},
8074 {"packrect", gl_packrect},
8075 {"unpackrect", gl_unpackrect},
8076 {"gversion", gl_gversion},
Guido van Rossum89733a81998-10-21 16:10:40 +00008077 {"clear", gl_clear},
Roger E. Massefbd1d741996-12-24 19:39:23 +00008078 {"getshade", gl_getshade},
8079 {"devport", gl_devport},
8080 {"rdr2i", gl_rdr2i},
8081 {"rectfs", gl_rectfs},
8082 {"rects", gl_rects},
8083 {"rmv2i", gl_rmv2i},
8084 {"noport", gl_noport},
8085 {"popviewport", gl_popviewport},
Roger E. Massefbd1d741996-12-24 19:39:23 +00008086 {"clearhitcode", gl_clearhitcode},
8087 {"closeobj", gl_closeobj},
8088 {"cursoff", gl_cursoff},
8089 {"curson", gl_curson},
8090 {"doublebuffer", gl_doublebuffer},
8091 {"finish", gl_finish},
8092 {"gconfig", gl_gconfig},
8093 {"ginit", gl_ginit},
8094 {"greset", gl_greset},
8095 {"multimap", gl_multimap},
8096 {"onemap", gl_onemap},
8097 {"popattributes", gl_popattributes},
8098 {"popmatrix", gl_popmatrix},
8099 {"pushattributes", gl_pushattributes},
8100 {"pushmatrix", gl_pushmatrix},
8101 {"pushviewport", gl_pushviewport},
8102 {"qreset", gl_qreset},
8103 {"RGBmode", gl_RGBmode},
8104 {"singlebuffer", gl_singlebuffer},
8105 {"swapbuffers", gl_swapbuffers},
8106 {"gsync", gl_gsync},
8107 {"gflush", gl_gflush},
8108 {"tpon", gl_tpon},
8109 {"tpoff", gl_tpoff},
8110 {"clkon", gl_clkon},
8111 {"clkoff", gl_clkoff},
8112 {"ringbell", gl_ringbell},
8113 {"gbegin", gl_gbegin},
8114 {"textinit", gl_textinit},
8115 {"initnames", gl_initnames},
8116 {"pclos", gl_pclos},
8117 {"popname", gl_popname},
8118 {"spclos", gl_spclos},
8119 {"zclear", gl_zclear},
8120 {"screenspace", gl_screenspace},
8121 {"reshapeviewport", gl_reshapeviewport},
8122 {"winpush", gl_winpush},
8123 {"winpop", gl_winpop},
8124 {"foreground", gl_foreground},
8125 {"endfullscrn", gl_endfullscrn},
8126 {"endpupmode", gl_endpupmode},
8127 {"fullscrn", gl_fullscrn},
8128 {"pupmode", gl_pupmode},
8129 {"winconstraints", gl_winconstraints},
8130 {"pagecolor", gl_pagecolor},
8131 {"textcolor", gl_textcolor},
8132 {"color", gl_color},
8133 {"curveit", gl_curveit},
8134 {"font", gl_font},
8135 {"linewidth", gl_linewidth},
8136 {"setlinestyle", gl_setlinestyle},
8137 {"setmap", gl_setmap},
8138 {"swapinterval", gl_swapinterval},
8139 {"writemask", gl_writemask},
8140 {"textwritemask", gl_textwritemask},
8141 {"qdevice", gl_qdevice},
8142 {"unqdevice", gl_unqdevice},
8143 {"curvebasis", gl_curvebasis},
8144 {"curveprecision", gl_curveprecision},
8145 {"loadname", gl_loadname},
8146 {"passthrough", gl_passthrough},
8147 {"pushname", gl_pushname},
8148 {"setmonitor", gl_setmonitor},
8149 {"setshade", gl_setshade},
8150 {"setpattern", gl_setpattern},
8151 {"pagewritemask", gl_pagewritemask},
8152 {"callobj", gl_callobj},
8153 {"delobj", gl_delobj},
8154 {"editobj", gl_editobj},
8155 {"makeobj", gl_makeobj},
8156 {"maketag", gl_maketag},
8157 {"chunksize", gl_chunksize},
8158 {"compactify", gl_compactify},
8159 {"deltag", gl_deltag},
8160 {"lsrepeat", gl_lsrepeat},
8161 {"objinsert", gl_objinsert},
8162 {"objreplace", gl_objreplace},
8163 {"winclose", gl_winclose},
8164 {"blanktime", gl_blanktime},
8165 {"freepup", gl_freepup},
8166 {"backbuffer", gl_backbuffer},
8167 {"frontbuffer", gl_frontbuffer},
8168 {"lsbackup", gl_lsbackup},
8169 {"resetls", gl_resetls},
8170 {"lampon", gl_lampon},
8171 {"lampoff", gl_lampoff},
8172 {"setbell", gl_setbell},
8173 {"blankscreen", gl_blankscreen},
8174 {"depthcue", gl_depthcue},
8175 {"zbuffer", gl_zbuffer},
8176 {"backface", gl_backface},
8177 {"cmov2i", gl_cmov2i},
8178 {"draw2i", gl_draw2i},
8179 {"move2i", gl_move2i},
8180 {"pnt2i", gl_pnt2i},
8181 {"patchbasis", gl_patchbasis},
8182 {"patchprecision", gl_patchprecision},
8183 {"pdr2i", gl_pdr2i},
8184 {"pmv2i", gl_pmv2i},
8185 {"rpdr2i", gl_rpdr2i},
8186 {"rpmv2i", gl_rpmv2i},
8187 {"xfpt2i", gl_xfpt2i},
8188 {"objdelete", gl_objdelete},
8189 {"patchcurves", gl_patchcurves},
8190 {"minsize", gl_minsize},
8191 {"maxsize", gl_maxsize},
8192 {"keepaspect", gl_keepaspect},
8193 {"prefsize", gl_prefsize},
8194 {"stepunit", gl_stepunit},
8195 {"fudge", gl_fudge},
8196 {"winmove", gl_winmove},
8197 {"attachcursor", gl_attachcursor},
8198 {"deflinestyle", gl_deflinestyle},
8199 {"noise", gl_noise},
8200 {"picksize", gl_picksize},
8201 {"qenter", gl_qenter},
8202 {"setdepth", gl_setdepth},
8203 {"cmov2s", gl_cmov2s},
8204 {"draw2s", gl_draw2s},
8205 {"move2s", gl_move2s},
8206 {"pdr2s", gl_pdr2s},
8207 {"pmv2s", gl_pmv2s},
8208 {"pnt2s", gl_pnt2s},
8209 {"rdr2s", gl_rdr2s},
8210 {"rmv2s", gl_rmv2s},
8211 {"rpdr2s", gl_rpdr2s},
8212 {"rpmv2s", gl_rpmv2s},
8213 {"xfpt2s", gl_xfpt2s},
8214 {"cmov2", gl_cmov2},
8215 {"draw2", gl_draw2},
8216 {"move2", gl_move2},
8217 {"pnt2", gl_pnt2},
8218 {"pdr2", gl_pdr2},
8219 {"pmv2", gl_pmv2},
8220 {"rdr2", gl_rdr2},
8221 {"rmv2", gl_rmv2},
8222 {"rpdr2", gl_rpdr2},
8223 {"rpmv2", gl_rpmv2},
8224 {"xfpt2", gl_xfpt2},
8225 {"loadmatrix", gl_loadmatrix},
8226 {"multmatrix", gl_multmatrix},
8227 {"crv", gl_crv},
8228 {"rcrv", gl_rcrv},
8229 {"addtopup", gl_addtopup},
8230 {"charstr", gl_charstr},
8231 {"getport", gl_getport},
8232 {"strwidth", gl_strwidth},
8233 {"winopen", gl_winopen},
8234 {"wintitle", gl_wintitle},
8235 {"polf", gl_polf},
8236 {"polf2", gl_polf2},
8237 {"poly", gl_poly},
8238 {"poly2", gl_poly2},
8239 {"crvn", gl_crvn},
8240 {"rcrvn", gl_rcrvn},
8241 {"polf2i", gl_polf2i},
8242 {"polfi", gl_polfi},
8243 {"poly2i", gl_poly2i},
8244 {"polyi", gl_polyi},
8245 {"polf2s", gl_polf2s},
8246 {"polfs", gl_polfs},
8247 {"polys", gl_polys},
8248 {"poly2s", gl_poly2s},
8249 {"defcursor", gl_defcursor},
8250 {"writepixels", gl_writepixels},
8251 {"defbasis", gl_defbasis},
8252 {"gewrite", gl_gewrite},
8253 {"rotate", gl_rotate},
8254 {"rot", gl_rot},
8255 {"circfi", gl_circfi},
8256 {"circi", gl_circi},
8257 {"cmovi", gl_cmovi},
8258 {"drawi", gl_drawi},
8259 {"movei", gl_movei},
8260 {"pnti", gl_pnti},
8261 {"newtag", gl_newtag},
8262 {"pdri", gl_pdri},
8263 {"pmvi", gl_pmvi},
8264 {"rdri", gl_rdri},
8265 {"rmvi", gl_rmvi},
8266 {"rpdri", gl_rpdri},
8267 {"rpmvi", gl_rpmvi},
8268 {"xfpti", gl_xfpti},
8269 {"circ", gl_circ},
8270 {"circf", gl_circf},
8271 {"cmov", gl_cmov},
8272 {"draw", gl_draw},
8273 {"move", gl_move},
8274 {"pnt", gl_pnt},
8275 {"scale", gl_scale},
8276 {"translate", gl_translate},
8277 {"pdr", gl_pdr},
8278 {"pmv", gl_pmv},
8279 {"rdr", gl_rdr},
8280 {"rmv", gl_rmv},
8281 {"rpdr", gl_rpdr},
8282 {"rpmv", gl_rpmv},
8283 {"xfpt", gl_xfpt},
8284 {"RGBcolor", gl_RGBcolor},
8285 {"RGBwritemask", gl_RGBwritemask},
8286 {"setcursor", gl_setcursor},
8287 {"tie", gl_tie},
8288 {"circfs", gl_circfs},
8289 {"circs", gl_circs},
8290 {"cmovs", gl_cmovs},
8291 {"draws", gl_draws},
8292 {"moves", gl_moves},
8293 {"pdrs", gl_pdrs},
8294 {"pmvs", gl_pmvs},
8295 {"pnts", gl_pnts},
8296 {"rdrs", gl_rdrs},
8297 {"rmvs", gl_rmvs},
8298 {"rpdrs", gl_rpdrs},
8299 {"rpmvs", gl_rpmvs},
8300 {"xfpts", gl_xfpts},
8301 {"curorigin", gl_curorigin},
8302 {"cyclemap", gl_cyclemap},
8303 {"patch", gl_patch},
8304 {"splf", gl_splf},
8305 {"splf2", gl_splf2},
8306 {"splfi", gl_splfi},
8307 {"splf2i", gl_splf2i},
8308 {"splfs", gl_splfs},
8309 {"splf2s", gl_splf2s},
8310 {"rpatch", gl_rpatch},
8311 {"ortho2", gl_ortho2},
8312 {"rect", gl_rect},
8313 {"rectf", gl_rectf},
8314 {"xfpt4", gl_xfpt4},
8315 {"textport", gl_textport},
8316 {"mapcolor", gl_mapcolor},
8317 {"scrmask", gl_scrmask},
8318 {"setvaluator", gl_setvaluator},
8319 {"viewport", gl_viewport},
8320 {"shaderange", gl_shaderange},
8321 {"xfpt4s", gl_xfpt4s},
8322 {"rectfi", gl_rectfi},
8323 {"recti", gl_recti},
8324 {"xfpt4i", gl_xfpt4i},
8325 {"prefposition", gl_prefposition},
8326 {"arc", gl_arc},
8327 {"arcf", gl_arcf},
8328 {"arcfi", gl_arcfi},
8329 {"arci", gl_arci},
8330 {"bbox2", gl_bbox2},
8331 {"bbox2i", gl_bbox2i},
8332 {"bbox2s", gl_bbox2s},
8333 {"blink", gl_blink},
8334 {"ortho", gl_ortho},
8335 {"window", gl_window},
8336 {"lookat", gl_lookat},
8337 {"perspective", gl_perspective},
8338 {"polarview", gl_polarview},
8339 {"arcfs", gl_arcfs},
8340 {"arcs", gl_arcs},
8341 {"rectcopy", gl_rectcopy},
8342 {"RGBcursor", gl_RGBcursor},
8343 {"getbutton", gl_getbutton},
8344 {"getcmmode", gl_getcmmode},
8345 {"getlsbackup", gl_getlsbackup},
8346 {"getresetls", gl_getresetls},
8347 {"getdcm", gl_getdcm},
8348 {"getzbuffer", gl_getzbuffer},
8349 {"ismex", gl_ismex},
8350 {"isobj", gl_isobj},
8351 {"isqueued", gl_isqueued},
8352 {"istag", gl_istag},
8353 {"genobj", gl_genobj},
8354 {"gentag", gl_gentag},
8355 {"getbuffer", gl_getbuffer},
8356 {"getcolor", gl_getcolor},
8357 {"getdisplaymode", gl_getdisplaymode},
8358 {"getfont", gl_getfont},
8359 {"getheight", gl_getheight},
8360 {"gethitcode", gl_gethitcode},
8361 {"getlstyle", gl_getlstyle},
8362 {"getlwidth", gl_getlwidth},
8363 {"getmap", gl_getmap},
8364 {"getplanes", gl_getplanes},
8365 {"getwritemask", gl_getwritemask},
8366 {"qtest", gl_qtest},
8367 {"getlsrepeat", gl_getlsrepeat},
8368 {"getmonitor", gl_getmonitor},
8369 {"getopenobj", gl_getopenobj},
8370 {"getpattern", gl_getpattern},
8371 {"winget", gl_winget},
8372 {"winattach", gl_winattach},
8373 {"getothermonitor", gl_getothermonitor},
8374 {"newpup", gl_newpup},
8375 {"getvaluator", gl_getvaluator},
8376 {"winset", gl_winset},
8377 {"dopup", gl_dopup},
8378 {"getdepth", gl_getdepth},
8379 {"getcpos", gl_getcpos},
8380 {"getsize", gl_getsize},
8381 {"getorigin", gl_getorigin},
8382 {"getviewport", gl_getviewport},
8383 {"gettp", gl_gettp},
8384 {"getgpos", gl_getgpos},
8385 {"winposition", gl_winposition},
8386 {"gRGBcolor", gl_gRGBcolor},
8387 {"gRGBmask", gl_gRGBmask},
8388 {"getscrmask", gl_getscrmask},
8389 {"getmcolor", gl_getmcolor},
8390 {"mapw", gl_mapw},
8391 {"mapw2", gl_mapw2},
8392 {"getcursor", gl_getcursor},
8393 {"cmode", gl_cmode},
8394 {"concave", gl_concave},
8395 {"curstype", gl_curstype},
8396 {"drawmode", gl_drawmode},
8397 {"gammaramp", gl_gammaramp},
8398 {"getbackface", gl_getbackface},
8399 {"getdescender", gl_getdescender},
8400 {"getdrawmode", gl_getdrawmode},
8401 {"getmmode", gl_getmmode},
8402 {"getsm", gl_getsm},
8403 {"getvideo", gl_getvideo},
8404 {"imakebackground", gl_imakebackground},
8405 {"lmbind", gl_lmbind},
8406 {"lmdef", gl_lmdef},
8407 {"mmode", gl_mmode},
8408 {"normal", gl_normal},
8409 {"overlay", gl_overlay},
8410 {"RGBrange", gl_RGBrange},
8411 {"setvideo", gl_setvideo},
8412 {"shademodel", gl_shademodel},
8413 {"underlay", gl_underlay},
8414 {"bgnclosedline", gl_bgnclosedline},
8415 {"bgnline", gl_bgnline},
8416 {"bgnpoint", gl_bgnpoint},
8417 {"bgnpolygon", gl_bgnpolygon},
8418 {"bgnsurface", gl_bgnsurface},
8419 {"bgntmesh", gl_bgntmesh},
8420 {"bgntrim", gl_bgntrim},
8421 {"endclosedline", gl_endclosedline},
8422 {"endline", gl_endline},
8423 {"endpoint", gl_endpoint},
8424 {"endpolygon", gl_endpolygon},
8425 {"endsurface", gl_endsurface},
8426 {"endtmesh", gl_endtmesh},
8427 {"endtrim", gl_endtrim},
8428 {"blendfunction", gl_blendfunction},
8429 {"c3f", gl_c3f},
8430 {"c3i", gl_c3i},
8431 {"c3s", gl_c3s},
8432 {"c4f", gl_c4f},
8433 {"c4i", gl_c4i},
8434 {"c4s", gl_c4s},
8435 {"colorf", gl_colorf},
8436 {"cpack", gl_cpack},
8437 {"czclear", gl_czclear},
8438 {"dglclose", gl_dglclose},
8439 {"dglopen", gl_dglopen},
8440 {"getgdesc", gl_getgdesc},
8441 {"getnurbsproperty", gl_getnurbsproperty},
8442 {"glcompat", gl_glcompat},
8443 {"iconsize", gl_iconsize},
8444 {"icontitle", gl_icontitle},
8445 {"lRGBrange", gl_lRGBrange},
8446 {"linesmooth", gl_linesmooth},
8447 {"lmcolor", gl_lmcolor},
8448 {"logicop", gl_logicop},
8449 {"lsetdepth", gl_lsetdepth},
8450 {"lshaderange", gl_lshaderange},
8451 {"n3f", gl_n3f},
8452 {"noborder", gl_noborder},
8453 {"pntsmooth", gl_pntsmooth},
8454 {"readsource", gl_readsource},
8455 {"rectzoom", gl_rectzoom},
8456 {"sbox", gl_sbox},
8457 {"sboxi", gl_sboxi},
8458 {"sboxs", gl_sboxs},
8459 {"sboxf", gl_sboxf},
8460 {"sboxfi", gl_sboxfi},
8461 {"sboxfs", gl_sboxfs},
8462 {"setnurbsproperty", gl_setnurbsproperty},
8463 {"setpup", gl_setpup},
8464 {"smoothline", gl_smoothline},
8465 {"subpixel", gl_subpixel},
8466 {"swaptmesh", gl_swaptmesh},
8467 {"swinopen", gl_swinopen},
8468 {"v2f", gl_v2f},
8469 {"v2i", gl_v2i},
8470 {"v2s", gl_v2s},
8471 {"v3f", gl_v3f},
8472 {"v3i", gl_v3i},
8473 {"v3s", gl_v3s},
8474 {"v4f", gl_v4f},
8475 {"v4i", gl_v4i},
8476 {"v4s", gl_v4s},
8477 {"videocmd", gl_videocmd},
8478 {"windepth", gl_windepth},
8479 {"wmpack", gl_wmpack},
8480 {"zdraw", gl_zdraw},
8481 {"zfunction", gl_zfunction},
8482 {"zsource", gl_zsource},
8483 {"zwritemask", gl_zwritemask},
8484 {"v2d", gl_v2d},
8485 {"v3d", gl_v3d},
8486 {"v4d", gl_v4d},
8487 {"pixmode", gl_pixmode},
8488 {"qgetfd", gl_qgetfd},
8489 {"dither", gl_dither},
8490 {NULL, NULL} /* Sentinel */
8491};
8492
8493void
8494initgl()
8495{
Guido van Rossumdfed9201997-04-29 15:46:43 +00008496 (void) Py_InitModule("gl", gl_methods);
Roger E. Massefbd1d741996-12-24 19:39:23 +00008497}