blob: 4a1b66fb6979ca3a0530844044a5a7d8e106c51b [file] [log] [blame]
Roger E. Massefbd1d741996-12-24 19:39:23 +00001
2/*
3Input used to generate the Python module "glmodule.c".
4The stub generator is a Python script called "cgen.py".
5
6Each definition must be contained on one line:
7
8<returntype> <name> <type> <arg> <type> <arg>
9
10<returntype> can be: void, short, long (XXX maybe others?)
11
12<type> can be: char, string, short, float, long, or double
13 string indicates a null terminated string;
14 if <type> is char and <arg> begins with a *, the * is stripped
15 and <type> is changed into string
16
17<arg> has the form <mode> or <mode>[<subscript>]
18 where <mode> can be
19 s: arg is sent
20 r: arg is received (arg is a pointer)
21 and <subscript> can be (N and I are numbers):
22 N
23 argI
24 retval
25 N*argI
26 N*I
27 N*retval
28 In the case where the subscript consists of two parts
29 separated by *, the first part is the width of the matrix, and
30 the second part is the length of the matrix. This order is
31 opposite from the order used in C to declare a two-dimensional
32 matrix.
33*/
34
35/*
36 * An attempt has been made to make this module switch threads on qread
37 * calls. It is far from safe, though.
38 */
39
40#include <gl.h>
41#include <device.h>
42
43#ifdef __sgi
44extern int devport();
45extern int textwritemask();
46extern int pagewritemask();
47extern int gewrite();
48extern int gettp();
49#endif
50
51#include "Python.h"
52#include "cgensupport.h"
53
Roger E. Massefbd1d741996-12-24 19:39:23 +000054/*
55Some stubs are too complicated for the stub generator.
56We can include manually written versions of them here.
57A line starting with '%' gives the name of the function so the stub
58generator can include it in the table of functions.
59*/
60
61
62static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +000063gl_qread(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +000064{
65 long retval;
66 short arg1 ;
67 Py_BEGIN_ALLOW_THREADS
68 retval = qread( & arg1 );
69 Py_END_ALLOW_THREADS
70 { PyObject *v = PyTuple_New( 2 );
71 if (v == NULL) return NULL;
72 PyTuple_SetItem(v, 0, mknewlongobject(retval));
73 PyTuple_SetItem(v, 1, mknewshortobject(arg1));
74 return v;
75 }
76}
77
78
79/*
80varray -- an array of v.. calls.
81The argument is an array (maybe list or tuple) of points.
82Each point must be a tuple or list of coordinates (x, y, z).
83The points may be 2- or 3-dimensional but must all have the
84same dimension. Float and int values may be mixed however.
85The points are always converted to 3D double precision points
86by assuming z=0.0 if necessary (as indicated in the man page),
87and for each point v3d() is called.
88*/
89
90
91static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +000092gl_varray(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +000093{
94 PyObject *v, *w=NULL;
95 int i, n, width;
96 double vec[3];
Tim Petersdbd9ba62000-07-09 03:09:57 +000097 PyObject * (*getitem)(PyObject *, int);
Roger E. Massefbd1d741996-12-24 19:39:23 +000098
99 if (!PyArg_GetObject(args, 1, 0, &v))
100 return NULL;
101
102 if (PyList_Check(v)) {
103 n = PyList_Size(v);
104 getitem = PyList_GetItem;
105 }
106 else if (PyTuple_Check(v)) {
107 n = PyTuple_Size(v);
108 getitem = PyTuple_GetItem;
109 }
110 else {
111 PyErr_BadArgument();
112 return NULL;
113 }
114
115 if (n == 0) {
116 Py_INCREF(Py_None);
117 return Py_None;
118 }
119 if (n > 0)
120 w = (*getitem)(v, 0);
121
122 width = 0;
123 if (w == NULL) {
124 }
125 else if (PyList_Check(w)) {
126 width = PyList_Size(w);
127 }
128 else if (PyTuple_Check(w)) {
129 width = PyTuple_Size(w);
130 }
131
132 switch (width) {
133 case 2:
134 vec[2] = 0.0;
135 /* Fall through */
136 case 3:
137 break;
138 default:
139 PyErr_BadArgument();
140 return NULL;
141 }
142
143 for (i = 0; i < n; i++) {
144 w = (*getitem)(v, i);
145 if (!PyArg_GetDoubleArray(w, 1, 0, width, vec))
146 return NULL;
147 v3d(vec);
148 }
149
150 Py_INCREF(Py_None);
151 return Py_None;
152}
153
154/*
155vnarray, nvarray -- an array of n3f and v3f calls.
156The argument is an array (list or tuple) of pairs of points and normals.
157Each pair is a tuple (NOT a list) of a point and a normal for that point.
158Each point or normal must be a tuple (NOT a list) of coordinates (x, y, z).
159Three coordinates must be given. Float and int values may be mixed.
160For each pair, n3f() is called for the normal, and then v3f() is called
161for the vector.
162
163vnarray and nvarray differ only in the order of the vector and normal in
164the pair: vnarray expects (v, n) while nvarray expects (n, v).
165*/
166
167static PyObject *gen_nvarray(); /* Forward */
168
169
170static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +0000171gl_nvarray(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +0000172{
173 return gen_nvarray(args, 0);
174}
175
176
177static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +0000178gl_vnarray(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +0000179{
180 return gen_nvarray(args, 1);
181}
182
183/* Generic, internal version of {nv,nv}array: inorm indicates the
184 argument order, 0: normal first, 1: vector first. */
185
186static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +0000187gen_nvarray(PyObject *args, int inorm)
Roger E. Massefbd1d741996-12-24 19:39:23 +0000188{
189 PyObject *v, *w, *wnorm, *wvec;
190 int i, n;
191 float norm[3], vec[3];
Tim Petersdbd9ba62000-07-09 03:09:57 +0000192 PyObject * (*getitem)(PyObject *, int);
Roger E. Massefbd1d741996-12-24 19:39:23 +0000193
194 if (!PyArg_GetObject(args, 1, 0, &v))
195 return NULL;
196
197 if (PyList_Check(v)) {
198 n = PyList_Size(v);
199 getitem = PyList_GetItem;
200 }
201 else if (PyTuple_Check(v)) {
202 n = PyTuple_Size(v);
203 getitem = PyTuple_GetItem;
204 }
205 else {
206 PyErr_BadArgument();
207 return NULL;
208 }
209
210 for (i = 0; i < n; i++) {
211 w = (*getitem)(v, i);
212 if (!PyTuple_Check(w) || PyTuple_Size(w) != 2) {
213 PyErr_BadArgument();
214 return NULL;
215 }
216 wnorm = PyTuple_GetItem(w, inorm);
217 wvec = PyTuple_GetItem(w, 1 - inorm);
218 if (!PyArg_GetFloatArray(wnorm, 1, 0, 3, norm) ||
219 !PyArg_GetFloatArray(wvec, 1, 0, 3, vec))
220 return NULL;
221 n3f(norm);
222 v3f(vec);
223 }
224
225 Py_INCREF(Py_None);
226 return Py_None;
227}
228
229/* nurbssurface(s_knots[], t_knots[], ctl[][], s_order, t_order, type).
230 The dimensions of ctl[] are computed as follows:
231 [len(s_knots) - s_order], [len(t_knots) - t_order]
232*/
233
234
235static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +0000236gl_nurbssurface(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +0000237{
238 long arg1 ;
239 double * arg2 ;
240 long arg3 ;
241 double * arg4 ;
242 double *arg5 ;
243 long arg6 ;
244 long arg7 ;
245 long arg8 ;
246 long ncoords;
247 long s_byte_stride, t_byte_stride;
248 long s_nctl, t_nctl;
249 long s, t;
250 PyObject *v, *w, *pt;
251 double *pnext;
252 if (!PyArg_GetLongArraySize(args, 6, 0, &arg1))
253 return NULL;
254 if ((arg2 = PyMem_NEW(double, arg1 )) == NULL) {
255 return PyErr_NoMemory();
256 }
257 if (!PyArg_GetDoubleArray(args, 6, 0, arg1 , arg2))
258 return NULL;
259 if (!PyArg_GetLongArraySize(args, 6, 1, &arg3))
260 return NULL;
261 if ((arg4 = PyMem_NEW(double, arg3 )) == NULL) {
262 return PyErr_NoMemory();
263 }
264 if (!PyArg_GetDoubleArray(args, 6, 1, arg3 , arg4))
265 return NULL;
266 if (!PyArg_GetLong(args, 6, 3, &arg6))
267 return NULL;
268 if (!PyArg_GetLong(args, 6, 4, &arg7))
269 return NULL;
270 if (!PyArg_GetLong(args, 6, 5, &arg8))
271 return NULL;
272 if (arg8 == N_XYZ)
273 ncoords = 3;
274 else if (arg8 == N_XYZW)
275 ncoords = 4;
276 else {
277 PyErr_BadArgument();
278 return NULL;
279 }
280 s_nctl = arg1 - arg6;
281 t_nctl = arg3 - arg7;
282 if (!PyArg_GetObject(args, 6, 2, &v))
283 return NULL;
284 if (!PyList_Check(v) || PyList_Size(v) != s_nctl) {
285 PyErr_BadArgument();
286 return NULL;
287 }
288 if ((arg5 = PyMem_NEW(double, s_nctl*t_nctl*ncoords )) == NULL) {
289 return PyErr_NoMemory();
290 }
291 pnext = arg5;
292 for (s = 0; s < s_nctl; s++) {
293 w = PyList_GetItem(v, s);
294 if (w == NULL || !PyList_Check(w) ||
295 PyList_Size(w) != t_nctl) {
296 PyErr_BadArgument();
297 return NULL;
298 }
299 for (t = 0; t < t_nctl; t++) {
300 pt = PyList_GetItem(w, t);
301 if (!PyArg_GetDoubleArray(pt, 1, 0, ncoords, pnext))
302 return NULL;
303 pnext += ncoords;
304 }
305 }
306 s_byte_stride = sizeof(double) * ncoords;
307 t_byte_stride = s_byte_stride * s_nctl;
308 nurbssurface( arg1 , arg2 , arg3 , arg4 ,
309 s_byte_stride , t_byte_stride , arg5 , arg6 , arg7 , arg8 );
310 PyMem_DEL(arg2);
311 PyMem_DEL(arg4);
312 PyMem_DEL(arg5);
313 Py_INCREF(Py_None);
314 return Py_None;
315}
316
317/* nurbscurve(knots, ctlpoints, order, type).
318 The length of ctlpoints is len(knots)-order. */
319
320
321static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +0000322gl_nurbscurve(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +0000323{
324 long arg1 ;
325 double * arg2 ;
326 long arg3 ;
327 double * arg4 ;
328 long arg5 ;
329 long arg6 ;
330 int ncoords, npoints;
331 int i;
332 PyObject *v;
333 double *pnext;
334 if (!PyArg_GetLongArraySize(args, 4, 0, &arg1))
335 return NULL;
336 if ((arg2 = PyMem_NEW(double, arg1 )) == NULL) {
337 return PyErr_NoMemory();
338 }
339 if (!PyArg_GetDoubleArray(args, 4, 0, arg1 , arg2))
340 return NULL;
341 if (!PyArg_GetLong(args, 4, 2, &arg5))
342 return NULL;
343 if (!PyArg_GetLong(args, 4, 3, &arg6))
344 return NULL;
345 if (arg6 == N_ST)
346 ncoords = 2;
347 else if (arg6 == N_STW)
348 ncoords = 3;
349 else {
350 PyErr_BadArgument();
351 return NULL;
352 }
353 npoints = arg1 - arg5;
354 if (!PyArg_GetObject(args, 4, 1, &v))
355 return NULL;
356 if (!PyList_Check(v) || PyList_Size(v) != npoints) {
357 PyErr_BadArgument();
358 return NULL;
359 }
360 if ((arg4 = PyMem_NEW(double, npoints*ncoords )) == NULL) {
361 return PyErr_NoMemory();
362 }
363 pnext = arg4;
364 for (i = 0; i < npoints; i++) {
Guido van Rossumdfed9201997-04-29 15:46:43 +0000365 if (!PyArg_GetDoubleArray(PyList_GetItem(v, i), 1, 0, ncoords, pnext))
Roger E. Massefbd1d741996-12-24 19:39:23 +0000366 return NULL;
367 pnext += ncoords;
368 }
369 arg3 = (sizeof(double)) * ncoords;
370 nurbscurve( arg1 , arg2 , arg3 , arg4 , arg5 , arg6 );
371 PyMem_DEL(arg2);
372 PyMem_DEL(arg4);
373 Py_INCREF(Py_None);
374 return Py_None;
375}
376
377/* pwlcurve(points, type).
378 Points is a list of points. Type must be N_ST. */
379
380
381static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +0000382gl_pwlcurve(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +0000383{
384 PyObject *v;
385 long type;
386 double *data, *pnext;
387 long npoints, ncoords;
388 int i;
389 if (!PyArg_GetObject(args, 2, 0, &v))
390 return NULL;
391 if (!PyArg_GetLong(args, 2, 1, &type))
392 return NULL;
393 if (!PyList_Check(v)) {
394 PyErr_BadArgument();
395 return NULL;
396 }
397 npoints = PyList_Size(v);
398 if (type == N_ST)
399 ncoords = 2;
400 else {
401 PyErr_BadArgument();
402 return NULL;
403 }
404 if ((data = PyMem_NEW(double, npoints*ncoords)) == NULL) {
405 return PyErr_NoMemory();
406 }
407 pnext = data;
408 for (i = 0; i < npoints; i++) {
Guido van Rossumdfed9201997-04-29 15:46:43 +0000409 if (!PyArg_GetDoubleArray(PyList_GetItem(v, i), 1, 0, ncoords, pnext))
Roger E. Massefbd1d741996-12-24 19:39:23 +0000410 return NULL;
411 pnext += ncoords;
412 }
413 pwlcurve(npoints, data, sizeof(double)*ncoords, type);
414 PyMem_DEL(data);
415 Py_INCREF(Py_None);
416 return Py_None;
417}
418
419
420/* Picking and Selecting */
421
422static short *pickbuffer = NULL;
423static long pickbuffersize;
424
425static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +0000426pick_select(PyObject *args, void (*func)())
Roger E. Massefbd1d741996-12-24 19:39:23 +0000427{
428 if (!PyArg_GetLong(args, 1, 0, &pickbuffersize))
429 return NULL;
430 if (pickbuffer != NULL) {
431 PyErr_SetString(PyExc_RuntimeError,
432 "pick/gselect: already picking/selecting");
433 return NULL;
434 }
435 if ((pickbuffer = PyMem_NEW(short, pickbuffersize)) == NULL) {
436 return PyErr_NoMemory();
437 }
438 (*func)(pickbuffer, pickbuffersize);
439 Py_INCREF(Py_None);
440 return Py_None;
441}
442
443static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +0000444endpick_select(PyObject *args, long (*func)())
Roger E. Massefbd1d741996-12-24 19:39:23 +0000445{
446 PyObject *v, *w;
447 int i, nhits, n;
448 if (!PyArg_NoArgs(args))
449 return NULL;
450 if (pickbuffer == NULL) {
451 PyErr_SetString(PyExc_RuntimeError,
452 "endpick/endselect: not in pick/select mode");
453 return NULL;
454 }
455 nhits = (*func)(pickbuffer);
456 if (nhits < 0) {
457 nhits = -nhits; /* How to report buffer overflow otherwise? */
458 }
459 /* Scan the buffer to see how many integers */
460 n = 0;
461 for (; nhits > 0; nhits--) {
462 n += 1 + pickbuffer[n];
463 }
464 v = PyList_New(n);
465 if (v == NULL)
466 return NULL;
467 /* XXX Could do it nicer and interpret the data structure here,
468 returning a list of lists. But this can be done in Python... */
469 for (i = 0; i < n; i++) {
470 w = PyInt_FromLong((long)pickbuffer[i]);
471 if (w == NULL) {
472 Py_DECREF(v);
473 return NULL;
474 }
475 PyList_SetItem(v, i, w);
476 }
477 PyMem_DEL(pickbuffer);
478 pickbuffer = NULL;
479 return v;
480}
481
482extern void pick(), gselect();
483extern long endpick(), endselect();
484
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +0000485static PyObject *gl_pick(PyObject *self, PyObject *args)
486{
Roger E. Massefbd1d741996-12-24 19:39:23 +0000487 return pick_select(args, pick);
488}
489
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +0000490static PyObject *gl_endpick(PyObject *self, PyObject *args)
491{
Roger E. Massefbd1d741996-12-24 19:39:23 +0000492 return endpick_select(args, endpick);
493}
494
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +0000495static PyObject *gl_gselect(PyObject *self, PyObject *args)
496{
Roger E. Massefbd1d741996-12-24 19:39:23 +0000497 return pick_select(args, gselect);
498}
499
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +0000500static PyObject *gl_endselect(PyObject *self, PyObject *args)
501{
Roger E. Massefbd1d741996-12-24 19:39:23 +0000502 return endpick_select(args, endselect);
503}
504
505
506/* XXX The generator botches this one. Here's a quick hack to fix it. */
507
508/* XXX The generator botches this one. Here's a quick hack to fix it. */
509
510
511static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +0000512gl_getmatrix(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +0000513{
514 Matrix arg1;
515 PyObject *v, *w;
516 int i, j;
517 getmatrix( arg1 );
518 v = PyList_New(16);
519 if (v == NULL) {
520 return PyErr_NoMemory();
521 }
522 for (i = 0; i < 4; i++) for (j = 0; j < 4; j++) {
523 w = mknewfloatobject(arg1[i][j]);
524 if (w == NULL) {
525 Py_DECREF(v);
526 return NULL;
527 }
528 PyList_SetItem(v, i*4+j, w);
529 }
530 return v;
531}
532
533/* Here's an alternate version that returns a 4x4 matrix instead of
534 a vector. Unfortunately it is incompatible with loadmatrix and
535 multmatrix... */
536
537
538static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +0000539gl_altgetmatrix(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +0000540{
541 Matrix arg1;
542 PyObject *v, *w;
543 int i, j;
544 getmatrix( arg1 );
545 v = PyList_New(4);
546 if (v == NULL) {
547 return NULL;
548 }
549 for (i = 0; i < 4; i++) {
550 w = PyList_New(4);
551 if (w == NULL) {
552 Py_DECREF(v);
553 return NULL;
554 }
555 PyList_SetItem(v, i, w);
556 }
557 for (i = 0; i < 4; i++) {
558 for (j = 0; j < 4; j++) {
559 w = mknewfloatobject(arg1[i][j]);
560 if (w == NULL) {
561 Py_DECREF(v);
562 return NULL;
563 }
564 PyList_SetItem(PyList_GetItem(v, i), j, w);
565 }
566 }
567 return v;
568}
569
570
571static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +0000572gl_lrectwrite(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +0000573{
574 short x1 ;
575 short y1 ;
576 short x2 ;
577 short y2 ;
578 string parray ;
579 PyObject *s;
580#if 0
581 int pixcount;
582#endif
583 if (!PyArg_GetShort(args, 5, 0, &x1))
584 return NULL;
585 if (!PyArg_GetShort(args, 5, 1, &y1))
586 return NULL;
587 if (!PyArg_GetShort(args, 5, 2, &x2))
588 return NULL;
589 if (!PyArg_GetShort(args, 5, 3, &y2))
590 return NULL;
591 if (!PyArg_GetString(args, 5, 4, &parray))
592 return NULL;
593 if (!PyArg_GetObject(args, 5, 4, &s))
594 return NULL;
595#if 0
596/* Don't check this, it breaks experiments with pixmode(PM_SIZE, ...) */
597 pixcount = (long)(x2+1-x1) * (long)(y2+1-y1);
598 if (!PyString_Check(s) || PyString_Size(s) != pixcount*sizeof(long)) {
599 PyErr_SetString(PyExc_RuntimeError,
600 "string arg to lrectwrite has wrong size");
601 return NULL;
602 }
603#endif
604 lrectwrite( x1 , y1 , x2 , y2 , (unsigned long *) parray );
605 Py_INCREF(Py_None);
606 return Py_None;
607}
608
609
610static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +0000611gl_lrectread(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +0000612{
613 short x1 ;
614 short y1 ;
615 short x2 ;
616 short y2 ;
617 PyObject *parray;
618 int pixcount;
619 if (!PyArg_GetShort(args, 4, 0, &x1))
620 return NULL;
621 if (!PyArg_GetShort(args, 4, 1, &y1))
622 return NULL;
623 if (!PyArg_GetShort(args, 4, 2, &x2))
624 return NULL;
625 if (!PyArg_GetShort(args, 4, 3, &y2))
626 return NULL;
627 pixcount = (long)(x2+1-x1) * (long)(y2+1-y1);
Guido van Rossumdfed9201997-04-29 15:46:43 +0000628 parray = PyString_FromStringAndSize((char *)NULL, pixcount*sizeof(long));
Roger E. Massefbd1d741996-12-24 19:39:23 +0000629 if (parray == NULL)
630 return NULL; /* No memory */
631 lrectread(x1, y1, x2, y2, (unsigned long *) PyString_AsString(parray));
632 return parray;
633}
634
635
636static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +0000637gl_readdisplay(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +0000638{
639 short x1, y1, x2, y2;
640 unsigned long *parray, hints;
641 long size, size_ret;
642 PyObject *rv;
643
644 if ( !PyArg_Parse(args, "hhhhl", &x1, &y1, &x2, &y2, &hints) )
645 return 0;
646 size = (long)(x2+1-x1) * (long)(y2+1-y1);
647 rv = PyString_FromStringAndSize((char *)NULL, size*sizeof(long));
648 if ( rv == NULL )
649 return NULL;
650 parray = (unsigned long *)PyString_AsString(rv);
651 size_ret = readdisplay(x1, y1, x2, y2, parray, hints);
652 if ( size_ret != size ) {
653 printf("gl_readdisplay: got %ld pixels, expected %ld\n",
654 size_ret, size);
Guido van Rossumdfed9201997-04-29 15:46:43 +0000655 PyErr_SetString(PyExc_RuntimeError, "readdisplay returned unexpected length");
Roger E. Massefbd1d741996-12-24 19:39:23 +0000656 return NULL;
657 }
658 return rv;
659}
660
661/* Desperately needed, here are tools to compress and decompress
662 the data manipulated by lrectread/lrectwrite.
663
664 gl.packrect(width, height, packfactor, bigdata) --> smalldata
665 makes 'bigdata' 4*(packfactor**2) times smaller by:
666 - turning it into B/W (a factor 4)
667 - replacing squares of size pacfactor by one
668 representative
669
670 gl.unpackrect(width, height, packfactor, smalldata) --> bigdata
671 is the inverse; the numeric arguments must be *the same*.
672
673 Both work best if width and height are multiples of packfactor
674 (in fact unpackrect will leave garbage bytes).
675*/
676
677
678static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +0000679gl_packrect(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +0000680{
681 long width, height, packfactor;
682 char *s;
683 PyObject *unpacked, *packed;
684 int pixcount, packedcount, x, y, r, g, b;
685 unsigned long pixel;
686 unsigned char *p;
687 unsigned long *parray;
688 if (!PyArg_GetLong(args, 4, 0, &width))
689 return NULL;
690 if (!PyArg_GetLong(args, 4, 1, &height))
691 return NULL;
692 if (!PyArg_GetLong(args, 4, 2, &packfactor))
693 return NULL;
694 if (!PyArg_GetString(args, 4, 3, &s)) /* For type checking only */
695 return NULL;
696 if (!PyArg_GetObject(args, 4, 3, &unpacked))
697 return NULL;
698 if (width <= 0 || height <= 0 || packfactor <= 0) {
Guido van Rossumdfed9201997-04-29 15:46:43 +0000699 PyErr_SetString(PyExc_RuntimeError, "packrect args must be > 0");
Roger E. Massefbd1d741996-12-24 19:39:23 +0000700 return NULL;
701 }
702 pixcount = width*height;
703 packedcount = ((width+packfactor-1)/packfactor) *
704 ((height+packfactor-1)/packfactor);
705 if (PyString_Size(unpacked) != pixcount*sizeof(long)) {
706 PyErr_SetString(PyExc_RuntimeError,
707 "string arg to packrect has wrong size");
708 return NULL;
709 }
710 packed = PyString_FromStringAndSize((char *)NULL, packedcount);
711 if (packed == NULL)
712 return NULL;
713 parray = (unsigned long *) PyString_AsString(unpacked);
714 p = (unsigned char *) PyString_AsString(packed);
715 for (y = 0; y < height; y += packfactor, parray += packfactor*width) {
716 for (x = 0; x < width; x += packfactor) {
717 pixel = parray[x];
718 r = pixel & 0xff;
719 g = (pixel >> 8) & 0xff;
720 b = (pixel >> 16) & 0xff;
721 *p++ = (30*r+59*g+11*b) / 100;
722 }
723 }
724 return packed;
725}
726
727
728static unsigned long unpacktab[256];
729static int unpacktab_inited = 0;
730
731static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +0000732gl_unpackrect(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +0000733{
734 long width, height, packfactor;
735 char *s;
736 PyObject *unpacked, *packed;
737 int pixcount, packedcount;
738 register unsigned char *p;
739 register unsigned long *parray;
740 if (!unpacktab_inited) {
741 register int white;
742 for (white = 256; --white >= 0; )
743 unpacktab[white] = white * 0x010101L;
744 unpacktab_inited++;
745 }
746 if (!PyArg_GetLong(args, 4, 0, &width))
747 return NULL;
748 if (!PyArg_GetLong(args, 4, 1, &height))
749 return NULL;
750 if (!PyArg_GetLong(args, 4, 2, &packfactor))
751 return NULL;
752 if (!PyArg_GetString(args, 4, 3, &s)) /* For type checking only */
753 return NULL;
754 if (!PyArg_GetObject(args, 4, 3, &packed))
755 return NULL;
756 if (width <= 0 || height <= 0 || packfactor <= 0) {
Guido van Rossumdfed9201997-04-29 15:46:43 +0000757 PyErr_SetString(PyExc_RuntimeError, "packrect args must be > 0");
Roger E. Massefbd1d741996-12-24 19:39:23 +0000758 return NULL;
759 }
760 pixcount = width*height;
761 packedcount = ((width+packfactor-1)/packfactor) *
762 ((height+packfactor-1)/packfactor);
763 if (PyString_Size(packed) != packedcount) {
764 PyErr_SetString(PyExc_RuntimeError,
765 "string arg to unpackrect has wrong size");
766 return NULL;
767 }
Guido van Rossumdfed9201997-04-29 15:46:43 +0000768 unpacked = PyString_FromStringAndSize((char *)NULL, pixcount*sizeof(long));
Roger E. Massefbd1d741996-12-24 19:39:23 +0000769 if (unpacked == NULL)
770 return NULL;
771 parray = (unsigned long *) PyString_AsString(unpacked);
772 p = (unsigned char *) PyString_AsString(packed);
773 if (packfactor == 1 && width*height > 0) {
774 /* Just expand bytes to longs */
775 register int x = width * height;
776 do {
777 *parray++ = unpacktab[*p++];
778 } while (--x >= 0);
779 }
780 else {
781 register int y;
782 for (y = 0; y < height-packfactor+1;
783 y += packfactor, parray += packfactor*width) {
784 register int x;
785 for (x = 0; x < width-packfactor+1; x += packfactor) {
786 register unsigned long pixel = unpacktab[*p++];
787 register int i;
788 for (i = packfactor*width; (i-=width) >= 0;) {
789 register int j;
790 for (j = packfactor; --j >= 0; )
791 parray[i+x+j] = pixel;
792 }
793 }
794 }
795 }
796 return unpacked;
797}
798
799static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +0000800gl_gversion(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +0000801{
802 char buf[20];
803 gversion(buf);
804 return PyString_FromString(buf);
805}
806
807
Guido van Rossum89733a81998-10-21 16:10:40 +0000808/* void clear - Manual because of clash with termcap */
809static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +0000810gl_clear(PyObject *self, PyObject *args)
Guido van Rossum89733a81998-10-21 16:10:40 +0000811{
812 __GLclear( );
813 Py_INCREF(Py_None);
814 return Py_None;
815}
816
Roger E. Massefbd1d741996-12-24 19:39:23 +0000817/* End of manually written stubs */
818
819
820/* long getshade */
821
822static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +0000823gl_getshade(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +0000824{
825 long retval;
826 retval = getshade( );
827 return mknewlongobject(retval);
828}
829
830/* void devport short s long s */
831
832static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +0000833gl_devport(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +0000834{
835 short arg1 ;
836 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +0000837 if (!getishortarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +0000838 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +0000839 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +0000840 return NULL;
841 devport( arg1 , arg2 );
842 Py_INCREF(Py_None);
843 return Py_None;
844}
845
846/* void rdr2i long s long s */
847
848static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +0000849gl_rdr2i(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +0000850{
851 long arg1 ;
852 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +0000853 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +0000854 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +0000855 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +0000856 return NULL;
857 rdr2i( arg1 , arg2 );
858 Py_INCREF(Py_None);
859 return Py_None;
860}
861
862/* void rectfs short s short s short s short s */
863
864static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +0000865gl_rectfs(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +0000866{
867 short arg1 ;
868 short arg2 ;
869 short arg3 ;
870 short arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +0000871 if (!getishortarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +0000872 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +0000873 if (!getishortarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +0000874 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +0000875 if (!getishortarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +0000876 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +0000877 if (!getishortarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +0000878 return NULL;
879 rectfs( arg1 , arg2 , arg3 , arg4 );
880 Py_INCREF(Py_None);
881 return Py_None;
882}
883
884/* void rects short s short s short s short s */
885
886static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +0000887gl_rects(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +0000888{
889 short arg1 ;
890 short arg2 ;
891 short arg3 ;
892 short arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +0000893 if (!getishortarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +0000894 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +0000895 if (!getishortarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +0000896 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +0000897 if (!getishortarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +0000898 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +0000899 if (!getishortarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +0000900 return NULL;
901 rects( arg1 , arg2 , arg3 , arg4 );
902 Py_INCREF(Py_None);
903 return Py_None;
904}
905
906/* void rmv2i long s long s */
907
908static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +0000909gl_rmv2i(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +0000910{
911 long arg1 ;
912 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +0000913 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +0000914 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +0000915 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +0000916 return NULL;
917 rmv2i( arg1 , arg2 );
918 Py_INCREF(Py_None);
919 return Py_None;
920}
921
922/* void noport */
923
924static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +0000925gl_noport(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +0000926{
927 noport( );
928 Py_INCREF(Py_None);
929 return Py_None;
930}
931
932/* void popviewport */
933
934static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +0000935gl_popviewport(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +0000936{
937 popviewport( );
938 Py_INCREF(Py_None);
939 return Py_None;
940}
941
Roger E. Massefbd1d741996-12-24 19:39:23 +0000942/* void clearhitcode */
943
944static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +0000945gl_clearhitcode(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +0000946{
947 clearhitcode( );
948 Py_INCREF(Py_None);
949 return Py_None;
950}
951
952/* void closeobj */
953
954static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +0000955gl_closeobj(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +0000956{
957 closeobj( );
958 Py_INCREF(Py_None);
959 return Py_None;
960}
961
962/* void cursoff */
963
964static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +0000965gl_cursoff(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +0000966{
967 cursoff( );
968 Py_INCREF(Py_None);
969 return Py_None;
970}
971
972/* void curson */
973
974static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +0000975gl_curson(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +0000976{
977 curson( );
978 Py_INCREF(Py_None);
979 return Py_None;
980}
981
982/* void doublebuffer */
983
984static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +0000985gl_doublebuffer(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +0000986{
987 doublebuffer( );
988 Py_INCREF(Py_None);
989 return Py_None;
990}
991
992/* void finish */
993
994static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +0000995gl_finish(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +0000996{
997 finish( );
998 Py_INCREF(Py_None);
999 return Py_None;
1000}
1001
1002/* void gconfig */
1003
1004static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001005gl_gconfig(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001006{
1007 gconfig( );
1008 Py_INCREF(Py_None);
1009 return Py_None;
1010}
1011
1012/* void ginit */
1013
1014static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001015gl_ginit(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001016{
1017 ginit( );
1018 Py_INCREF(Py_None);
1019 return Py_None;
1020}
1021
1022/* void greset */
1023
1024static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001025gl_greset(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001026{
1027 greset( );
1028 Py_INCREF(Py_None);
1029 return Py_None;
1030}
1031
1032/* void multimap */
1033
1034static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001035gl_multimap(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001036{
1037 multimap( );
1038 Py_INCREF(Py_None);
1039 return Py_None;
1040}
1041
1042/* void onemap */
1043
1044static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001045gl_onemap(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001046{
1047 onemap( );
1048 Py_INCREF(Py_None);
1049 return Py_None;
1050}
1051
1052/* void popattributes */
1053
1054static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001055gl_popattributes(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001056{
1057 popattributes( );
1058 Py_INCREF(Py_None);
1059 return Py_None;
1060}
1061
1062/* void popmatrix */
1063
1064static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001065gl_popmatrix(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001066{
1067 popmatrix( );
1068 Py_INCREF(Py_None);
1069 return Py_None;
1070}
1071
1072/* void pushattributes */
1073
1074static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001075gl_pushattributes(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001076{
1077 pushattributes( );
1078 Py_INCREF(Py_None);
1079 return Py_None;
1080}
1081
1082/* void pushmatrix */
1083
1084static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001085gl_pushmatrix(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001086{
1087 pushmatrix( );
1088 Py_INCREF(Py_None);
1089 return Py_None;
1090}
1091
1092/* void pushviewport */
1093
1094static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001095gl_pushviewport(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001096{
1097 pushviewport( );
1098 Py_INCREF(Py_None);
1099 return Py_None;
1100}
1101
1102/* void qreset */
1103
1104static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001105gl_qreset(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001106{
1107 qreset( );
1108 Py_INCREF(Py_None);
1109 return Py_None;
1110}
1111
1112/* void RGBmode */
1113
1114static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001115gl_RGBmode(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001116{
1117 RGBmode( );
1118 Py_INCREF(Py_None);
1119 return Py_None;
1120}
1121
1122/* void singlebuffer */
1123
1124static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001125gl_singlebuffer(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001126{
1127 singlebuffer( );
1128 Py_INCREF(Py_None);
1129 return Py_None;
1130}
1131
1132/* void swapbuffers */
1133
1134static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001135gl_swapbuffers(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001136{
1137 swapbuffers( );
1138 Py_INCREF(Py_None);
1139 return Py_None;
1140}
1141
1142/* void gsync */
1143
1144static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001145gl_gsync(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001146{
1147 gsync( );
1148 Py_INCREF(Py_None);
1149 return Py_None;
1150}
1151
1152/* void gflush */
1153
1154static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001155gl_gflush(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001156{
1157 gflush( );
1158 Py_INCREF(Py_None);
1159 return Py_None;
1160}
1161
1162/* void tpon */
1163
1164static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001165gl_tpon(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001166{
1167 tpon( );
1168 Py_INCREF(Py_None);
1169 return Py_None;
1170}
1171
1172/* void tpoff */
1173
1174static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001175gl_tpoff(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001176{
1177 tpoff( );
1178 Py_INCREF(Py_None);
1179 return Py_None;
1180}
1181
1182/* void clkon */
1183
1184static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001185gl_clkon(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001186{
1187 clkon( );
1188 Py_INCREF(Py_None);
1189 return Py_None;
1190}
1191
1192/* void clkoff */
1193
1194static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001195gl_clkoff(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001196{
1197 clkoff( );
1198 Py_INCREF(Py_None);
1199 return Py_None;
1200}
1201
1202/* void ringbell */
1203
1204static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001205gl_ringbell(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001206{
1207 ringbell( );
1208 Py_INCREF(Py_None);
1209 return Py_None;
1210}
1211
1212/* void gbegin */
1213
1214static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001215gl_gbegin(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001216{
1217 gbegin( );
1218 Py_INCREF(Py_None);
1219 return Py_None;
1220}
1221
1222/* void textinit */
1223
1224static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001225gl_textinit(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001226{
1227 textinit( );
1228 Py_INCREF(Py_None);
1229 return Py_None;
1230}
1231
1232/* void initnames */
1233
1234static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001235gl_initnames(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001236{
1237 initnames( );
1238 Py_INCREF(Py_None);
1239 return Py_None;
1240}
1241
1242/* void pclos */
1243
1244static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001245gl_pclos(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001246{
1247 pclos( );
1248 Py_INCREF(Py_None);
1249 return Py_None;
1250}
1251
1252/* void popname */
1253
1254static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001255gl_popname(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001256{
1257 popname( );
1258 Py_INCREF(Py_None);
1259 return Py_None;
1260}
1261
1262/* void spclos */
1263
1264static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001265gl_spclos(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001266{
1267 spclos( );
1268 Py_INCREF(Py_None);
1269 return Py_None;
1270}
1271
1272/* void zclear */
1273
1274static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001275gl_zclear(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001276{
1277 zclear( );
1278 Py_INCREF(Py_None);
1279 return Py_None;
1280}
1281
1282/* void screenspace */
1283
1284static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001285gl_screenspace(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001286{
1287 screenspace( );
1288 Py_INCREF(Py_None);
1289 return Py_None;
1290}
1291
1292/* void reshapeviewport */
1293
1294static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001295gl_reshapeviewport(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001296{
1297 reshapeviewport( );
1298 Py_INCREF(Py_None);
1299 return Py_None;
1300}
1301
1302/* void winpush */
1303
1304static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001305gl_winpush(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001306{
1307 winpush( );
1308 Py_INCREF(Py_None);
1309 return Py_None;
1310}
1311
1312/* void winpop */
1313
1314static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001315gl_winpop(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001316{
1317 winpop( );
1318 Py_INCREF(Py_None);
1319 return Py_None;
1320}
1321
1322/* void foreground */
1323
1324static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001325gl_foreground(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001326{
1327 foreground( );
1328 Py_INCREF(Py_None);
1329 return Py_None;
1330}
1331
1332/* void endfullscrn */
1333
1334static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001335gl_endfullscrn(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001336{
1337 endfullscrn( );
1338 Py_INCREF(Py_None);
1339 return Py_None;
1340}
1341
1342/* void endpupmode */
1343
1344static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001345gl_endpupmode(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001346{
1347 endpupmode( );
1348 Py_INCREF(Py_None);
1349 return Py_None;
1350}
1351
1352/* void fullscrn */
1353
1354static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001355gl_fullscrn(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001356{
1357 fullscrn( );
1358 Py_INCREF(Py_None);
1359 return Py_None;
1360}
1361
1362/* void pupmode */
1363
1364static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001365gl_pupmode(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001366{
1367 pupmode( );
1368 Py_INCREF(Py_None);
1369 return Py_None;
1370}
1371
1372/* void winconstraints */
1373
1374static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001375gl_winconstraints(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001376{
1377 winconstraints( );
1378 Py_INCREF(Py_None);
1379 return Py_None;
1380}
1381
1382/* void pagecolor short s */
1383
1384static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001385gl_pagecolor(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001386{
1387 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001388 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001389 return NULL;
1390 pagecolor( arg1 );
1391 Py_INCREF(Py_None);
1392 return Py_None;
1393}
1394
1395/* void textcolor short s */
1396
1397static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001398gl_textcolor(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001399{
1400 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001401 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001402 return NULL;
1403 textcolor( arg1 );
1404 Py_INCREF(Py_None);
1405 return Py_None;
1406}
1407
1408/* void color short s */
1409
1410static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001411gl_color(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001412{
1413 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001414 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001415 return NULL;
1416 color( arg1 );
1417 Py_INCREF(Py_None);
1418 return Py_None;
1419}
1420
1421/* void curveit short s */
1422
1423static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001424gl_curveit(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001425{
1426 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001427 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001428 return NULL;
1429 curveit( arg1 );
1430 Py_INCREF(Py_None);
1431 return Py_None;
1432}
1433
1434/* void font short s */
1435
1436static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001437gl_font(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001438{
1439 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001440 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001441 return NULL;
1442 font( arg1 );
1443 Py_INCREF(Py_None);
1444 return Py_None;
1445}
1446
1447/* void linewidth short s */
1448
1449static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001450gl_linewidth(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001451{
1452 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001453 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001454 return NULL;
1455 linewidth( arg1 );
1456 Py_INCREF(Py_None);
1457 return Py_None;
1458}
1459
1460/* void setlinestyle short s */
1461
1462static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001463gl_setlinestyle(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001464{
1465 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001466 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001467 return NULL;
1468 setlinestyle( arg1 );
1469 Py_INCREF(Py_None);
1470 return Py_None;
1471}
1472
1473/* void setmap short s */
1474
1475static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001476gl_setmap(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001477{
1478 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001479 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001480 return NULL;
1481 setmap( arg1 );
1482 Py_INCREF(Py_None);
1483 return Py_None;
1484}
1485
1486/* void swapinterval short s */
1487
1488static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001489gl_swapinterval(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001490{
1491 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001492 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001493 return NULL;
1494 swapinterval( arg1 );
1495 Py_INCREF(Py_None);
1496 return Py_None;
1497}
1498
1499/* void writemask short s */
1500
1501static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001502gl_writemask(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001503{
1504 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001505 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001506 return NULL;
1507 writemask( arg1 );
1508 Py_INCREF(Py_None);
1509 return Py_None;
1510}
1511
1512/* void textwritemask short s */
1513
1514static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001515gl_textwritemask(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001516{
1517 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001518 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001519 return NULL;
1520 textwritemask( arg1 );
1521 Py_INCREF(Py_None);
1522 return Py_None;
1523}
1524
1525/* void qdevice short s */
1526
1527static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001528gl_qdevice(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001529{
1530 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001531 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001532 return NULL;
1533 qdevice( arg1 );
1534 Py_INCREF(Py_None);
1535 return Py_None;
1536}
1537
1538/* void unqdevice short s */
1539
1540static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001541gl_unqdevice(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001542{
1543 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001544 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001545 return NULL;
1546 unqdevice( arg1 );
1547 Py_INCREF(Py_None);
1548 return Py_None;
1549}
1550
1551/* void curvebasis short s */
1552
1553static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001554gl_curvebasis(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001555{
1556 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001557 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001558 return NULL;
1559 curvebasis( arg1 );
1560 Py_INCREF(Py_None);
1561 return Py_None;
1562}
1563
1564/* void curveprecision short s */
1565
1566static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001567gl_curveprecision(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001568{
1569 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001570 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001571 return NULL;
1572 curveprecision( arg1 );
1573 Py_INCREF(Py_None);
1574 return Py_None;
1575}
1576
1577/* void loadname short s */
1578
1579static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001580gl_loadname(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001581{
1582 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001583 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001584 return NULL;
1585 loadname( arg1 );
1586 Py_INCREF(Py_None);
1587 return Py_None;
1588}
1589
1590/* void passthrough short s */
1591
1592static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001593gl_passthrough(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001594{
1595 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001596 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001597 return NULL;
1598 passthrough( arg1 );
1599 Py_INCREF(Py_None);
1600 return Py_None;
1601}
1602
1603/* void pushname short s */
1604
1605static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001606gl_pushname(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001607{
1608 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001609 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001610 return NULL;
1611 pushname( arg1 );
1612 Py_INCREF(Py_None);
1613 return Py_None;
1614}
1615
1616/* void setmonitor short s */
1617
1618static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001619gl_setmonitor(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001620{
1621 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001622 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001623 return NULL;
1624 setmonitor( arg1 );
1625 Py_INCREF(Py_None);
1626 return Py_None;
1627}
1628
1629/* void setshade short s */
1630
1631static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001632gl_setshade(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001633{
1634 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001635 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001636 return NULL;
1637 setshade( arg1 );
1638 Py_INCREF(Py_None);
1639 return Py_None;
1640}
1641
1642/* void setpattern short s */
1643
1644static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001645gl_setpattern(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001646{
1647 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001648 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001649 return NULL;
1650 setpattern( arg1 );
1651 Py_INCREF(Py_None);
1652 return Py_None;
1653}
1654
1655/* void pagewritemask short s */
1656
1657static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001658gl_pagewritemask(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001659{
1660 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001661 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001662 return NULL;
1663 pagewritemask( arg1 );
1664 Py_INCREF(Py_None);
1665 return Py_None;
1666}
1667
1668/* void callobj long s */
1669
1670static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001671gl_callobj(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001672{
1673 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001674 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001675 return NULL;
1676 callobj( arg1 );
1677 Py_INCREF(Py_None);
1678 return Py_None;
1679}
1680
1681/* void delobj long s */
1682
1683static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001684gl_delobj(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001685{
1686 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001687 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001688 return NULL;
1689 delobj( arg1 );
1690 Py_INCREF(Py_None);
1691 return Py_None;
1692}
1693
1694/* void editobj long s */
1695
1696static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001697gl_editobj(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001698{
1699 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001700 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001701 return NULL;
1702 editobj( arg1 );
1703 Py_INCREF(Py_None);
1704 return Py_None;
1705}
1706
1707/* void makeobj long s */
1708
1709static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001710gl_makeobj(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001711{
1712 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001713 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001714 return NULL;
1715 makeobj( arg1 );
1716 Py_INCREF(Py_None);
1717 return Py_None;
1718}
1719
1720/* void maketag long s */
1721
1722static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001723gl_maketag(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001724{
1725 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001726 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001727 return NULL;
1728 maketag( arg1 );
1729 Py_INCREF(Py_None);
1730 return Py_None;
1731}
1732
1733/* void chunksize long s */
1734
1735static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001736gl_chunksize(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001737{
1738 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001739 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001740 return NULL;
1741 chunksize( arg1 );
1742 Py_INCREF(Py_None);
1743 return Py_None;
1744}
1745
1746/* void compactify long s */
1747
1748static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001749gl_compactify(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001750{
1751 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001752 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001753 return NULL;
1754 compactify( arg1 );
1755 Py_INCREF(Py_None);
1756 return Py_None;
1757}
1758
1759/* void deltag long s */
1760
1761static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001762gl_deltag(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001763{
1764 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001765 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001766 return NULL;
1767 deltag( arg1 );
1768 Py_INCREF(Py_None);
1769 return Py_None;
1770}
1771
1772/* void lsrepeat long s */
1773
1774static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001775gl_lsrepeat(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001776{
1777 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001778 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001779 return NULL;
1780 lsrepeat( arg1 );
1781 Py_INCREF(Py_None);
1782 return Py_None;
1783}
1784
1785/* void objinsert long s */
1786
1787static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001788gl_objinsert(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001789{
1790 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001791 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001792 return NULL;
1793 objinsert( arg1 );
1794 Py_INCREF(Py_None);
1795 return Py_None;
1796}
1797
1798/* void objreplace long s */
1799
1800static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001801gl_objreplace(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001802{
1803 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001804 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001805 return NULL;
1806 objreplace( arg1 );
1807 Py_INCREF(Py_None);
1808 return Py_None;
1809}
1810
1811/* void winclose long s */
1812
1813static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001814gl_winclose(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001815{
1816 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001817 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001818 return NULL;
1819 winclose( arg1 );
1820 Py_INCREF(Py_None);
1821 return Py_None;
1822}
1823
1824/* void blanktime long s */
1825
1826static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001827gl_blanktime(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001828{
1829 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001830 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001831 return NULL;
1832 blanktime( arg1 );
1833 Py_INCREF(Py_None);
1834 return Py_None;
1835}
1836
1837/* void freepup long s */
1838
1839static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001840gl_freepup(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001841{
1842 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001843 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001844 return NULL;
1845 freepup( arg1 );
1846 Py_INCREF(Py_None);
1847 return Py_None;
1848}
1849
1850/* void backbuffer long s */
1851
1852static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001853gl_backbuffer(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001854{
1855 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001856 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001857 return NULL;
1858 backbuffer( arg1 );
1859 Py_INCREF(Py_None);
1860 return Py_None;
1861}
1862
1863/* void frontbuffer long s */
1864
1865static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001866gl_frontbuffer(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001867{
1868 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001869 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001870 return NULL;
1871 frontbuffer( arg1 );
1872 Py_INCREF(Py_None);
1873 return Py_None;
1874}
1875
1876/* void lsbackup long s */
1877
1878static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001879gl_lsbackup(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001880{
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 lsbackup( arg1 );
1885 Py_INCREF(Py_None);
1886 return Py_None;
1887}
1888
1889/* void resetls long s */
1890
1891static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001892gl_resetls(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001893{
1894 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001895 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001896 return NULL;
1897 resetls( arg1 );
1898 Py_INCREF(Py_None);
1899 return Py_None;
1900}
1901
1902/* void lampon long s */
1903
1904static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001905gl_lampon(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001906{
1907 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001908 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001909 return NULL;
1910 lampon( arg1 );
1911 Py_INCREF(Py_None);
1912 return Py_None;
1913}
1914
1915/* void lampoff long s */
1916
1917static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001918gl_lampoff(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001919{
1920 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001921 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001922 return NULL;
1923 lampoff( arg1 );
1924 Py_INCREF(Py_None);
1925 return Py_None;
1926}
1927
1928/* void setbell long s */
1929
1930static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001931gl_setbell(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001932{
1933 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001934 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001935 return NULL;
1936 setbell( arg1 );
1937 Py_INCREF(Py_None);
1938 return Py_None;
1939}
1940
1941/* void blankscreen long s */
1942
1943static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001944gl_blankscreen(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001945{
1946 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001947 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001948 return NULL;
1949 blankscreen( arg1 );
1950 Py_INCREF(Py_None);
1951 return Py_None;
1952}
1953
1954/* void depthcue long s */
1955
1956static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001957gl_depthcue(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001958{
1959 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001960 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001961 return NULL;
1962 depthcue( arg1 );
1963 Py_INCREF(Py_None);
1964 return Py_None;
1965}
1966
1967/* void zbuffer long s */
1968
1969static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001970gl_zbuffer(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001971{
1972 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001973 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001974 return NULL;
1975 zbuffer( arg1 );
1976 Py_INCREF(Py_None);
1977 return Py_None;
1978}
1979
1980/* void backface long s */
1981
1982static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001983gl_backface(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001984{
1985 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00001986 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00001987 return NULL;
1988 backface( arg1 );
1989 Py_INCREF(Py_None);
1990 return Py_None;
1991}
1992
1993/* void cmov2i long s long s */
1994
1995static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00001996gl_cmov2i(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00001997{
1998 long arg1 ;
1999 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002000 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002001 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002002 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002003 return NULL;
2004 cmov2i( arg1 , arg2 );
2005 Py_INCREF(Py_None);
2006 return Py_None;
2007}
2008
2009/* void draw2i long s long s */
2010
2011static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002012gl_draw2i(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002013{
2014 long arg1 ;
2015 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002016 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002017 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002018 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002019 return NULL;
2020 draw2i( arg1 , arg2 );
2021 Py_INCREF(Py_None);
2022 return Py_None;
2023}
2024
2025/* void move2i long s long s */
2026
2027static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002028gl_move2i(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002029{
2030 long arg1 ;
2031 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002032 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002033 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002034 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002035 return NULL;
2036 move2i( arg1 , arg2 );
2037 Py_INCREF(Py_None);
2038 return Py_None;
2039}
2040
2041/* void pnt2i long s long s */
2042
2043static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002044gl_pnt2i(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002045{
2046 long arg1 ;
2047 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002048 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002049 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002050 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002051 return NULL;
2052 pnt2i( arg1 , arg2 );
2053 Py_INCREF(Py_None);
2054 return Py_None;
2055}
2056
2057/* void patchbasis long s long s */
2058
2059static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002060gl_patchbasis(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002061{
2062 long arg1 ;
2063 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002064 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002065 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002066 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002067 return NULL;
2068 patchbasis( arg1 , arg2 );
2069 Py_INCREF(Py_None);
2070 return Py_None;
2071}
2072
2073/* void patchprecision long s long s */
2074
2075static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002076gl_patchprecision(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002077{
2078 long arg1 ;
2079 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002080 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002081 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002082 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002083 return NULL;
2084 patchprecision( arg1 , arg2 );
2085 Py_INCREF(Py_None);
2086 return Py_None;
2087}
2088
2089/* void pdr2i long s long s */
2090
2091static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002092gl_pdr2i(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002093{
2094 long arg1 ;
2095 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002096 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002097 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002098 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002099 return NULL;
2100 pdr2i( arg1 , arg2 );
2101 Py_INCREF(Py_None);
2102 return Py_None;
2103}
2104
2105/* void pmv2i long s long s */
2106
2107static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002108gl_pmv2i(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002109{
2110 long arg1 ;
2111 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002112 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002113 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002114 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002115 return NULL;
2116 pmv2i( arg1 , arg2 );
2117 Py_INCREF(Py_None);
2118 return Py_None;
2119}
2120
2121/* void rpdr2i long s long s */
2122
2123static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002124gl_rpdr2i(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002125{
2126 long arg1 ;
2127 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002128 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002129 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002130 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002131 return NULL;
2132 rpdr2i( arg1 , arg2 );
2133 Py_INCREF(Py_None);
2134 return Py_None;
2135}
2136
2137/* void rpmv2i long s long s */
2138
2139static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002140gl_rpmv2i(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002141{
2142 long arg1 ;
2143 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002144 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002145 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002146 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002147 return NULL;
2148 rpmv2i( arg1 , arg2 );
2149 Py_INCREF(Py_None);
2150 return Py_None;
2151}
2152
2153/* void xfpt2i long s long s */
2154
2155static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002156gl_xfpt2i(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002157{
2158 long arg1 ;
2159 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002160 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002161 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002162 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002163 return NULL;
2164 xfpt2i( arg1 , arg2 );
2165 Py_INCREF(Py_None);
2166 return Py_None;
2167}
2168
2169/* void objdelete long s long s */
2170
2171static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002172gl_objdelete(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002173{
2174 long arg1 ;
2175 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002176 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002177 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002178 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002179 return NULL;
2180 objdelete( arg1 , arg2 );
2181 Py_INCREF(Py_None);
2182 return Py_None;
2183}
2184
2185/* void patchcurves long s long s */
2186
2187static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002188gl_patchcurves(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002189{
2190 long arg1 ;
2191 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002192 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002193 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002194 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002195 return NULL;
2196 patchcurves( arg1 , arg2 );
2197 Py_INCREF(Py_None);
2198 return Py_None;
2199}
2200
2201/* void minsize long s long s */
2202
2203static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002204gl_minsize(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002205{
2206 long arg1 ;
2207 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002208 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002209 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002210 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002211 return NULL;
2212 minsize( arg1 , arg2 );
2213 Py_INCREF(Py_None);
2214 return Py_None;
2215}
2216
2217/* void maxsize long s long s */
2218
2219static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002220gl_maxsize(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002221{
2222 long arg1 ;
2223 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002224 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002225 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002226 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002227 return NULL;
2228 maxsize( arg1 , arg2 );
2229 Py_INCREF(Py_None);
2230 return Py_None;
2231}
2232
2233/* void keepaspect long s long s */
2234
2235static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002236gl_keepaspect(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002237{
2238 long arg1 ;
2239 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002240 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002241 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002242 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002243 return NULL;
2244 keepaspect( arg1 , arg2 );
2245 Py_INCREF(Py_None);
2246 return Py_None;
2247}
2248
2249/* void prefsize long s long s */
2250
2251static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002252gl_prefsize(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002253{
2254 long arg1 ;
2255 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002256 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002257 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002258 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002259 return NULL;
2260 prefsize( arg1 , arg2 );
2261 Py_INCREF(Py_None);
2262 return Py_None;
2263}
2264
2265/* void stepunit long s long s */
2266
2267static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002268gl_stepunit(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002269{
2270 long arg1 ;
2271 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002272 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002273 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002274 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002275 return NULL;
2276 stepunit( arg1 , arg2 );
2277 Py_INCREF(Py_None);
2278 return Py_None;
2279}
2280
2281/* void fudge long s long s */
2282
2283static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002284gl_fudge(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002285{
2286 long arg1 ;
2287 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002288 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002289 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002290 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002291 return NULL;
2292 fudge( arg1 , arg2 );
2293 Py_INCREF(Py_None);
2294 return Py_None;
2295}
2296
2297/* void winmove long s long s */
2298
2299static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002300gl_winmove(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002301{
2302 long arg1 ;
2303 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002304 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002305 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002306 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002307 return NULL;
2308 winmove( arg1 , arg2 );
2309 Py_INCREF(Py_None);
2310 return Py_None;
2311}
2312
2313/* void attachcursor short s short s */
2314
2315static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002316gl_attachcursor(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002317{
2318 short arg1 ;
2319 short arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002320 if (!getishortarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002321 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002322 if (!getishortarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002323 return NULL;
2324 attachcursor( arg1 , arg2 );
2325 Py_INCREF(Py_None);
2326 return Py_None;
2327}
2328
2329/* void deflinestyle short s short s */
2330
2331static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002332gl_deflinestyle(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002333{
2334 short arg1 ;
2335 short arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002336 if (!getishortarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002337 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002338 if (!getishortarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002339 return NULL;
2340 deflinestyle( arg1 , arg2 );
2341 Py_INCREF(Py_None);
2342 return Py_None;
2343}
2344
2345/* void noise short s short s */
2346
2347static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002348gl_noise(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002349{
2350 short arg1 ;
2351 short arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002352 if (!getishortarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002353 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002354 if (!getishortarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002355 return NULL;
2356 noise( arg1 , arg2 );
2357 Py_INCREF(Py_None);
2358 return Py_None;
2359}
2360
2361/* void picksize short s short s */
2362
2363static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002364gl_picksize(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002365{
2366 short arg1 ;
2367 short arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002368 if (!getishortarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002369 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002370 if (!getishortarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002371 return NULL;
2372 picksize( arg1 , arg2 );
2373 Py_INCREF(Py_None);
2374 return Py_None;
2375}
2376
2377/* void qenter short s short s */
2378
2379static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002380gl_qenter(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002381{
2382 short arg1 ;
2383 short arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002384 if (!getishortarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002385 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002386 if (!getishortarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002387 return NULL;
2388 qenter( arg1 , arg2 );
2389 Py_INCREF(Py_None);
2390 return Py_None;
2391}
2392
2393/* void setdepth short s short s */
2394
2395static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002396gl_setdepth(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002397{
2398 short arg1 ;
2399 short arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002400 if (!getishortarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002401 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002402 if (!getishortarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002403 return NULL;
2404 setdepth( arg1 , arg2 );
2405 Py_INCREF(Py_None);
2406 return Py_None;
2407}
2408
2409/* void cmov2s short s short s */
2410
2411static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002412gl_cmov2s(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002413{
2414 short arg1 ;
2415 short arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002416 if (!getishortarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002417 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002418 if (!getishortarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002419 return NULL;
2420 cmov2s( arg1 , arg2 );
2421 Py_INCREF(Py_None);
2422 return Py_None;
2423}
2424
2425/* void draw2s short s short s */
2426
2427static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002428gl_draw2s(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002429{
2430 short arg1 ;
2431 short arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002432 if (!getishortarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002433 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002434 if (!getishortarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002435 return NULL;
2436 draw2s( arg1 , arg2 );
2437 Py_INCREF(Py_None);
2438 return Py_None;
2439}
2440
2441/* void move2s short s short s */
2442
2443static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002444gl_move2s(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002445{
2446 short arg1 ;
2447 short arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002448 if (!getishortarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002449 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002450 if (!getishortarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002451 return NULL;
2452 move2s( arg1 , arg2 );
2453 Py_INCREF(Py_None);
2454 return Py_None;
2455}
2456
2457/* void pdr2s short s short s */
2458
2459static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002460gl_pdr2s(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002461{
2462 short arg1 ;
2463 short arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002464 if (!getishortarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002465 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002466 if (!getishortarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002467 return NULL;
2468 pdr2s( arg1 , arg2 );
2469 Py_INCREF(Py_None);
2470 return Py_None;
2471}
2472
2473/* void pmv2s short s short s */
2474
2475static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002476gl_pmv2s(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002477{
2478 short arg1 ;
2479 short arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002480 if (!getishortarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002481 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002482 if (!getishortarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002483 return NULL;
2484 pmv2s( arg1 , arg2 );
2485 Py_INCREF(Py_None);
2486 return Py_None;
2487}
2488
2489/* void pnt2s short s short s */
2490
2491static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002492gl_pnt2s(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002493{
2494 short arg1 ;
2495 short arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002496 if (!getishortarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002497 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002498 if (!getishortarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002499 return NULL;
2500 pnt2s( arg1 , arg2 );
2501 Py_INCREF(Py_None);
2502 return Py_None;
2503}
2504
2505/* void rdr2s short s short s */
2506
2507static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002508gl_rdr2s(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002509{
2510 short arg1 ;
2511 short arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002512 if (!getishortarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002513 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002514 if (!getishortarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002515 return NULL;
2516 rdr2s( arg1 , arg2 );
2517 Py_INCREF(Py_None);
2518 return Py_None;
2519}
2520
2521/* void rmv2s short s short s */
2522
2523static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002524gl_rmv2s(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002525{
2526 short arg1 ;
2527 short arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002528 if (!getishortarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002529 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002530 if (!getishortarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002531 return NULL;
2532 rmv2s( arg1 , arg2 );
2533 Py_INCREF(Py_None);
2534 return Py_None;
2535}
2536
2537/* void rpdr2s short s short s */
2538
2539static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002540gl_rpdr2s(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002541{
2542 short arg1 ;
2543 short arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002544 if (!getishortarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002545 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002546 if (!getishortarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002547 return NULL;
2548 rpdr2s( arg1 , arg2 );
2549 Py_INCREF(Py_None);
2550 return Py_None;
2551}
2552
2553/* void rpmv2s short s short s */
2554
2555static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002556gl_rpmv2s(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002557{
2558 short arg1 ;
2559 short arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002560 if (!getishortarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002561 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002562 if (!getishortarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002563 return NULL;
2564 rpmv2s( arg1 , arg2 );
2565 Py_INCREF(Py_None);
2566 return Py_None;
2567}
2568
2569/* void xfpt2s short s short s */
2570
2571static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002572gl_xfpt2s(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002573{
2574 short arg1 ;
2575 short arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002576 if (!getishortarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002577 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002578 if (!getishortarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002579 return NULL;
2580 xfpt2s( arg1 , arg2 );
2581 Py_INCREF(Py_None);
2582 return Py_None;
2583}
2584
2585/* void cmov2 float s float s */
2586
2587static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002588gl_cmov2(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002589{
2590 float arg1 ;
2591 float arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002592 if (!getifloatarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002593 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002594 if (!getifloatarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002595 return NULL;
2596 cmov2( arg1 , arg2 );
2597 Py_INCREF(Py_None);
2598 return Py_None;
2599}
2600
2601/* void draw2 float s float s */
2602
2603static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002604gl_draw2(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002605{
2606 float arg1 ;
2607 float arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002608 if (!getifloatarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002609 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002610 if (!getifloatarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002611 return NULL;
2612 draw2( arg1 , arg2 );
2613 Py_INCREF(Py_None);
2614 return Py_None;
2615}
2616
2617/* void move2 float s float s */
2618
2619static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002620gl_move2(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002621{
2622 float arg1 ;
2623 float arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002624 if (!getifloatarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002625 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002626 if (!getifloatarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002627 return NULL;
2628 move2( arg1 , arg2 );
2629 Py_INCREF(Py_None);
2630 return Py_None;
2631}
2632
2633/* void pnt2 float s float s */
2634
2635static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002636gl_pnt2(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002637{
2638 float arg1 ;
2639 float arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002640 if (!getifloatarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002641 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002642 if (!getifloatarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002643 return NULL;
2644 pnt2( arg1 , arg2 );
2645 Py_INCREF(Py_None);
2646 return Py_None;
2647}
2648
2649/* void pdr2 float s float s */
2650
2651static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002652gl_pdr2(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002653{
2654 float arg1 ;
2655 float arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002656 if (!getifloatarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002657 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002658 if (!getifloatarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002659 return NULL;
2660 pdr2( arg1 , arg2 );
2661 Py_INCREF(Py_None);
2662 return Py_None;
2663}
2664
2665/* void pmv2 float s float s */
2666
2667static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002668gl_pmv2(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002669{
2670 float arg1 ;
2671 float arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002672 if (!getifloatarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002673 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002674 if (!getifloatarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002675 return NULL;
2676 pmv2( arg1 , arg2 );
2677 Py_INCREF(Py_None);
2678 return Py_None;
2679}
2680
2681/* void rdr2 float s float s */
2682
2683static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002684gl_rdr2(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002685{
2686 float arg1 ;
2687 float arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002688 if (!getifloatarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002689 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002690 if (!getifloatarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002691 return NULL;
2692 rdr2( arg1 , arg2 );
2693 Py_INCREF(Py_None);
2694 return Py_None;
2695}
2696
2697/* void rmv2 float s float s */
2698
2699static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002700gl_rmv2(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002701{
2702 float arg1 ;
2703 float arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002704 if (!getifloatarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002705 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002706 if (!getifloatarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002707 return NULL;
2708 rmv2( arg1 , arg2 );
2709 Py_INCREF(Py_None);
2710 return Py_None;
2711}
2712
2713/* void rpdr2 float s float s */
2714
2715static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002716gl_rpdr2(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002717{
2718 float arg1 ;
2719 float arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002720 if (!getifloatarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002721 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002722 if (!getifloatarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002723 return NULL;
2724 rpdr2( arg1 , arg2 );
2725 Py_INCREF(Py_None);
2726 return Py_None;
2727}
2728
2729/* void rpmv2 float s float s */
2730
2731static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002732gl_rpmv2(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002733{
2734 float arg1 ;
2735 float arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002736 if (!getifloatarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002737 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002738 if (!getifloatarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002739 return NULL;
2740 rpmv2( arg1 , arg2 );
2741 Py_INCREF(Py_None);
2742 return Py_None;
2743}
2744
2745/* void xfpt2 float s float s */
2746
2747static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002748gl_xfpt2(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002749{
2750 float arg1 ;
2751 float arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002752 if (!getifloatarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002753 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002754 if (!getifloatarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002755 return NULL;
2756 xfpt2( arg1 , arg2 );
2757 Py_INCREF(Py_None);
2758 return Py_None;
2759}
2760
2761/* void loadmatrix float s[4*4] */
2762
2763static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002764gl_loadmatrix(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002765{
2766 float arg1 [ 4 ] [ 4 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002767 if (!getifloatarray(args, 1, 0, 4 * 4 , (float *) arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002768 return NULL;
2769 loadmatrix( arg1 );
2770 Py_INCREF(Py_None);
2771 return Py_None;
2772}
2773
2774/* void multmatrix float s[4*4] */
2775
2776static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002777gl_multmatrix(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002778{
2779 float arg1 [ 4 ] [ 4 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002780 if (!getifloatarray(args, 1, 0, 4 * 4 , (float *) arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002781 return NULL;
2782 multmatrix( arg1 );
2783 Py_INCREF(Py_None);
2784 return Py_None;
2785}
2786
2787/* void crv float s[3*4] */
2788
2789static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002790gl_crv(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002791{
2792 float arg1 [ 4 ] [ 3 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002793 if (!getifloatarray(args, 1, 0, 3 * 4 , (float *) arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002794 return NULL;
2795 crv( arg1 );
2796 Py_INCREF(Py_None);
2797 return Py_None;
2798}
2799
2800/* void rcrv float s[4*4] */
2801
2802static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002803gl_rcrv(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002804{
2805 float arg1 [ 4 ] [ 4 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002806 if (!getifloatarray(args, 1, 0, 4 * 4 , (float *) arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002807 return NULL;
2808 rcrv( arg1 );
2809 Py_INCREF(Py_None);
2810 return Py_None;
2811}
2812
2813/* void addtopup long s char *s long s */
2814
2815static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002816gl_addtopup(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002817{
2818 long arg1 ;
2819 string arg2 ;
2820 long arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002821 if (!getilongarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002822 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002823 if (!getistringarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002824 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002825 if (!getilongarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002826 return NULL;
2827 addtopup( arg1 , arg2 , arg3 );
2828 Py_INCREF(Py_None);
2829 return Py_None;
2830}
2831
2832/* void charstr char *s */
2833
2834static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002835gl_charstr(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002836{
2837 string arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002838 if (!getistringarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002839 return NULL;
2840 charstr( arg1 );
2841 Py_INCREF(Py_None);
2842 return Py_None;
2843}
2844
2845/* void getport char *s */
2846
2847static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002848gl_getport(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002849{
2850 string arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002851 if (!getistringarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002852 return NULL;
2853 getport( arg1 );
2854 Py_INCREF(Py_None);
2855 return Py_None;
2856}
2857
2858/* long strwidth char *s */
2859
2860static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002861gl_strwidth(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002862{
2863 long retval;
2864 string arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002865 if (!getistringarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002866 return NULL;
2867 retval = strwidth( arg1 );
2868 return mknewlongobject(retval);
2869}
2870
2871/* long winopen char *s */
2872
2873static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002874gl_winopen(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002875{
2876 long retval;
2877 string arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002878 if (!getistringarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002879 return NULL;
2880 retval = winopen( arg1 );
2881 return mknewlongobject(retval);
2882}
2883
2884/* void wintitle char *s */
2885
2886static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002887gl_wintitle(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002888{
2889 string arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002890 if (!getistringarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002891 return NULL;
2892 wintitle( arg1 );
2893 Py_INCREF(Py_None);
2894 return Py_None;
2895}
2896
2897/* void polf long s float s[3*arg1] */
2898
2899static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002900gl_polf(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002901{
2902 long arg1 ;
2903 float (* arg2) [ 3 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002904 if (!getilongarraysize(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002905 return NULL;
2906 arg1 = arg1 / 3;
2907 if ((arg2 = (float(*)[3]) PyMem_NEW(float , 3 * arg1 )) == NULL)
2908 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00002909 if (!getifloatarray(args, 1, 0, 3 * arg1 , (float *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002910 return NULL;
2911 polf( arg1 , arg2 );
2912 PyMem_DEL(arg2);
2913 Py_INCREF(Py_None);
2914 return Py_None;
2915}
2916
2917/* void polf2 long s float s[2*arg1] */
2918
2919static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002920gl_polf2(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002921{
2922 long arg1 ;
2923 float (* arg2) [ 2 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002924 if (!getilongarraysize(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002925 return NULL;
2926 arg1 = arg1 / 2;
2927 if ((arg2 = (float(*)[2]) PyMem_NEW(float , 2 * arg1 )) == NULL)
2928 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00002929 if (!getifloatarray(args, 1, 0, 2 * arg1 , (float *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002930 return NULL;
2931 polf2( arg1 , arg2 );
2932 PyMem_DEL(arg2);
2933 Py_INCREF(Py_None);
2934 return Py_None;
2935}
2936
2937/* void poly long s float s[3*arg1] */
2938
2939static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002940gl_poly(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002941{
2942 long arg1 ;
2943 float (* arg2) [ 3 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002944 if (!getilongarraysize(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002945 return NULL;
2946 arg1 = arg1 / 3;
2947 if ((arg2 = (float(*)[3]) PyMem_NEW(float , 3 * arg1 )) == NULL)
2948 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00002949 if (!getifloatarray(args, 1, 0, 3 * arg1 , (float *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002950 return NULL;
2951 poly( arg1 , arg2 );
2952 PyMem_DEL(arg2);
2953 Py_INCREF(Py_None);
2954 return Py_None;
2955}
2956
2957/* void poly2 long s float s[2*arg1] */
2958
2959static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002960gl_poly2(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002961{
2962 long arg1 ;
2963 float (* arg2) [ 2 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002964 if (!getilongarraysize(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002965 return NULL;
2966 arg1 = arg1 / 2;
2967 if ((arg2 = (float(*)[2]) PyMem_NEW(float , 2 * arg1 )) == NULL)
2968 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00002969 if (!getifloatarray(args, 1, 0, 2 * arg1 , (float *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002970 return NULL;
2971 poly2( arg1 , arg2 );
2972 PyMem_DEL(arg2);
2973 Py_INCREF(Py_None);
2974 return Py_None;
2975}
2976
2977/* void crvn long s float s[3*arg1] */
2978
2979static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00002980gl_crvn(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00002981{
2982 long arg1 ;
2983 float (* arg2) [ 3 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00002984 if (!getilongarraysize(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002985 return NULL;
2986 arg1 = arg1 / 3;
2987 if ((arg2 = (float(*)[3]) PyMem_NEW(float , 3 * arg1 )) == NULL)
2988 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00002989 if (!getifloatarray(args, 1, 0, 3 * arg1 , (float *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00002990 return NULL;
2991 crvn( arg1 , arg2 );
2992 PyMem_DEL(arg2);
2993 Py_INCREF(Py_None);
2994 return Py_None;
2995}
2996
2997/* void rcrvn long s float s[4*arg1] */
2998
2999static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003000gl_rcrvn(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003001{
3002 long arg1 ;
3003 float (* arg2) [ 4 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003004 if (!getilongarraysize(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003005 return NULL;
3006 arg1 = arg1 / 4;
3007 if ((arg2 = (float(*)[4]) PyMem_NEW(float , 4 * arg1 )) == NULL)
3008 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00003009 if (!getifloatarray(args, 1, 0, 4 * arg1 , (float *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003010 return NULL;
3011 rcrvn( arg1 , arg2 );
3012 PyMem_DEL(arg2);
3013 Py_INCREF(Py_None);
3014 return Py_None;
3015}
3016
3017/* void polf2i long s long s[2*arg1] */
3018
3019static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003020gl_polf2i(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003021{
3022 long arg1 ;
3023 long (* arg2) [ 2 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003024 if (!getilongarraysize(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003025 return NULL;
3026 arg1 = arg1 / 2;
3027 if ((arg2 = (long(*)[2]) PyMem_NEW(long , 2 * arg1 )) == NULL)
3028 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00003029 if (!getilongarray(args, 1, 0, 2 * arg1 , (long *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003030 return NULL;
3031 polf2i( arg1 , arg2 );
3032 PyMem_DEL(arg2);
3033 Py_INCREF(Py_None);
3034 return Py_None;
3035}
3036
3037/* void polfi long s long s[3*arg1] */
3038
3039static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003040gl_polfi(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003041{
3042 long arg1 ;
3043 long (* arg2) [ 3 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003044 if (!getilongarraysize(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003045 return NULL;
3046 arg1 = arg1 / 3;
3047 if ((arg2 = (long(*)[3]) PyMem_NEW(long , 3 * arg1 )) == NULL)
3048 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00003049 if (!getilongarray(args, 1, 0, 3 * arg1 , (long *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003050 return NULL;
3051 polfi( arg1 , arg2 );
3052 PyMem_DEL(arg2);
3053 Py_INCREF(Py_None);
3054 return Py_None;
3055}
3056
3057/* void poly2i long s long s[2*arg1] */
3058
3059static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003060gl_poly2i(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003061{
3062 long arg1 ;
3063 long (* arg2) [ 2 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003064 if (!getilongarraysize(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003065 return NULL;
3066 arg1 = arg1 / 2;
3067 if ((arg2 = (long(*)[2]) PyMem_NEW(long , 2 * arg1 )) == NULL)
3068 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00003069 if (!getilongarray(args, 1, 0, 2 * arg1 , (long *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003070 return NULL;
3071 poly2i( arg1 , arg2 );
3072 PyMem_DEL(arg2);
3073 Py_INCREF(Py_None);
3074 return Py_None;
3075}
3076
3077/* void polyi long s long s[3*arg1] */
3078
3079static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003080gl_polyi(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003081{
3082 long arg1 ;
3083 long (* arg2) [ 3 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003084 if (!getilongarraysize(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003085 return NULL;
3086 arg1 = arg1 / 3;
3087 if ((arg2 = (long(*)[3]) PyMem_NEW(long , 3 * arg1 )) == NULL)
3088 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00003089 if (!getilongarray(args, 1, 0, 3 * arg1 , (long *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003090 return NULL;
3091 polyi( arg1 , arg2 );
3092 PyMem_DEL(arg2);
3093 Py_INCREF(Py_None);
3094 return Py_None;
3095}
3096
3097/* void polf2s long s short s[2*arg1] */
3098
3099static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003100gl_polf2s(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003101{
3102 long arg1 ;
3103 short (* arg2) [ 2 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003104 if (!getilongarraysize(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003105 return NULL;
3106 arg1 = arg1 / 2;
3107 if ((arg2 = (short(*)[2]) PyMem_NEW(short , 2 * arg1 )) == NULL)
3108 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00003109 if (!getishortarray(args, 1, 0, 2 * arg1 , (short *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003110 return NULL;
3111 polf2s( arg1 , arg2 );
3112 PyMem_DEL(arg2);
3113 Py_INCREF(Py_None);
3114 return Py_None;
3115}
3116
3117/* void polfs long s short s[3*arg1] */
3118
3119static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003120gl_polfs(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003121{
3122 long arg1 ;
3123 short (* arg2) [ 3 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003124 if (!getilongarraysize(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003125 return NULL;
3126 arg1 = arg1 / 3;
3127 if ((arg2 = (short(*)[3]) PyMem_NEW(short , 3 * arg1 )) == NULL)
3128 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00003129 if (!getishortarray(args, 1, 0, 3 * arg1 , (short *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003130 return NULL;
3131 polfs( arg1 , arg2 );
3132 PyMem_DEL(arg2);
3133 Py_INCREF(Py_None);
3134 return Py_None;
3135}
3136
3137/* void polys long s short s[3*arg1] */
3138
3139static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003140gl_polys(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003141{
3142 long arg1 ;
3143 short (* arg2) [ 3 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003144 if (!getilongarraysize(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003145 return NULL;
3146 arg1 = arg1 / 3;
3147 if ((arg2 = (short(*)[3]) PyMem_NEW(short , 3 * arg1 )) == NULL)
3148 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00003149 if (!getishortarray(args, 1, 0, 3 * arg1 , (short *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003150 return NULL;
3151 polys( arg1 , arg2 );
3152 PyMem_DEL(arg2);
3153 Py_INCREF(Py_None);
3154 return Py_None;
3155}
3156
3157/* void poly2s long s short s[2*arg1] */
3158
3159static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003160gl_poly2s(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003161{
3162 long arg1 ;
3163 short (* arg2) [ 2 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003164 if (!getilongarraysize(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003165 return NULL;
3166 arg1 = arg1 / 2;
3167 if ((arg2 = (short(*)[2]) PyMem_NEW(short , 2 * arg1 )) == NULL)
3168 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00003169 if (!getishortarray(args, 1, 0, 2 * arg1 , (short *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003170 return NULL;
3171 poly2s( arg1 , arg2 );
3172 PyMem_DEL(arg2);
3173 Py_INCREF(Py_None);
3174 return Py_None;
3175}
3176
3177/* void defcursor short s u_short s[128] */
3178
3179static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003180gl_defcursor(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003181{
3182 short arg1 ;
3183 unsigned short arg2 [ 128 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003184 if (!getishortarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003185 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003186 if (!getishortarray(args, 2, 1, 128 , (short *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003187 return NULL;
3188 defcursor( arg1 , arg2 );
3189 Py_INCREF(Py_None);
3190 return Py_None;
3191}
3192
3193/* void writepixels short s u_short s[arg1] */
3194
3195static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003196gl_writepixels(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003197{
3198 short arg1 ;
3199 unsigned short * arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003200 if (!getishortarraysize(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003201 return NULL;
3202 if ((arg2 = PyMem_NEW(unsigned short , arg1 )) == NULL)
3203 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00003204 if (!getishortarray(args, 1, 0, arg1 , (short *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003205 return NULL;
3206 writepixels( arg1 , arg2 );
3207 PyMem_DEL(arg2);
3208 Py_INCREF(Py_None);
3209 return Py_None;
3210}
3211
3212/* void defbasis long s float s[4*4] */
3213
3214static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003215gl_defbasis(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003216{
3217 long arg1 ;
3218 float arg2 [ 4 ] [ 4 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003219 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003220 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003221 if (!getifloatarray(args, 2, 1, 4 * 4 , (float *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003222 return NULL;
3223 defbasis( arg1 , arg2 );
3224 Py_INCREF(Py_None);
3225 return Py_None;
3226}
3227
3228/* void gewrite short s short s[arg1] */
3229
3230static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003231gl_gewrite(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003232{
3233 short arg1 ;
3234 short * arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003235 if (!getishortarraysize(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003236 return NULL;
3237 if ((arg2 = PyMem_NEW(short , arg1 )) == NULL)
3238 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00003239 if (!getishortarray(args, 1, 0, arg1 , arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003240 return NULL;
3241 gewrite( arg1 , arg2 );
3242 PyMem_DEL(arg2);
3243 Py_INCREF(Py_None);
3244 return Py_None;
3245}
3246
3247/* void rotate short s char s */
3248
3249static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003250gl_rotate(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003251{
3252 short arg1 ;
3253 char arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003254 if (!getishortarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003255 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003256 if (!getichararg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003257 return NULL;
3258 rotate( arg1 , arg2 );
3259 Py_INCREF(Py_None);
3260 return Py_None;
3261}
3262
3263/* void rot float s char s */
3264
3265static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003266gl_rot(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003267{
3268 float arg1 ;
3269 char arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003270 if (!getifloatarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003271 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003272 if (!getichararg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003273 return NULL;
3274 rot( arg1 , arg2 );
3275 Py_INCREF(Py_None);
3276 return Py_None;
3277}
3278
3279/* void circfi long s long s long s */
3280
3281static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003282gl_circfi(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003283{
3284 long arg1 ;
3285 long arg2 ;
3286 long arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003287 if (!getilongarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003288 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003289 if (!getilongarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003290 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003291 if (!getilongarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003292 return NULL;
3293 circfi( arg1 , arg2 , arg3 );
3294 Py_INCREF(Py_None);
3295 return Py_None;
3296}
3297
3298/* void circi long s long s long s */
3299
3300static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003301gl_circi(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003302{
3303 long arg1 ;
3304 long arg2 ;
3305 long arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003306 if (!getilongarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003307 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003308 if (!getilongarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003309 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003310 if (!getilongarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003311 return NULL;
3312 circi( arg1 , arg2 , arg3 );
3313 Py_INCREF(Py_None);
3314 return Py_None;
3315}
3316
3317/* void cmovi long s long s long s */
3318
3319static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003320gl_cmovi(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003321{
3322 long arg1 ;
3323 long arg2 ;
3324 long arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003325 if (!getilongarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003326 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003327 if (!getilongarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003328 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003329 if (!getilongarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003330 return NULL;
3331 cmovi( arg1 , arg2 , arg3 );
3332 Py_INCREF(Py_None);
3333 return Py_None;
3334}
3335
3336/* void drawi long s long s long s */
3337
3338static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003339gl_drawi(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003340{
3341 long arg1 ;
3342 long arg2 ;
3343 long arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003344 if (!getilongarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003345 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003346 if (!getilongarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003347 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003348 if (!getilongarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003349 return NULL;
3350 drawi( arg1 , arg2 , arg3 );
3351 Py_INCREF(Py_None);
3352 return Py_None;
3353}
3354
3355/* void movei long s long s long s */
3356
3357static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003358gl_movei(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003359{
3360 long arg1 ;
3361 long arg2 ;
3362 long arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003363 if (!getilongarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003364 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003365 if (!getilongarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003366 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003367 if (!getilongarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003368 return NULL;
3369 movei( arg1 , arg2 , arg3 );
3370 Py_INCREF(Py_None);
3371 return Py_None;
3372}
3373
3374/* void pnti long s long s long s */
3375
3376static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003377gl_pnti(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003378{
3379 long arg1 ;
3380 long arg2 ;
3381 long arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003382 if (!getilongarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003383 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003384 if (!getilongarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003385 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003386 if (!getilongarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003387 return NULL;
3388 pnti( arg1 , arg2 , arg3 );
3389 Py_INCREF(Py_None);
3390 return Py_None;
3391}
3392
3393/* void newtag long s long s long s */
3394
3395static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003396gl_newtag(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003397{
3398 long arg1 ;
3399 long arg2 ;
3400 long arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003401 if (!getilongarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003402 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003403 if (!getilongarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003404 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003405 if (!getilongarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003406 return NULL;
3407 newtag( arg1 , arg2 , arg3 );
3408 Py_INCREF(Py_None);
3409 return Py_None;
3410}
3411
3412/* void pdri long s long s long s */
3413
3414static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003415gl_pdri(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003416{
3417 long arg1 ;
3418 long arg2 ;
3419 long arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003420 if (!getilongarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003421 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003422 if (!getilongarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003423 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003424 if (!getilongarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003425 return NULL;
3426 pdri( arg1 , arg2 , arg3 );
3427 Py_INCREF(Py_None);
3428 return Py_None;
3429}
3430
3431/* void pmvi long s long s long s */
3432
3433static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003434gl_pmvi(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003435{
3436 long arg1 ;
3437 long arg2 ;
3438 long arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003439 if (!getilongarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003440 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003441 if (!getilongarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003442 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003443 if (!getilongarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003444 return NULL;
3445 pmvi( arg1 , arg2 , arg3 );
3446 Py_INCREF(Py_None);
3447 return Py_None;
3448}
3449
3450/* void rdri long s long s long s */
3451
3452static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003453gl_rdri(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003454{
3455 long arg1 ;
3456 long arg2 ;
3457 long arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003458 if (!getilongarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003459 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003460 if (!getilongarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003461 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003462 if (!getilongarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003463 return NULL;
3464 rdri( arg1 , arg2 , arg3 );
3465 Py_INCREF(Py_None);
3466 return Py_None;
3467}
3468
3469/* void rmvi long s long s long s */
3470
3471static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003472gl_rmvi(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003473{
3474 long arg1 ;
3475 long arg2 ;
3476 long arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003477 if (!getilongarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003478 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003479 if (!getilongarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003480 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003481 if (!getilongarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003482 return NULL;
3483 rmvi( arg1 , arg2 , arg3 );
3484 Py_INCREF(Py_None);
3485 return Py_None;
3486}
3487
3488/* void rpdri long s long s long s */
3489
3490static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003491gl_rpdri(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003492{
3493 long arg1 ;
3494 long arg2 ;
3495 long arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003496 if (!getilongarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003497 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003498 if (!getilongarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003499 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003500 if (!getilongarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003501 return NULL;
3502 rpdri( arg1 , arg2 , arg3 );
3503 Py_INCREF(Py_None);
3504 return Py_None;
3505}
3506
3507/* void rpmvi long s long s long s */
3508
3509static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003510gl_rpmvi(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003511{
3512 long arg1 ;
3513 long arg2 ;
3514 long arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003515 if (!getilongarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003516 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003517 if (!getilongarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003518 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003519 if (!getilongarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003520 return NULL;
3521 rpmvi( arg1 , arg2 , arg3 );
3522 Py_INCREF(Py_None);
3523 return Py_None;
3524}
3525
3526/* void xfpti long s long s long s */
3527
3528static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003529gl_xfpti(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003530{
3531 long arg1 ;
3532 long arg2 ;
3533 long arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003534 if (!getilongarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003535 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003536 if (!getilongarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003537 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003538 if (!getilongarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003539 return NULL;
3540 xfpti( arg1 , arg2 , arg3 );
3541 Py_INCREF(Py_None);
3542 return Py_None;
3543}
3544
3545/* void circ float s float s float s */
3546
3547static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003548gl_circ(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003549{
3550 float arg1 ;
3551 float arg2 ;
3552 float arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003553 if (!getifloatarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003554 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003555 if (!getifloatarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003556 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003557 if (!getifloatarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003558 return NULL;
3559 circ( arg1 , arg2 , arg3 );
3560 Py_INCREF(Py_None);
3561 return Py_None;
3562}
3563
3564/* void circf float s float s float s */
3565
3566static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003567gl_circf(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003568{
3569 float arg1 ;
3570 float arg2 ;
3571 float arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003572 if (!getifloatarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003573 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003574 if (!getifloatarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003575 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003576 if (!getifloatarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003577 return NULL;
3578 circf( arg1 , arg2 , arg3 );
3579 Py_INCREF(Py_None);
3580 return Py_None;
3581}
3582
3583/* void cmov float s float s float s */
3584
3585static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003586gl_cmov(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003587{
3588 float arg1 ;
3589 float arg2 ;
3590 float arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003591 if (!getifloatarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003592 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003593 if (!getifloatarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003594 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003595 if (!getifloatarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003596 return NULL;
3597 cmov( arg1 , arg2 , arg3 );
3598 Py_INCREF(Py_None);
3599 return Py_None;
3600}
3601
3602/* void draw float s float s float s */
3603
3604static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003605gl_draw(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003606{
3607 float arg1 ;
3608 float arg2 ;
3609 float arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003610 if (!getifloatarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003611 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003612 if (!getifloatarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003613 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003614 if (!getifloatarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003615 return NULL;
3616 draw( arg1 , arg2 , arg3 );
3617 Py_INCREF(Py_None);
3618 return Py_None;
3619}
3620
3621/* void move float s float s float s */
3622
3623static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003624gl_move(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003625{
3626 float arg1 ;
3627 float arg2 ;
3628 float arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003629 if (!getifloatarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003630 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003631 if (!getifloatarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003632 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003633 if (!getifloatarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003634 return NULL;
3635 move( arg1 , arg2 , arg3 );
3636 Py_INCREF(Py_None);
3637 return Py_None;
3638}
3639
3640/* void pnt float s float s float s */
3641
3642static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003643gl_pnt(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003644{
3645 float arg1 ;
3646 float arg2 ;
3647 float arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003648 if (!getifloatarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003649 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003650 if (!getifloatarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003651 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003652 if (!getifloatarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003653 return NULL;
3654 pnt( arg1 , arg2 , arg3 );
3655 Py_INCREF(Py_None);
3656 return Py_None;
3657}
3658
3659/* void scale float s float s float s */
3660
3661static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003662gl_scale(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003663{
3664 float arg1 ;
3665 float arg2 ;
3666 float arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003667 if (!getifloatarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003668 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003669 if (!getifloatarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003670 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003671 if (!getifloatarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003672 return NULL;
3673 scale( arg1 , arg2 , arg3 );
3674 Py_INCREF(Py_None);
3675 return Py_None;
3676}
3677
3678/* void translate float s float s float s */
3679
3680static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003681gl_translate(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003682{
3683 float arg1 ;
3684 float arg2 ;
3685 float arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003686 if (!getifloatarg(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 (!getifloatarg(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 (!getifloatarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003691 return NULL;
3692 translate( arg1 , arg2 , arg3 );
3693 Py_INCREF(Py_None);
3694 return Py_None;
3695}
3696
3697/* void pdr float s float s float s */
3698
3699static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003700gl_pdr(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003701{
3702 float arg1 ;
3703 float arg2 ;
3704 float arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003705 if (!getifloatarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003706 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003707 if (!getifloatarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003708 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003709 if (!getifloatarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003710 return NULL;
3711 pdr( arg1 , arg2 , arg3 );
3712 Py_INCREF(Py_None);
3713 return Py_None;
3714}
3715
3716/* void pmv float s float s float s */
3717
3718static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003719gl_pmv(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003720{
3721 float arg1 ;
3722 float arg2 ;
3723 float arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003724 if (!getifloatarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003725 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003726 if (!getifloatarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003727 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003728 if (!getifloatarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003729 return NULL;
3730 pmv( arg1 , arg2 , arg3 );
3731 Py_INCREF(Py_None);
3732 return Py_None;
3733}
3734
3735/* void rdr float s float s float s */
3736
3737static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003738gl_rdr(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003739{
3740 float arg1 ;
3741 float arg2 ;
3742 float arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003743 if (!getifloatarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003744 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003745 if (!getifloatarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003746 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003747 if (!getifloatarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003748 return NULL;
3749 rdr( arg1 , arg2 , arg3 );
3750 Py_INCREF(Py_None);
3751 return Py_None;
3752}
3753
3754/* void rmv float s float s float s */
3755
3756static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003757gl_rmv(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003758{
3759 float arg1 ;
3760 float arg2 ;
3761 float arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003762 if (!getifloatarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003763 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003764 if (!getifloatarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003765 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003766 if (!getifloatarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003767 return NULL;
3768 rmv( arg1 , arg2 , arg3 );
3769 Py_INCREF(Py_None);
3770 return Py_None;
3771}
3772
3773/* void rpdr float s float s float s */
3774
3775static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003776gl_rpdr(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003777{
3778 float arg1 ;
3779 float arg2 ;
3780 float arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003781 if (!getifloatarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003782 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003783 if (!getifloatarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003784 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003785 if (!getifloatarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003786 return NULL;
3787 rpdr( arg1 , arg2 , arg3 );
3788 Py_INCREF(Py_None);
3789 return Py_None;
3790}
3791
3792/* void rpmv float s float s float s */
3793
3794static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003795gl_rpmv(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003796{
3797 float arg1 ;
3798 float arg2 ;
3799 float arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003800 if (!getifloatarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003801 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003802 if (!getifloatarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003803 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003804 if (!getifloatarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003805 return NULL;
3806 rpmv( arg1 , arg2 , arg3 );
3807 Py_INCREF(Py_None);
3808 return Py_None;
3809}
3810
3811/* void xfpt float s float s float s */
3812
3813static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003814gl_xfpt(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003815{
3816 float arg1 ;
3817 float arg2 ;
3818 float arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003819 if (!getifloatarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003820 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003821 if (!getifloatarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003822 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003823 if (!getifloatarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003824 return NULL;
3825 xfpt( arg1 , arg2 , arg3 );
3826 Py_INCREF(Py_None);
3827 return Py_None;
3828}
3829
3830/* void RGBcolor short s short s short s */
3831
3832static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003833gl_RGBcolor(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003834{
3835 short arg1 ;
3836 short arg2 ;
3837 short arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003838 if (!getishortarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003839 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003840 if (!getishortarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003841 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003842 if (!getishortarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003843 return NULL;
3844 RGBcolor( arg1 , arg2 , arg3 );
3845 Py_INCREF(Py_None);
3846 return Py_None;
3847}
3848
3849/* void RGBwritemask short s short s short s */
3850
3851static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003852gl_RGBwritemask(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003853{
3854 short arg1 ;
3855 short arg2 ;
3856 short arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003857 if (!getishortarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003858 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003859 if (!getishortarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003860 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003861 if (!getishortarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003862 return NULL;
3863 RGBwritemask( arg1 , arg2 , arg3 );
3864 Py_INCREF(Py_None);
3865 return Py_None;
3866}
3867
3868/* void setcursor short s short s short s */
3869
3870static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003871gl_setcursor(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003872{
3873 short arg1 ;
3874 short arg2 ;
3875 short arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003876 if (!getishortarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003877 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003878 if (!getishortarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003879 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003880 if (!getishortarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003881 return NULL;
3882 setcursor( arg1 , arg2 , arg3 );
3883 Py_INCREF(Py_None);
3884 return Py_None;
3885}
3886
3887/* void tie short s short s short s */
3888
3889static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003890gl_tie(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003891{
3892 short arg1 ;
3893 short arg2 ;
3894 short arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003895 if (!getishortarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003896 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003897 if (!getishortarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003898 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003899 if (!getishortarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003900 return NULL;
3901 tie( arg1 , arg2 , arg3 );
3902 Py_INCREF(Py_None);
3903 return Py_None;
3904}
3905
3906/* void circfs short s short s short s */
3907
3908static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003909gl_circfs(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003910{
3911 short arg1 ;
3912 short arg2 ;
3913 short arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003914 if (!getishortarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003915 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003916 if (!getishortarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003917 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003918 if (!getishortarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003919 return NULL;
3920 circfs( arg1 , arg2 , arg3 );
3921 Py_INCREF(Py_None);
3922 return Py_None;
3923}
3924
3925/* void circs short s short s short s */
3926
3927static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003928gl_circs(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003929{
3930 short arg1 ;
3931 short arg2 ;
3932 short arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003933 if (!getishortarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003934 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003935 if (!getishortarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003936 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003937 if (!getishortarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003938 return NULL;
3939 circs( arg1 , arg2 , arg3 );
3940 Py_INCREF(Py_None);
3941 return Py_None;
3942}
3943
3944/* void cmovs short s short s short s */
3945
3946static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003947gl_cmovs(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003948{
3949 short arg1 ;
3950 short arg2 ;
3951 short arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003952 if (!getishortarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003953 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003954 if (!getishortarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003955 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003956 if (!getishortarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003957 return NULL;
3958 cmovs( arg1 , arg2 , arg3 );
3959 Py_INCREF(Py_None);
3960 return Py_None;
3961}
3962
3963/* void draws short s short s short s */
3964
3965static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003966gl_draws(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003967{
3968 short arg1 ;
3969 short arg2 ;
3970 short arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003971 if (!getishortarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003972 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003973 if (!getishortarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003974 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003975 if (!getishortarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003976 return NULL;
3977 draws( arg1 , arg2 , arg3 );
3978 Py_INCREF(Py_None);
3979 return Py_None;
3980}
3981
3982/* void moves short s short s short s */
3983
3984static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00003985gl_moves(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00003986{
3987 short arg1 ;
3988 short arg2 ;
3989 short arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003990 if (!getishortarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003991 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003992 if (!getishortarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003993 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00003994 if (!getishortarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00003995 return NULL;
3996 moves( arg1 , arg2 , arg3 );
3997 Py_INCREF(Py_None);
3998 return Py_None;
3999}
4000
4001/* void pdrs short s short s short s */
4002
4003static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00004004gl_pdrs(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00004005{
4006 short arg1 ;
4007 short arg2 ;
4008 short arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004009 if (!getishortarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004010 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004011 if (!getishortarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004012 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004013 if (!getishortarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004014 return NULL;
4015 pdrs( arg1 , arg2 , arg3 );
4016 Py_INCREF(Py_None);
4017 return Py_None;
4018}
4019
4020/* void pmvs short s short s short s */
4021
4022static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00004023gl_pmvs(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00004024{
4025 short arg1 ;
4026 short arg2 ;
4027 short arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004028 if (!getishortarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004029 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004030 if (!getishortarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004031 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004032 if (!getishortarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004033 return NULL;
4034 pmvs( arg1 , arg2 , arg3 );
4035 Py_INCREF(Py_None);
4036 return Py_None;
4037}
4038
4039/* void pnts short s short s short s */
4040
4041static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00004042gl_pnts(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00004043{
4044 short arg1 ;
4045 short arg2 ;
4046 short arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004047 if (!getishortarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004048 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004049 if (!getishortarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004050 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004051 if (!getishortarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004052 return NULL;
4053 pnts( arg1 , arg2 , arg3 );
4054 Py_INCREF(Py_None);
4055 return Py_None;
4056}
4057
4058/* void rdrs short s short s short s */
4059
4060static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00004061gl_rdrs(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00004062{
4063 short arg1 ;
4064 short arg2 ;
4065 short arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004066 if (!getishortarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004067 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004068 if (!getishortarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004069 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004070 if (!getishortarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004071 return NULL;
4072 rdrs( arg1 , arg2 , arg3 );
4073 Py_INCREF(Py_None);
4074 return Py_None;
4075}
4076
4077/* void rmvs short s short s short s */
4078
4079static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00004080gl_rmvs(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00004081{
4082 short arg1 ;
4083 short arg2 ;
4084 short arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004085 if (!getishortarg(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 (!getishortarg(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 (!getishortarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004090 return NULL;
4091 rmvs( arg1 , arg2 , arg3 );
4092 Py_INCREF(Py_None);
4093 return Py_None;
4094}
4095
4096/* void rpdrs short s short s short s */
4097
4098static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00004099gl_rpdrs(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00004100{
4101 short arg1 ;
4102 short arg2 ;
4103 short arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004104 if (!getishortarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004105 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004106 if (!getishortarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004107 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004108 if (!getishortarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004109 return NULL;
4110 rpdrs( arg1 , arg2 , arg3 );
4111 Py_INCREF(Py_None);
4112 return Py_None;
4113}
4114
4115/* void rpmvs short s short s short s */
4116
4117static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00004118gl_rpmvs(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00004119{
4120 short arg1 ;
4121 short arg2 ;
4122 short arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004123 if (!getishortarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004124 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004125 if (!getishortarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004126 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004127 if (!getishortarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004128 return NULL;
4129 rpmvs( arg1 , arg2 , arg3 );
4130 Py_INCREF(Py_None);
4131 return Py_None;
4132}
4133
4134/* void xfpts short s short s short s */
4135
4136static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00004137gl_xfpts(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00004138{
4139 short arg1 ;
4140 short arg2 ;
4141 short arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004142 if (!getishortarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004143 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004144 if (!getishortarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004145 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004146 if (!getishortarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004147 return NULL;
4148 xfpts( arg1 , arg2 , arg3 );
4149 Py_INCREF(Py_None);
4150 return Py_None;
4151}
4152
4153/* void curorigin short s short s short s */
4154
4155static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00004156gl_curorigin(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00004157{
4158 short arg1 ;
4159 short arg2 ;
4160 short arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004161 if (!getishortarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004162 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004163 if (!getishortarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004164 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004165 if (!getishortarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004166 return NULL;
4167 curorigin( arg1 , arg2 , arg3 );
4168 Py_INCREF(Py_None);
4169 return Py_None;
4170}
4171
4172/* void cyclemap short s short s short s */
4173
4174static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00004175gl_cyclemap(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00004176{
4177 short arg1 ;
4178 short arg2 ;
4179 short arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004180 if (!getishortarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004181 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004182 if (!getishortarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004183 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004184 if (!getishortarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004185 return NULL;
4186 cyclemap( arg1 , arg2 , arg3 );
4187 Py_INCREF(Py_None);
4188 return Py_None;
4189}
4190
4191/* void patch float s[4*4] float s[4*4] float s[4*4] */
4192
4193static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00004194gl_patch(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00004195{
4196 float arg1 [ 4 ] [ 4 ] ;
4197 float arg2 [ 4 ] [ 4 ] ;
4198 float arg3 [ 4 ] [ 4 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004199 if (!getifloatarray(args, 3, 0, 4 * 4 , (float *) arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004200 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004201 if (!getifloatarray(args, 3, 1, 4 * 4 , (float *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004202 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004203 if (!getifloatarray(args, 3, 2, 4 * 4 , (float *) arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004204 return NULL;
4205 patch( arg1 , arg2 , arg3 );
4206 Py_INCREF(Py_None);
4207 return Py_None;
4208}
4209
4210/* void splf long s float s[3*arg1] u_short s[arg1] */
4211
4212static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00004213gl_splf(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00004214{
4215 long arg1 ;
4216 float (* arg2) [ 3 ] ;
4217 unsigned short * arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004218 if (!getilongarraysize(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004219 return NULL;
4220 arg1 = arg1 / 3;
4221 if ((arg2 = (float(*)[3]) PyMem_NEW(float , 3 * arg1 )) == NULL)
4222 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00004223 if (!getifloatarray(args, 2, 0, 3 * arg1 , (float *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004224 return NULL;
4225 if ((arg3 = PyMem_NEW(unsigned short , arg1 )) == NULL)
4226 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00004227 if (!getishortarray(args, 2, 1, arg1 , (short *) arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004228 return NULL;
4229 splf( arg1 , arg2 , arg3 );
4230 PyMem_DEL(arg2);
4231 PyMem_DEL(arg3);
4232 Py_INCREF(Py_None);
4233 return Py_None;
4234}
4235
4236/* void splf2 long s float s[2*arg1] u_short s[arg1] */
4237
4238static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00004239gl_splf2(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00004240{
4241 long arg1 ;
4242 float (* arg2) [ 2 ] ;
4243 unsigned short * arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004244 if (!getilongarraysize(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004245 return NULL;
4246 arg1 = arg1 / 2;
4247 if ((arg2 = (float(*)[2]) PyMem_NEW(float , 2 * arg1 )) == NULL)
4248 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00004249 if (!getifloatarray(args, 2, 0, 2 * arg1 , (float *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004250 return NULL;
4251 if ((arg3 = PyMem_NEW(unsigned short , arg1 )) == NULL)
4252 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00004253 if (!getishortarray(args, 2, 1, arg1 , (short *) arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004254 return NULL;
4255 splf2( arg1 , arg2 , arg3 );
4256 PyMem_DEL(arg2);
4257 PyMem_DEL(arg3);
4258 Py_INCREF(Py_None);
4259 return Py_None;
4260}
4261
4262/* void splfi long s long s[3*arg1] u_short s[arg1] */
4263
4264static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00004265gl_splfi(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00004266{
4267 long arg1 ;
4268 long (* arg2) [ 3 ] ;
4269 unsigned short * arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004270 if (!getilongarraysize(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004271 return NULL;
4272 arg1 = arg1 / 3;
4273 if ((arg2 = (long(*)[3]) PyMem_NEW(long , 3 * arg1 )) == NULL)
4274 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00004275 if (!getilongarray(args, 2, 0, 3 * arg1 , (long *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004276 return NULL;
4277 if ((arg3 = PyMem_NEW(unsigned short , arg1 )) == NULL)
4278 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00004279 if (!getishortarray(args, 2, 1, arg1 , (short *) arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004280 return NULL;
4281 splfi( arg1 , arg2 , arg3 );
4282 PyMem_DEL(arg2);
4283 PyMem_DEL(arg3);
4284 Py_INCREF(Py_None);
4285 return Py_None;
4286}
4287
4288/* void splf2i long s long s[2*arg1] u_short s[arg1] */
4289
4290static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00004291gl_splf2i(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00004292{
4293 long arg1 ;
4294 long (* arg2) [ 2 ] ;
4295 unsigned short * arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004296 if (!getilongarraysize(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004297 return NULL;
4298 arg1 = arg1 / 2;
4299 if ((arg2 = (long(*)[2]) PyMem_NEW(long , 2 * arg1 )) == NULL)
4300 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00004301 if (!getilongarray(args, 2, 0, 2 * arg1 , (long *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004302 return NULL;
4303 if ((arg3 = PyMem_NEW(unsigned short , arg1 )) == NULL)
4304 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00004305 if (!getishortarray(args, 2, 1, arg1 , (short *) arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004306 return NULL;
4307 splf2i( arg1 , arg2 , arg3 );
4308 PyMem_DEL(arg2);
4309 PyMem_DEL(arg3);
4310 Py_INCREF(Py_None);
4311 return Py_None;
4312}
4313
4314/* void splfs long s short s[3*arg1] u_short s[arg1] */
4315
4316static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00004317gl_splfs(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00004318{
4319 long arg1 ;
4320 short (* arg2) [ 3 ] ;
4321 unsigned short * arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004322 if (!getilongarraysize(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004323 return NULL;
4324 arg1 = arg1 / 3;
4325 if ((arg2 = (short(*)[3]) PyMem_NEW(short , 3 * arg1 )) == NULL)
4326 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00004327 if (!getishortarray(args, 2, 0, 3 * arg1 , (short *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004328 return NULL;
4329 if ((arg3 = PyMem_NEW(unsigned short , arg1 )) == NULL)
4330 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00004331 if (!getishortarray(args, 2, 1, arg1 , (short *) arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004332 return NULL;
4333 splfs( arg1 , arg2 , arg3 );
4334 PyMem_DEL(arg2);
4335 PyMem_DEL(arg3);
4336 Py_INCREF(Py_None);
4337 return Py_None;
4338}
4339
4340/* void splf2s long s short s[2*arg1] u_short s[arg1] */
4341
4342static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00004343gl_splf2s(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00004344{
4345 long arg1 ;
4346 short (* arg2) [ 2 ] ;
4347 unsigned short * arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004348 if (!getilongarraysize(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004349 return NULL;
4350 arg1 = arg1 / 2;
4351 if ((arg2 = (short(*)[2]) PyMem_NEW(short , 2 * arg1 )) == NULL)
4352 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00004353 if (!getishortarray(args, 2, 0, 2 * arg1 , (short *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004354 return NULL;
4355 if ((arg3 = PyMem_NEW(unsigned short , arg1 )) == NULL)
4356 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00004357 if (!getishortarray(args, 2, 1, arg1 , (short *) arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004358 return NULL;
4359 splf2s( arg1 , arg2 , arg3 );
4360 PyMem_DEL(arg2);
4361 PyMem_DEL(arg3);
4362 Py_INCREF(Py_None);
4363 return Py_None;
4364}
4365
4366/* void rpatch float s[4*4] float s[4*4] float s[4*4] float s[4*4] */
4367
4368static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00004369gl_rpatch(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00004370{
4371 float arg1 [ 4 ] [ 4 ] ;
4372 float arg2 [ 4 ] [ 4 ] ;
4373 float arg3 [ 4 ] [ 4 ] ;
4374 float arg4 [ 4 ] [ 4 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004375 if (!getifloatarray(args, 4, 0, 4 * 4 , (float *) arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004376 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004377 if (!getifloatarray(args, 4, 1, 4 * 4 , (float *) arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004378 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004379 if (!getifloatarray(args, 4, 2, 4 * 4 , (float *) arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004380 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004381 if (!getifloatarray(args, 4, 3, 4 * 4 , (float *) arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004382 return NULL;
4383 rpatch( arg1 , arg2 , arg3 , arg4 );
4384 Py_INCREF(Py_None);
4385 return Py_None;
4386}
4387
4388/* void ortho2 float s float s float s float s */
4389
4390static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00004391gl_ortho2(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00004392{
4393 float arg1 ;
4394 float arg2 ;
4395 float arg3 ;
4396 float arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004397 if (!getifloatarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004398 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004399 if (!getifloatarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004400 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004401 if (!getifloatarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004402 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004403 if (!getifloatarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004404 return NULL;
4405 ortho2( arg1 , arg2 , arg3 , arg4 );
4406 Py_INCREF(Py_None);
4407 return Py_None;
4408}
4409
4410/* void rect float s float s float s float s */
4411
4412static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00004413gl_rect(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00004414{
4415 float arg1 ;
4416 float arg2 ;
4417 float arg3 ;
4418 float arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004419 if (!getifloatarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004420 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004421 if (!getifloatarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004422 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004423 if (!getifloatarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004424 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004425 if (!getifloatarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004426 return NULL;
4427 rect( arg1 , arg2 , arg3 , arg4 );
4428 Py_INCREF(Py_None);
4429 return Py_None;
4430}
4431
4432/* void rectf float s float s float s float s */
4433
4434static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00004435gl_rectf(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00004436{
4437 float arg1 ;
4438 float arg2 ;
4439 float arg3 ;
4440 float arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004441 if (!getifloatarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004442 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004443 if (!getifloatarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004444 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004445 if (!getifloatarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004446 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004447 if (!getifloatarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004448 return NULL;
4449 rectf( arg1 , arg2 , arg3 , arg4 );
4450 Py_INCREF(Py_None);
4451 return Py_None;
4452}
4453
4454/* void xfpt4 float s float s float s float s */
4455
4456static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00004457gl_xfpt4(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00004458{
4459 float arg1 ;
4460 float arg2 ;
4461 float arg3 ;
4462 float arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004463 if (!getifloatarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004464 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004465 if (!getifloatarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004466 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004467 if (!getifloatarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004468 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004469 if (!getifloatarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004470 return NULL;
4471 xfpt4( arg1 , arg2 , arg3 , arg4 );
4472 Py_INCREF(Py_None);
4473 return Py_None;
4474}
4475
4476/* void textport short s short s short s short s */
4477
4478static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00004479gl_textport(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00004480{
4481 short arg1 ;
4482 short arg2 ;
4483 short arg3 ;
4484 short arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004485 if (!getishortarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004486 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004487 if (!getishortarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004488 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004489 if (!getishortarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004490 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004491 if (!getishortarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004492 return NULL;
4493 textport( arg1 , arg2 , arg3 , arg4 );
4494 Py_INCREF(Py_None);
4495 return Py_None;
4496}
4497
4498/* void mapcolor short s short s short s short s */
4499
4500static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00004501gl_mapcolor(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00004502{
4503 short arg1 ;
4504 short arg2 ;
4505 short arg3 ;
4506 short arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004507 if (!getishortarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004508 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004509 if (!getishortarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004510 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004511 if (!getishortarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004512 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004513 if (!getishortarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004514 return NULL;
4515 mapcolor( arg1 , arg2 , arg3 , arg4 );
4516 Py_INCREF(Py_None);
4517 return Py_None;
4518}
4519
4520/* void scrmask short s short s short s short s */
4521
4522static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00004523gl_scrmask(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00004524{
4525 short arg1 ;
4526 short arg2 ;
4527 short arg3 ;
4528 short arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004529 if (!getishortarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004530 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004531 if (!getishortarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004532 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004533 if (!getishortarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004534 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004535 if (!getishortarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004536 return NULL;
4537 scrmask( arg1 , arg2 , arg3 , arg4 );
4538 Py_INCREF(Py_None);
4539 return Py_None;
4540}
4541
4542/* void setvaluator short s short s short s short s */
4543
4544static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00004545gl_setvaluator(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00004546{
4547 short arg1 ;
4548 short arg2 ;
4549 short arg3 ;
4550 short arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004551 if (!getishortarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004552 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004553 if (!getishortarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004554 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004555 if (!getishortarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004556 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004557 if (!getishortarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004558 return NULL;
4559 setvaluator( arg1 , arg2 , arg3 , arg4 );
4560 Py_INCREF(Py_None);
4561 return Py_None;
4562}
4563
4564/* void viewport short s short s short s short s */
4565
4566static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00004567gl_viewport(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00004568{
4569 short arg1 ;
4570 short arg2 ;
4571 short arg3 ;
4572 short arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004573 if (!getishortarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004574 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004575 if (!getishortarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004576 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004577 if (!getishortarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004578 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004579 if (!getishortarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004580 return NULL;
4581 viewport( arg1 , arg2 , arg3 , arg4 );
4582 Py_INCREF(Py_None);
4583 return Py_None;
4584}
4585
4586/* void shaderange short s short s short s short s */
4587
4588static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00004589gl_shaderange(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00004590{
4591 short arg1 ;
4592 short arg2 ;
4593 short arg3 ;
4594 short arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004595 if (!getishortarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004596 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004597 if (!getishortarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004598 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004599 if (!getishortarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004600 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004601 if (!getishortarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004602 return NULL;
4603 shaderange( arg1 , arg2 , arg3 , arg4 );
4604 Py_INCREF(Py_None);
4605 return Py_None;
4606}
4607
4608/* void xfpt4s short s short s short s short s */
4609
4610static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00004611gl_xfpt4s(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00004612{
4613 short arg1 ;
4614 short arg2 ;
4615 short arg3 ;
4616 short arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004617 if (!getishortarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004618 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004619 if (!getishortarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004620 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004621 if (!getishortarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004622 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004623 if (!getishortarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004624 return NULL;
4625 xfpt4s( arg1 , arg2 , arg3 , arg4 );
4626 Py_INCREF(Py_None);
4627 return Py_None;
4628}
4629
4630/* void rectfi long s long s long s long s */
4631
4632static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00004633gl_rectfi(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00004634{
4635 long arg1 ;
4636 long arg2 ;
4637 long arg3 ;
4638 long arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004639 if (!getilongarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004640 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004641 if (!getilongarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004642 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004643 if (!getilongarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004644 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004645 if (!getilongarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004646 return NULL;
4647 rectfi( arg1 , arg2 , arg3 , arg4 );
4648 Py_INCREF(Py_None);
4649 return Py_None;
4650}
4651
4652/* void recti long s long s long s long s */
4653
4654static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00004655gl_recti(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00004656{
4657 long arg1 ;
4658 long arg2 ;
4659 long arg3 ;
4660 long arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004661 if (!getilongarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004662 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004663 if (!getilongarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004664 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004665 if (!getilongarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004666 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004667 if (!getilongarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004668 return NULL;
4669 recti( arg1 , arg2 , arg3 , arg4 );
4670 Py_INCREF(Py_None);
4671 return Py_None;
4672}
4673
4674/* void xfpt4i long s long s long s long s */
4675
4676static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00004677gl_xfpt4i(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00004678{
4679 long arg1 ;
4680 long arg2 ;
4681 long arg3 ;
4682 long arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004683 if (!getilongarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004684 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004685 if (!getilongarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004686 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004687 if (!getilongarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004688 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004689 if (!getilongarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004690 return NULL;
4691 xfpt4i( arg1 , arg2 , arg3 , arg4 );
4692 Py_INCREF(Py_None);
4693 return Py_None;
4694}
4695
4696/* void prefposition long s long s long s long s */
4697
4698static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00004699gl_prefposition(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00004700{
4701 long arg1 ;
4702 long arg2 ;
4703 long arg3 ;
4704 long arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004705 if (!getilongarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004706 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004707 if (!getilongarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004708 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004709 if (!getilongarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004710 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004711 if (!getilongarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004712 return NULL;
4713 prefposition( arg1 , arg2 , arg3 , arg4 );
4714 Py_INCREF(Py_None);
4715 return Py_None;
4716}
4717
4718/* void arc float s float s float s short s short s */
4719
4720static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00004721gl_arc(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00004722{
4723 float arg1 ;
4724 float arg2 ;
4725 float arg3 ;
4726 short arg4 ;
4727 short arg5 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004728 if (!getifloatarg(args, 5, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004729 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004730 if (!getifloatarg(args, 5, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004731 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004732 if (!getifloatarg(args, 5, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004733 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004734 if (!getishortarg(args, 5, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004735 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004736 if (!getishortarg(args, 5, 4, &arg5))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004737 return NULL;
4738 arc( arg1 , arg2 , arg3 , arg4 , arg5 );
4739 Py_INCREF(Py_None);
4740 return Py_None;
4741}
4742
4743/* void arcf float s float s float s short s short s */
4744
4745static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00004746gl_arcf(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00004747{
4748 float arg1 ;
4749 float arg2 ;
4750 float arg3 ;
4751 short arg4 ;
4752 short arg5 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004753 if (!getifloatarg(args, 5, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004754 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004755 if (!getifloatarg(args, 5, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004756 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004757 if (!getifloatarg(args, 5, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004758 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004759 if (!getishortarg(args, 5, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004760 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004761 if (!getishortarg(args, 5, 4, &arg5))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004762 return NULL;
4763 arcf( arg1 , arg2 , arg3 , arg4 , arg5 );
4764 Py_INCREF(Py_None);
4765 return Py_None;
4766}
4767
4768/* void arcfi long s long s long s short s short s */
4769
4770static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00004771gl_arcfi(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00004772{
4773 long arg1 ;
4774 long arg2 ;
4775 long arg3 ;
4776 short arg4 ;
4777 short arg5 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004778 if (!getilongarg(args, 5, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004779 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004780 if (!getilongarg(args, 5, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004781 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004782 if (!getilongarg(args, 5, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004783 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004784 if (!getishortarg(args, 5, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004785 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004786 if (!getishortarg(args, 5, 4, &arg5))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004787 return NULL;
4788 arcfi( arg1 , arg2 , arg3 , arg4 , arg5 );
4789 Py_INCREF(Py_None);
4790 return Py_None;
4791}
4792
4793/* void arci long s long s long s short s short s */
4794
4795static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00004796gl_arci(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00004797{
4798 long arg1 ;
4799 long arg2 ;
4800 long arg3 ;
4801 short arg4 ;
4802 short arg5 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004803 if (!getilongarg(args, 5, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004804 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004805 if (!getilongarg(args, 5, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004806 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004807 if (!getilongarg(args, 5, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004808 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004809 if (!getishortarg(args, 5, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004810 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004811 if (!getishortarg(args, 5, 4, &arg5))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004812 return NULL;
4813 arci( arg1 , arg2 , arg3 , arg4 , arg5 );
4814 Py_INCREF(Py_None);
4815 return Py_None;
4816}
4817
4818/* void bbox2 short s short s float s float s float s float s */
4819
4820static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00004821gl_bbox2(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00004822{
4823 short arg1 ;
4824 short arg2 ;
4825 float arg3 ;
4826 float arg4 ;
4827 float arg5 ;
4828 float arg6 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004829 if (!getishortarg(args, 6, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004830 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004831 if (!getishortarg(args, 6, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004832 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004833 if (!getifloatarg(args, 6, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004834 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004835 if (!getifloatarg(args, 6, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004836 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004837 if (!getifloatarg(args, 6, 4, &arg5))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004838 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004839 if (!getifloatarg(args, 6, 5, &arg6))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004840 return NULL;
4841 bbox2( arg1 , arg2 , arg3 , arg4 , arg5 , arg6 );
4842 Py_INCREF(Py_None);
4843 return Py_None;
4844}
4845
4846/* void bbox2i short s short s long s long s long s long s */
4847
4848static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00004849gl_bbox2i(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00004850{
4851 short arg1 ;
4852 short arg2 ;
4853 long arg3 ;
4854 long arg4 ;
4855 long arg5 ;
4856 long arg6 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004857 if (!getishortarg(args, 6, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004858 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004859 if (!getishortarg(args, 6, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004860 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004861 if (!getilongarg(args, 6, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004862 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004863 if (!getilongarg(args, 6, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004864 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004865 if (!getilongarg(args, 6, 4, &arg5))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004866 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004867 if (!getilongarg(args, 6, 5, &arg6))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004868 return NULL;
4869 bbox2i( arg1 , arg2 , arg3 , arg4 , arg5 , arg6 );
4870 Py_INCREF(Py_None);
4871 return Py_None;
4872}
4873
4874/* void bbox2s short s short s short s short s short s short s */
4875
4876static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00004877gl_bbox2s(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00004878{
4879 short arg1 ;
4880 short arg2 ;
4881 short arg3 ;
4882 short arg4 ;
4883 short arg5 ;
4884 short arg6 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004885 if (!getishortarg(args, 6, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004886 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004887 if (!getishortarg(args, 6, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004888 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004889 if (!getishortarg(args, 6, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004890 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004891 if (!getishortarg(args, 6, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004892 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004893 if (!getishortarg(args, 6, 4, &arg5))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004894 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004895 if (!getishortarg(args, 6, 5, &arg6))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004896 return NULL;
4897 bbox2s( arg1 , arg2 , arg3 , arg4 , arg5 , arg6 );
4898 Py_INCREF(Py_None);
4899 return Py_None;
4900}
4901
4902/* void blink short s short s short s short s short s */
4903
4904static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00004905gl_blink(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00004906{
4907 short arg1 ;
4908 short arg2 ;
4909 short arg3 ;
4910 short arg4 ;
4911 short arg5 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004912 if (!getishortarg(args, 5, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004913 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004914 if (!getishortarg(args, 5, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004915 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004916 if (!getishortarg(args, 5, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004917 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004918 if (!getishortarg(args, 5, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004919 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004920 if (!getishortarg(args, 5, 4, &arg5))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004921 return NULL;
4922 blink( arg1 , arg2 , arg3 , arg4 , arg5 );
4923 Py_INCREF(Py_None);
4924 return Py_None;
4925}
4926
4927/* void ortho float s float s float s float s float s float s */
4928
4929static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00004930gl_ortho(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00004931{
4932 float arg1 ;
4933 float arg2 ;
4934 float arg3 ;
4935 float arg4 ;
4936 float arg5 ;
4937 float arg6 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004938 if (!getifloatarg(args, 6, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004939 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004940 if (!getifloatarg(args, 6, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004941 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004942 if (!getifloatarg(args, 6, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004943 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004944 if (!getifloatarg(args, 6, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004945 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004946 if (!getifloatarg(args, 6, 4, &arg5))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004947 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004948 if (!getifloatarg(args, 6, 5, &arg6))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004949 return NULL;
4950 ortho( arg1 , arg2 , arg3 , arg4 , arg5 , arg6 );
4951 Py_INCREF(Py_None);
4952 return Py_None;
4953}
4954
4955/* void window float s float s float s float s float s float s */
4956
4957static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00004958gl_window(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00004959{
4960 float arg1 ;
4961 float arg2 ;
4962 float arg3 ;
4963 float arg4 ;
4964 float arg5 ;
4965 float arg6 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004966 if (!getifloatarg(args, 6, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004967 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004968 if (!getifloatarg(args, 6, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004969 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004970 if (!getifloatarg(args, 6, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004971 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004972 if (!getifloatarg(args, 6, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004973 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004974 if (!getifloatarg(args, 6, 4, &arg5))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004975 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004976 if (!getifloatarg(args, 6, 5, &arg6))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004977 return NULL;
4978 window( arg1 , arg2 , arg3 , arg4 , arg5 , arg6 );
4979 Py_INCREF(Py_None);
4980 return Py_None;
4981}
4982
4983/* void lookat float s float s float s float s float s float s short s */
4984
4985static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00004986gl_lookat(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00004987{
4988 float arg1 ;
4989 float arg2 ;
4990 float arg3 ;
4991 float arg4 ;
4992 float arg5 ;
4993 float arg6 ;
4994 short arg7 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004995 if (!getifloatarg(args, 7, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004996 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004997 if (!getifloatarg(args, 7, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00004998 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00004999 if (!getifloatarg(args, 7, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005000 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005001 if (!getifloatarg(args, 7, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005002 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005003 if (!getifloatarg(args, 7, 4, &arg5))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005004 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005005 if (!getifloatarg(args, 7, 5, &arg6))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005006 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005007 if (!getishortarg(args, 7, 6, &arg7))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005008 return NULL;
5009 lookat( arg1 , arg2 , arg3 , arg4 , arg5 , arg6 , arg7 );
5010 Py_INCREF(Py_None);
5011 return Py_None;
5012}
5013
5014/* void perspective short s float s float s float s */
5015
5016static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005017gl_perspective(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005018{
5019 short arg1 ;
5020 float arg2 ;
5021 float arg3 ;
5022 float arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005023 if (!getishortarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005024 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005025 if (!getifloatarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005026 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005027 if (!getifloatarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005028 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005029 if (!getifloatarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005030 return NULL;
5031 perspective( arg1 , arg2 , arg3 , arg4 );
5032 Py_INCREF(Py_None);
5033 return Py_None;
5034}
5035
5036/* void polarview float s short s short s short s */
5037
5038static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005039gl_polarview(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005040{
5041 float arg1 ;
5042 short arg2 ;
5043 short arg3 ;
5044 short arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005045 if (!getifloatarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005046 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005047 if (!getishortarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005048 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005049 if (!getishortarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005050 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005051 if (!getishortarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005052 return NULL;
5053 polarview( arg1 , arg2 , arg3 , arg4 );
5054 Py_INCREF(Py_None);
5055 return Py_None;
5056}
5057
5058/* void arcfs short s short s short s short s short s */
5059
5060static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005061gl_arcfs(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005062{
5063 short arg1 ;
5064 short arg2 ;
5065 short arg3 ;
5066 short arg4 ;
5067 short arg5 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005068 if (!getishortarg(args, 5, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005069 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005070 if (!getishortarg(args, 5, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005071 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005072 if (!getishortarg(args, 5, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005073 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005074 if (!getishortarg(args, 5, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005075 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005076 if (!getishortarg(args, 5, 4, &arg5))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005077 return NULL;
5078 arcfs( arg1 , arg2 , arg3 , arg4 , arg5 );
5079 Py_INCREF(Py_None);
5080 return Py_None;
5081}
5082
5083/* void arcs short s short s short s short s short s */
5084
5085static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005086gl_arcs(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005087{
5088 short arg1 ;
5089 short arg2 ;
5090 short arg3 ;
5091 short arg4 ;
5092 short arg5 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005093 if (!getishortarg(args, 5, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005094 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005095 if (!getishortarg(args, 5, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005096 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005097 if (!getishortarg(args, 5, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005098 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005099 if (!getishortarg(args, 5, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005100 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005101 if (!getishortarg(args, 5, 4, &arg5))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005102 return NULL;
5103 arcs( arg1 , arg2 , arg3 , arg4 , arg5 );
5104 Py_INCREF(Py_None);
5105 return Py_None;
5106}
5107
5108/* void rectcopy short s short s short s short s short s short s */
5109
5110static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005111gl_rectcopy(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005112{
5113 short arg1 ;
5114 short arg2 ;
5115 short arg3 ;
5116 short arg4 ;
5117 short arg5 ;
5118 short arg6 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005119 if (!getishortarg(args, 6, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005120 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005121 if (!getishortarg(args, 6, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005122 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005123 if (!getishortarg(args, 6, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005124 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005125 if (!getishortarg(args, 6, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005126 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005127 if (!getishortarg(args, 6, 4, &arg5))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005128 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005129 if (!getishortarg(args, 6, 5, &arg6))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005130 return NULL;
5131 rectcopy( arg1 , arg2 , arg3 , arg4 , arg5 , arg6 );
5132 Py_INCREF(Py_None);
5133 return Py_None;
5134}
5135
5136/* void RGBcursor short s short s short s short s short s short s short s */
5137
5138static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005139gl_RGBcursor(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005140{
5141 short arg1 ;
5142 short arg2 ;
5143 short arg3 ;
5144 short arg4 ;
5145 short arg5 ;
5146 short arg6 ;
5147 short arg7 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005148 if (!getishortarg(args, 7, 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, 7, 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, 7, 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, 7, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005155 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005156 if (!getishortarg(args, 7, 4, &arg5))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005157 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005158 if (!getishortarg(args, 7, 5, &arg6))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005159 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005160 if (!getishortarg(args, 7, 6, &arg7))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005161 return NULL;
5162 RGBcursor( arg1 , arg2 , arg3 , arg4 , arg5 , arg6 , arg7 );
5163 Py_INCREF(Py_None);
5164 return Py_None;
5165}
5166
5167/* long getbutton short s */
5168
5169static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005170gl_getbutton(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005171{
5172 long retval;
5173 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005174 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005175 return NULL;
5176 retval = getbutton( arg1 );
5177 return mknewlongobject(retval);
5178}
5179
5180/* long getcmmode */
5181
5182static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005183gl_getcmmode(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005184{
5185 long retval;
5186 retval = getcmmode( );
5187 return mknewlongobject(retval);
5188}
5189
5190/* long getlsbackup */
5191
5192static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005193gl_getlsbackup(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005194{
5195 long retval;
5196 retval = getlsbackup( );
5197 return mknewlongobject(retval);
5198}
5199
5200/* long getresetls */
5201
5202static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005203gl_getresetls(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005204{
5205 long retval;
5206 retval = getresetls( );
5207 return mknewlongobject(retval);
5208}
5209
5210/* long getdcm */
5211
5212static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005213gl_getdcm(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005214{
5215 long retval;
5216 retval = getdcm( );
5217 return mknewlongobject(retval);
5218}
5219
5220/* long getzbuffer */
5221
5222static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005223gl_getzbuffer(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005224{
5225 long retval;
5226 retval = getzbuffer( );
5227 return mknewlongobject(retval);
5228}
5229
5230/* long ismex */
5231
5232static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005233gl_ismex(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005234{
5235 long retval;
5236 retval = ismex( );
5237 return mknewlongobject(retval);
5238}
5239
5240/* long isobj long s */
5241
5242static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005243gl_isobj(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005244{
5245 long retval;
5246 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005247 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005248 return NULL;
5249 retval = isobj( arg1 );
5250 return mknewlongobject(retval);
5251}
5252
5253/* long isqueued short s */
5254
5255static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005256gl_isqueued(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005257{
5258 long retval;
5259 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005260 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005261 return NULL;
5262 retval = isqueued( arg1 );
5263 return mknewlongobject(retval);
5264}
5265
5266/* long istag long s */
5267
5268static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005269gl_istag(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005270{
5271 long retval;
5272 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005273 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005274 return NULL;
5275 retval = istag( arg1 );
5276 return mknewlongobject(retval);
5277}
5278
5279/* long genobj */
5280
5281static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005282gl_genobj(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005283{
5284 long retval;
5285 retval = genobj( );
5286 return mknewlongobject(retval);
5287}
5288
5289/* long gentag */
5290
5291static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005292gl_gentag(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005293{
5294 long retval;
5295 retval = gentag( );
5296 return mknewlongobject(retval);
5297}
5298
5299/* long getbuffer */
5300
5301static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005302gl_getbuffer(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005303{
5304 long retval;
5305 retval = getbuffer( );
5306 return mknewlongobject(retval);
5307}
5308
5309/* long getcolor */
5310
5311static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005312gl_getcolor(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005313{
5314 long retval;
5315 retval = getcolor( );
5316 return mknewlongobject(retval);
5317}
5318
5319/* long getdisplaymode */
5320
5321static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005322gl_getdisplaymode(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005323{
5324 long retval;
5325 retval = getdisplaymode( );
5326 return mknewlongobject(retval);
5327}
5328
5329/* long getfont */
5330
5331static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005332gl_getfont(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005333{
5334 long retval;
5335 retval = getfont( );
5336 return mknewlongobject(retval);
5337}
5338
5339/* long getheight */
5340
5341static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005342gl_getheight(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005343{
5344 long retval;
5345 retval = getheight( );
5346 return mknewlongobject(retval);
5347}
5348
5349/* long gethitcode */
5350
5351static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005352gl_gethitcode(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005353{
5354 long retval;
5355 retval = gethitcode( );
5356 return mknewlongobject(retval);
5357}
5358
5359/* long getlstyle */
5360
5361static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005362gl_getlstyle(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005363{
5364 long retval;
5365 retval = getlstyle( );
5366 return mknewlongobject(retval);
5367}
5368
5369/* long getlwidth */
5370
5371static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005372gl_getlwidth(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005373{
5374 long retval;
5375 retval = getlwidth( );
5376 return mknewlongobject(retval);
5377}
5378
5379/* long getmap */
5380
5381static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005382gl_getmap(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005383{
5384 long retval;
5385 retval = getmap( );
5386 return mknewlongobject(retval);
5387}
5388
5389/* long getplanes */
5390
5391static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005392gl_getplanes(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005393{
5394 long retval;
5395 retval = getplanes( );
5396 return mknewlongobject(retval);
5397}
5398
5399/* long getwritemask */
5400
5401static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005402gl_getwritemask(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005403{
5404 long retval;
5405 retval = getwritemask( );
5406 return mknewlongobject(retval);
5407}
5408
5409/* long qtest */
5410
5411static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005412gl_qtest(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005413{
5414 long retval;
5415 retval = qtest( );
5416 return mknewlongobject(retval);
5417}
5418
5419/* long getlsrepeat */
5420
5421static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005422gl_getlsrepeat(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005423{
5424 long retval;
5425 retval = getlsrepeat( );
5426 return mknewlongobject(retval);
5427}
5428
5429/* long getmonitor */
5430
5431static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005432gl_getmonitor(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005433{
5434 long retval;
5435 retval = getmonitor( );
5436 return mknewlongobject(retval);
5437}
5438
5439/* long getopenobj */
5440
5441static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005442gl_getopenobj(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005443{
5444 long retval;
5445 retval = getopenobj( );
5446 return mknewlongobject(retval);
5447}
5448
5449/* long getpattern */
5450
5451static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005452gl_getpattern(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005453{
5454 long retval;
5455 retval = getpattern( );
5456 return mknewlongobject(retval);
5457}
5458
5459/* long winget */
5460
5461static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005462gl_winget(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005463{
5464 long retval;
5465 retval = winget( );
5466 return mknewlongobject(retval);
5467}
5468
5469/* long winattach */
5470
5471static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005472gl_winattach(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005473{
5474 long retval;
5475 retval = winattach( );
5476 return mknewlongobject(retval);
5477}
5478
5479/* long getothermonitor */
5480
5481static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005482gl_getothermonitor(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005483{
5484 long retval;
5485 retval = getothermonitor( );
5486 return mknewlongobject(retval);
5487}
5488
5489/* long newpup */
5490
5491static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005492gl_newpup(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005493{
5494 long retval;
5495 retval = newpup( );
5496 return mknewlongobject(retval);
5497}
5498
5499/* long getvaluator short s */
5500
5501static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005502gl_getvaluator(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005503{
5504 long retval;
5505 short arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005506 if (!getishortarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005507 return NULL;
5508 retval = getvaluator( arg1 );
5509 return mknewlongobject(retval);
5510}
5511
5512/* void winset long s */
5513
5514static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005515gl_winset(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005516{
5517 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005518 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005519 return NULL;
5520 winset( arg1 );
5521 Py_INCREF(Py_None);
5522 return Py_None;
5523}
5524
5525/* long dopup long s */
5526
5527static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005528gl_dopup(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005529{
5530 long retval;
5531 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005532 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005533 return NULL;
5534 retval = dopup( arg1 );
5535 return mknewlongobject(retval);
5536}
5537
5538/* void getdepth short r short r */
5539
5540static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005541gl_getdepth(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005542{
5543 short arg1 ;
5544 short arg2 ;
5545 getdepth( & arg1 , & arg2 );
5546 { PyObject *v = PyTuple_New( 2 );
5547 if (v == NULL) return NULL;
5548 PyTuple_SetItem(v, 0, mknewshortobject(arg1));
5549 PyTuple_SetItem(v, 1, mknewshortobject(arg2));
5550 return v;
5551 }
5552}
5553
5554/* void getcpos short r short r */
5555
5556static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005557gl_getcpos(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005558{
5559 short arg1 ;
5560 short arg2 ;
5561 getcpos( & arg1 , & arg2 );
5562 { PyObject *v = PyTuple_New( 2 );
5563 if (v == NULL) return NULL;
5564 PyTuple_SetItem(v, 0, mknewshortobject(arg1));
5565 PyTuple_SetItem(v, 1, mknewshortobject(arg2));
5566 return v;
5567 }
5568}
5569
5570/* void getsize long r long r */
5571
5572static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005573gl_getsize(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005574{
5575 long arg1 ;
5576 long arg2 ;
5577 getsize( & arg1 , & arg2 );
5578 { PyObject *v = PyTuple_New( 2 );
5579 if (v == NULL) return NULL;
5580 PyTuple_SetItem(v, 0, mknewlongobject(arg1));
5581 PyTuple_SetItem(v, 1, mknewlongobject(arg2));
5582 return v;
5583 }
5584}
5585
5586/* void getorigin long r long r */
5587
5588static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005589gl_getorigin(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005590{
5591 long arg1 ;
5592 long arg2 ;
5593 getorigin( & arg1 , & arg2 );
5594 { PyObject *v = PyTuple_New( 2 );
5595 if (v == NULL) return NULL;
5596 PyTuple_SetItem(v, 0, mknewlongobject(arg1));
5597 PyTuple_SetItem(v, 1, mknewlongobject(arg2));
5598 return v;
5599 }
5600}
5601
5602/* void getviewport short r short r short r short r */
5603
5604static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005605gl_getviewport(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005606{
5607 short arg1 ;
5608 short arg2 ;
5609 short arg3 ;
5610 short arg4 ;
5611 getviewport( & arg1 , & arg2 , & arg3 , & arg4 );
5612 { PyObject *v = PyTuple_New( 4 );
5613 if (v == NULL) return NULL;
5614 PyTuple_SetItem(v, 0, mknewshortobject(arg1));
5615 PyTuple_SetItem(v, 1, mknewshortobject(arg2));
5616 PyTuple_SetItem(v, 2, mknewshortobject(arg3));
5617 PyTuple_SetItem(v, 3, mknewshortobject(arg4));
5618 return v;
5619 }
5620}
5621
5622/* void gettp short r short r short r short r */
5623
5624static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005625gl_gettp(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005626{
5627 short arg1 ;
5628 short arg2 ;
5629 short arg3 ;
5630 short arg4 ;
5631 gettp( & arg1 , & arg2 , & arg3 , & arg4 );
5632 { PyObject *v = PyTuple_New( 4 );
5633 if (v == NULL) return NULL;
5634 PyTuple_SetItem(v, 0, mknewshortobject(arg1));
5635 PyTuple_SetItem(v, 1, mknewshortobject(arg2));
5636 PyTuple_SetItem(v, 2, mknewshortobject(arg3));
5637 PyTuple_SetItem(v, 3, mknewshortobject(arg4));
5638 return v;
5639 }
5640}
5641
5642/* void getgpos float r float r float r float r */
5643
5644static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005645gl_getgpos(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005646{
5647 float arg1 ;
5648 float arg2 ;
5649 float arg3 ;
5650 float arg4 ;
5651 getgpos( & arg1 , & arg2 , & arg3 , & arg4 );
5652 { PyObject *v = PyTuple_New( 4 );
5653 if (v == NULL) return NULL;
5654 PyTuple_SetItem(v, 0, mknewfloatobject(arg1));
5655 PyTuple_SetItem(v, 1, mknewfloatobject(arg2));
5656 PyTuple_SetItem(v, 2, mknewfloatobject(arg3));
5657 PyTuple_SetItem(v, 3, mknewfloatobject(arg4));
5658 return v;
5659 }
5660}
5661
5662/* void winposition long s long s long s long s */
5663
5664static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005665gl_winposition(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005666{
5667 long arg1 ;
5668 long arg2 ;
5669 long arg3 ;
5670 long arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005671 if (!getilongarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005672 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005673 if (!getilongarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005674 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005675 if (!getilongarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005676 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005677 if (!getilongarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005678 return NULL;
5679 winposition( arg1 , arg2 , arg3 , arg4 );
5680 Py_INCREF(Py_None);
5681 return Py_None;
5682}
5683
5684/* void gRGBcolor short r short r short r */
5685
5686static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005687gl_gRGBcolor(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005688{
5689 short arg1 ;
5690 short arg2 ;
5691 short arg3 ;
5692 gRGBcolor( & arg1 , & arg2 , & arg3 );
5693 { PyObject *v = PyTuple_New( 3 );
5694 if (v == NULL) return NULL;
5695 PyTuple_SetItem(v, 0, mknewshortobject(arg1));
5696 PyTuple_SetItem(v, 1, mknewshortobject(arg2));
5697 PyTuple_SetItem(v, 2, mknewshortobject(arg3));
5698 return v;
5699 }
5700}
5701
5702/* void gRGBmask short r short r short r */
5703
5704static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005705gl_gRGBmask(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005706{
5707 short arg1 ;
5708 short arg2 ;
5709 short arg3 ;
5710 gRGBmask( & arg1 , & arg2 , & arg3 );
5711 { PyObject *v = PyTuple_New( 3 );
5712 if (v == NULL) return NULL;
5713 PyTuple_SetItem(v, 0, mknewshortobject(arg1));
5714 PyTuple_SetItem(v, 1, mknewshortobject(arg2));
5715 PyTuple_SetItem(v, 2, mknewshortobject(arg3));
5716 return v;
5717 }
5718}
5719
5720/* void getscrmask short r short r short r short r */
5721
5722static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005723gl_getscrmask(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005724{
5725 short arg1 ;
5726 short arg2 ;
5727 short arg3 ;
5728 short arg4 ;
5729 getscrmask( & arg1 , & arg2 , & arg3 , & arg4 );
5730 { PyObject *v = PyTuple_New( 4 );
5731 if (v == NULL) return NULL;
5732 PyTuple_SetItem(v, 0, mknewshortobject(arg1));
5733 PyTuple_SetItem(v, 1, mknewshortobject(arg2));
5734 PyTuple_SetItem(v, 2, mknewshortobject(arg3));
5735 PyTuple_SetItem(v, 3, mknewshortobject(arg4));
5736 return v;
5737 }
5738}
5739
5740/* void getmcolor short s short r short r short r */
5741
5742static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005743gl_getmcolor(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005744{
5745 short arg1 ;
5746 short arg2 ;
5747 short arg3 ;
5748 short arg4 ;
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 getmcolor( arg1 , & arg2 , & arg3 , & arg4 );
5752 { PyObject *v = PyTuple_New( 3 );
5753 if (v == NULL) return NULL;
5754 PyTuple_SetItem(v, 0, mknewshortobject(arg2));
5755 PyTuple_SetItem(v, 1, mknewshortobject(arg3));
5756 PyTuple_SetItem(v, 2, mknewshortobject(arg4));
5757 return v;
5758 }
5759}
5760
Guido van Rossumdfed9201997-04-29 15:46:43 +00005761/* 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 +00005762
5763static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005764gl_mapw(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005765{
5766 long arg1 ;
5767 short arg2 ;
5768 short arg3 ;
5769 float arg4 ;
5770 float arg5 ;
5771 float arg6 ;
5772 float arg7 ;
5773 float arg8 ;
5774 float arg9 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005775 if (!getilongarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005776 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005777 if (!getishortarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005778 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005779 if (!getishortarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005780 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005781 mapw( arg1 , arg2 , arg3 , & arg4 , & arg5 , & arg6 , & arg7 , & arg8 , & arg9 );
Roger E. Massefbd1d741996-12-24 19:39:23 +00005782 { PyObject *v = PyTuple_New( 6 );
5783 if (v == NULL) return NULL;
5784 PyTuple_SetItem(v, 0, mknewfloatobject(arg4));
5785 PyTuple_SetItem(v, 1, mknewfloatobject(arg5));
5786 PyTuple_SetItem(v, 2, mknewfloatobject(arg6));
5787 PyTuple_SetItem(v, 3, mknewfloatobject(arg7));
5788 PyTuple_SetItem(v, 4, mknewfloatobject(arg8));
5789 PyTuple_SetItem(v, 5, mknewfloatobject(arg9));
5790 return v;
5791 }
5792}
5793
5794/* void mapw2 long s short s short s float r float r */
5795
5796static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005797gl_mapw2(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005798{
5799 long arg1 ;
5800 short arg2 ;
5801 short arg3 ;
5802 float arg4 ;
5803 float arg5 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005804 if (!getilongarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005805 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005806 if (!getishortarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005807 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005808 if (!getishortarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005809 return NULL;
5810 mapw2( arg1 , arg2 , arg3 , & arg4 , & arg5 );
5811 { PyObject *v = PyTuple_New( 2 );
5812 if (v == NULL) return NULL;
5813 PyTuple_SetItem(v, 0, mknewfloatobject(arg4));
5814 PyTuple_SetItem(v, 1, mknewfloatobject(arg5));
5815 return v;
5816 }
5817}
5818
5819/* void getcursor short r u_short r u_short r long r */
5820
5821static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005822gl_getcursor(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005823{
5824 short arg1 ;
5825 unsigned short arg2 ;
5826 unsigned short arg3 ;
5827 long arg4 ;
5828 getcursor( & arg1 , & arg2 , & arg3 , & arg4 );
5829 { PyObject *v = PyTuple_New( 4 );
5830 if (v == NULL) return NULL;
5831 PyTuple_SetItem(v, 0, mknewshortobject(arg1));
5832 PyTuple_SetItem(v, 1, mknewshortobject((short) arg2));
5833 PyTuple_SetItem(v, 2, mknewshortobject((short) arg3));
5834 PyTuple_SetItem(v, 3, mknewlongobject(arg4));
5835 return v;
5836 }
5837}
5838
5839/* void cmode */
5840
5841static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005842gl_cmode(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005843{
5844 cmode( );
5845 Py_INCREF(Py_None);
5846 return Py_None;
5847}
5848
5849/* void concave long s */
5850
5851static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005852gl_concave(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005853{
5854 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005855 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005856 return NULL;
5857 concave( arg1 );
5858 Py_INCREF(Py_None);
5859 return Py_None;
5860}
5861
5862/* void curstype long s */
5863
5864static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005865gl_curstype(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005866{
5867 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005868 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005869 return NULL;
5870 curstype( arg1 );
5871 Py_INCREF(Py_None);
5872 return Py_None;
5873}
5874
5875/* void drawmode long s */
5876
5877static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005878gl_drawmode(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005879{
5880 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005881 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005882 return NULL;
5883 drawmode( arg1 );
5884 Py_INCREF(Py_None);
5885 return Py_None;
5886}
5887
5888/* void gammaramp short s[256] short s[256] short s[256] */
5889
5890static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005891gl_gammaramp(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005892{
5893 short arg1 [ 256 ] ;
5894 short arg2 [ 256 ] ;
5895 short arg3 [ 256 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005896 if (!getishortarray(args, 3, 0, 256 , arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005897 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005898 if (!getishortarray(args, 3, 1, 256 , arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005899 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005900 if (!getishortarray(args, 3, 2, 256 , arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005901 return NULL;
5902 gammaramp( arg1 , arg2 , arg3 );
5903 Py_INCREF(Py_None);
5904 return Py_None;
5905}
5906
5907/* long getbackface */
5908
5909static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005910gl_getbackface(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005911{
5912 long retval;
5913 retval = getbackface( );
5914 return mknewlongobject(retval);
5915}
5916
5917/* long getdescender */
5918
5919static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005920gl_getdescender(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005921{
5922 long retval;
5923 retval = getdescender( );
5924 return mknewlongobject(retval);
5925}
5926
5927/* long getdrawmode */
5928
5929static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005930gl_getdrawmode(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005931{
5932 long retval;
5933 retval = getdrawmode( );
5934 return mknewlongobject(retval);
5935}
5936
5937/* long getmmode */
5938
5939static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005940gl_getmmode(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005941{
5942 long retval;
5943 retval = getmmode( );
5944 return mknewlongobject(retval);
5945}
5946
5947/* long getsm */
5948
5949static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005950gl_getsm(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005951{
5952 long retval;
5953 retval = getsm( );
5954 return mknewlongobject(retval);
5955}
5956
5957/* long getvideo long s */
5958
5959static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005960gl_getvideo(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005961{
5962 long retval;
5963 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005964 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005965 return NULL;
5966 retval = getvideo( arg1 );
5967 return mknewlongobject(retval);
5968}
5969
5970/* void imakebackground */
5971
5972static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005973gl_imakebackground(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005974{
5975 imakebackground( );
5976 Py_INCREF(Py_None);
5977 return Py_None;
5978}
5979
5980/* void lmbind short s short s */
5981
5982static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005983gl_lmbind(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00005984{
5985 short arg1 ;
5986 short arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005987 if (!getishortarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005988 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00005989 if (!getishortarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00005990 return NULL;
5991 lmbind( arg1 , arg2 );
5992 Py_INCREF(Py_None);
5993 return Py_None;
5994}
5995
5996/* void lmdef long s long s long s float s[arg3] */
5997
5998static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00005999gl_lmdef(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006000{
6001 long arg1 ;
6002 long arg2 ;
6003 long arg3 ;
6004 float * arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006005 if (!getilongarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006006 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006007 if (!getilongarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006008 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006009 if (!getilongarraysize(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006010 return NULL;
6011 if ((arg4 = PyMem_NEW(float , arg3 )) == NULL)
6012 return PyErr_NoMemory();
Guido van Rossumdfed9201997-04-29 15:46:43 +00006013 if (!getifloatarray(args, 3, 2, arg3 , arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006014 return NULL;
6015 lmdef( arg1 , arg2 , arg3 , arg4 );
6016 PyMem_DEL(arg4);
6017 Py_INCREF(Py_None);
6018 return Py_None;
6019}
6020
6021/* void mmode long s */
6022
6023static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006024gl_mmode(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006025{
6026 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006027 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006028 return NULL;
6029 mmode( arg1 );
6030 Py_INCREF(Py_None);
6031 return Py_None;
6032}
6033
6034/* void normal float s[3] */
6035
6036static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006037gl_normal(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006038{
6039 float arg1 [ 3 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006040 if (!getifloatarray(args, 1, 0, 3 , arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006041 return NULL;
6042 normal( arg1 );
6043 Py_INCREF(Py_None);
6044 return Py_None;
6045}
6046
6047/* void overlay long s */
6048
6049static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006050gl_overlay(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006051{
6052 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006053 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006054 return NULL;
6055 overlay( arg1 );
6056 Py_INCREF(Py_None);
6057 return Py_None;
6058}
6059
Guido van Rossumdfed9201997-04-29 15:46:43 +00006060/* 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 +00006061
6062static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006063gl_RGBrange(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006064{
6065 short arg1 ;
6066 short arg2 ;
6067 short arg3 ;
6068 short arg4 ;
6069 short arg5 ;
6070 short arg6 ;
6071 short arg7 ;
6072 short arg8 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006073 if (!getishortarg(args, 8, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006074 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006075 if (!getishortarg(args, 8, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006076 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006077 if (!getishortarg(args, 8, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006078 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006079 if (!getishortarg(args, 8, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006080 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006081 if (!getishortarg(args, 8, 4, &arg5))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006082 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006083 if (!getishortarg(args, 8, 5, &arg6))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006084 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006085 if (!getishortarg(args, 8, 6, &arg7))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006086 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006087 if (!getishortarg(args, 8, 7, &arg8))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006088 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006089 RGBrange( arg1 , arg2 , arg3 , arg4 , arg5 , arg6 , arg7 , arg8 );
Roger E. Massefbd1d741996-12-24 19:39:23 +00006090 Py_INCREF(Py_None);
6091 return Py_None;
6092}
6093
6094/* void setvideo long s long s */
6095
6096static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006097gl_setvideo(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006098{
6099 long arg1 ;
6100 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006101 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006102 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006103 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006104 return NULL;
6105 setvideo( arg1 , arg2 );
6106 Py_INCREF(Py_None);
6107 return Py_None;
6108}
6109
6110/* void shademodel long s */
6111
6112static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006113gl_shademodel(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006114{
6115 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006116 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006117 return NULL;
6118 shademodel( arg1 );
6119 Py_INCREF(Py_None);
6120 return Py_None;
6121}
6122
6123/* void underlay long s */
6124
6125static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006126gl_underlay(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006127{
6128 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006129 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006130 return NULL;
6131 underlay( arg1 );
6132 Py_INCREF(Py_None);
6133 return Py_None;
6134}
6135
6136/* void bgnclosedline */
6137
6138static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006139gl_bgnclosedline(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006140{
6141 bgnclosedline( );
6142 Py_INCREF(Py_None);
6143 return Py_None;
6144}
6145
6146/* void bgnline */
6147
6148static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006149gl_bgnline(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006150{
6151 bgnline( );
6152 Py_INCREF(Py_None);
6153 return Py_None;
6154}
6155
6156/* void bgnpoint */
6157
6158static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006159gl_bgnpoint(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006160{
6161 bgnpoint( );
6162 Py_INCREF(Py_None);
6163 return Py_None;
6164}
6165
6166/* void bgnpolygon */
6167
6168static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006169gl_bgnpolygon(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006170{
6171 bgnpolygon( );
6172 Py_INCREF(Py_None);
6173 return Py_None;
6174}
6175
6176/* void bgnsurface */
6177
6178static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006179gl_bgnsurface(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006180{
6181 bgnsurface( );
6182 Py_INCREF(Py_None);
6183 return Py_None;
6184}
6185
6186/* void bgntmesh */
6187
6188static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006189gl_bgntmesh(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006190{
6191 bgntmesh( );
6192 Py_INCREF(Py_None);
6193 return Py_None;
6194}
6195
6196/* void bgntrim */
6197
6198static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006199gl_bgntrim(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006200{
6201 bgntrim( );
6202 Py_INCREF(Py_None);
6203 return Py_None;
6204}
6205
6206/* void endclosedline */
6207
6208static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006209gl_endclosedline(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006210{
6211 endclosedline( );
6212 Py_INCREF(Py_None);
6213 return Py_None;
6214}
6215
6216/* void endline */
6217
6218static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006219gl_endline(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006220{
6221 endline( );
6222 Py_INCREF(Py_None);
6223 return Py_None;
6224}
6225
6226/* void endpoint */
6227
6228static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006229gl_endpoint(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006230{
6231 endpoint( );
6232 Py_INCREF(Py_None);
6233 return Py_None;
6234}
6235
6236/* void endpolygon */
6237
6238static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006239gl_endpolygon(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006240{
6241 endpolygon( );
6242 Py_INCREF(Py_None);
6243 return Py_None;
6244}
6245
6246/* void endsurface */
6247
6248static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006249gl_endsurface(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006250{
6251 endsurface( );
6252 Py_INCREF(Py_None);
6253 return Py_None;
6254}
6255
6256/* void endtmesh */
6257
6258static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006259gl_endtmesh(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006260{
6261 endtmesh( );
6262 Py_INCREF(Py_None);
6263 return Py_None;
6264}
6265
6266/* void endtrim */
6267
6268static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006269gl_endtrim(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006270{
6271 endtrim( );
6272 Py_INCREF(Py_None);
6273 return Py_None;
6274}
6275
6276/* void blendfunction long s long s */
6277
6278static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006279gl_blendfunction(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006280{
6281 long arg1 ;
6282 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006283 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006284 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006285 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006286 return NULL;
6287 blendfunction( arg1 , arg2 );
6288 Py_INCREF(Py_None);
6289 return Py_None;
6290}
6291
6292/* void c3f float s[3] */
6293
6294static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006295gl_c3f(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006296{
6297 float arg1 [ 3 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006298 if (!getifloatarray(args, 1, 0, 3 , arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006299 return NULL;
6300 c3f( arg1 );
6301 Py_INCREF(Py_None);
6302 return Py_None;
6303}
6304
6305/* void c3i long s[3] */
6306
6307static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006308gl_c3i(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006309{
6310 long arg1 [ 3 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006311 if (!getilongarray(args, 1, 0, 3 , arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006312 return NULL;
6313 c3i( arg1 );
6314 Py_INCREF(Py_None);
6315 return Py_None;
6316}
6317
6318/* void c3s short s[3] */
6319
6320static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006321gl_c3s(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006322{
6323 short arg1 [ 3 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006324 if (!getishortarray(args, 1, 0, 3 , arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006325 return NULL;
6326 c3s( arg1 );
6327 Py_INCREF(Py_None);
6328 return Py_None;
6329}
6330
6331/* void c4f float s[4] */
6332
6333static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006334gl_c4f(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006335{
6336 float arg1 [ 4 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006337 if (!getifloatarray(args, 1, 0, 4 , arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006338 return NULL;
6339 c4f( arg1 );
6340 Py_INCREF(Py_None);
6341 return Py_None;
6342}
6343
6344/* void c4i long s[4] */
6345
6346static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006347gl_c4i(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006348{
6349 long arg1 [ 4 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006350 if (!getilongarray(args, 1, 0, 4 , arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006351 return NULL;
6352 c4i( arg1 );
6353 Py_INCREF(Py_None);
6354 return Py_None;
6355}
6356
6357/* void c4s short s[4] */
6358
6359static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006360gl_c4s(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006361{
6362 short arg1 [ 4 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006363 if (!getishortarray(args, 1, 0, 4 , arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006364 return NULL;
6365 c4s( arg1 );
6366 Py_INCREF(Py_None);
6367 return Py_None;
6368}
6369
6370/* void colorf float s */
6371
6372static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006373gl_colorf(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006374{
6375 float arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006376 if (!getifloatarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006377 return NULL;
6378 colorf( arg1 );
6379 Py_INCREF(Py_None);
6380 return Py_None;
6381}
6382
6383/* void cpack long s */
6384
6385static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006386gl_cpack(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006387{
6388 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006389 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006390 return NULL;
6391 cpack( arg1 );
6392 Py_INCREF(Py_None);
6393 return Py_None;
6394}
6395
6396/* void czclear long s long s */
6397
6398static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006399gl_czclear(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006400{
6401 long arg1 ;
6402 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006403 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006404 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006405 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006406 return NULL;
6407 czclear( arg1 , arg2 );
6408 Py_INCREF(Py_None);
6409 return Py_None;
6410}
6411
6412/* void dglclose long s */
6413
6414static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006415gl_dglclose(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006416{
6417 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006418 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006419 return NULL;
6420 dglclose( arg1 );
6421 Py_INCREF(Py_None);
6422 return Py_None;
6423}
6424
6425/* long dglopen char *s long s */
6426
6427static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006428gl_dglopen(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006429{
6430 long retval;
6431 string arg1 ;
6432 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006433 if (!getistringarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006434 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006435 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006436 return NULL;
6437 retval = dglopen( arg1 , arg2 );
6438 return mknewlongobject(retval);
6439}
6440
6441/* long getgdesc long s */
6442
6443static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006444gl_getgdesc(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006445{
6446 long retval;
6447 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006448 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006449 return NULL;
6450 retval = getgdesc( arg1 );
6451 return mknewlongobject(retval);
6452}
6453
6454/* void getnurbsproperty long s float r */
6455
6456static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006457gl_getnurbsproperty(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006458{
6459 long arg1 ;
6460 float arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006461 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006462 return NULL;
6463 getnurbsproperty( arg1 , & arg2 );
6464 return mknewfloatobject(arg2);
6465}
6466
6467/* void glcompat long s long s */
6468
6469static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006470gl_glcompat(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006471{
6472 long arg1 ;
6473 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006474 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006475 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006476 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006477 return NULL;
6478 glcompat( arg1 , arg2 );
6479 Py_INCREF(Py_None);
6480 return Py_None;
6481}
6482
6483/* void iconsize long s long s */
6484
6485static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006486gl_iconsize(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006487{
6488 long arg1 ;
6489 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006490 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006491 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006492 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006493 return NULL;
6494 iconsize( arg1 , arg2 );
6495 Py_INCREF(Py_None);
6496 return Py_None;
6497}
6498
6499/* void icontitle char *s */
6500
6501static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006502gl_icontitle(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006503{
6504 string arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006505 if (!getistringarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006506 return NULL;
6507 icontitle( arg1 );
6508 Py_INCREF(Py_None);
6509 return Py_None;
6510}
6511
Guido van Rossumdfed9201997-04-29 15:46:43 +00006512/* 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 +00006513
6514static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006515gl_lRGBrange(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006516{
6517 short arg1 ;
6518 short arg2 ;
6519 short arg3 ;
6520 short arg4 ;
6521 short arg5 ;
6522 short arg6 ;
6523 long arg7 ;
6524 long arg8 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006525 if (!getishortarg(args, 8, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006526 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006527 if (!getishortarg(args, 8, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006528 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006529 if (!getishortarg(args, 8, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006530 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006531 if (!getishortarg(args, 8, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006532 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006533 if (!getishortarg(args, 8, 4, &arg5))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006534 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006535 if (!getishortarg(args, 8, 5, &arg6))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006536 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006537 if (!getilongarg(args, 8, 6, &arg7))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006538 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006539 if (!getilongarg(args, 8, 7, &arg8))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006540 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006541 lRGBrange( arg1 , arg2 , arg3 , arg4 , arg5 , arg6 , arg7 , arg8 );
Roger E. Massefbd1d741996-12-24 19:39:23 +00006542 Py_INCREF(Py_None);
6543 return Py_None;
6544}
6545
6546/* void linesmooth long s */
6547
6548static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006549gl_linesmooth(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006550{
6551 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006552 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006553 return NULL;
6554 linesmooth( arg1 );
6555 Py_INCREF(Py_None);
6556 return Py_None;
6557}
6558
6559/* void lmcolor long s */
6560
6561static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006562gl_lmcolor(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006563{
6564 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006565 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006566 return NULL;
6567 lmcolor( arg1 );
6568 Py_INCREF(Py_None);
6569 return Py_None;
6570}
6571
6572/* void logicop long s */
6573
6574static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006575gl_logicop(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006576{
6577 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006578 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006579 return NULL;
6580 logicop( arg1 );
6581 Py_INCREF(Py_None);
6582 return Py_None;
6583}
6584
6585/* void lsetdepth long s long s */
6586
6587static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006588gl_lsetdepth(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006589{
6590 long arg1 ;
6591 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006592 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006593 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006594 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006595 return NULL;
6596 lsetdepth( arg1 , arg2 );
6597 Py_INCREF(Py_None);
6598 return Py_None;
6599}
6600
6601/* void lshaderange short s short s long s long s */
6602
6603static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006604gl_lshaderange(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006605{
6606 short arg1 ;
6607 short arg2 ;
6608 long arg3 ;
6609 long arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006610 if (!getishortarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006611 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006612 if (!getishortarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006613 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006614 if (!getilongarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006615 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006616 if (!getilongarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006617 return NULL;
6618 lshaderange( arg1 , arg2 , arg3 , arg4 );
6619 Py_INCREF(Py_None);
6620 return Py_None;
6621}
6622
6623/* void n3f float s[3] */
6624
6625static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006626gl_n3f(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006627{
6628 float arg1 [ 3 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006629 if (!getifloatarray(args, 1, 0, 3 , arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006630 return NULL;
6631 n3f( arg1 );
6632 Py_INCREF(Py_None);
6633 return Py_None;
6634}
6635
6636/* void noborder */
6637
6638static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006639gl_noborder(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006640{
6641 noborder( );
6642 Py_INCREF(Py_None);
6643 return Py_None;
6644}
6645
6646/* void pntsmooth long s */
6647
6648static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006649gl_pntsmooth(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006650{
6651 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006652 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006653 return NULL;
6654 pntsmooth( arg1 );
6655 Py_INCREF(Py_None);
6656 return Py_None;
6657}
6658
6659/* void readsource long s */
6660
6661static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006662gl_readsource(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006663{
6664 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006665 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006666 return NULL;
6667 readsource( arg1 );
6668 Py_INCREF(Py_None);
6669 return Py_None;
6670}
6671
6672/* void rectzoom float s float s */
6673
6674static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006675gl_rectzoom(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006676{
6677 float arg1 ;
6678 float arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006679 if (!getifloatarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006680 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006681 if (!getifloatarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006682 return NULL;
6683 rectzoom( arg1 , arg2 );
6684 Py_INCREF(Py_None);
6685 return Py_None;
6686}
6687
6688/* void sbox float s float s float s float s */
6689
6690static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006691gl_sbox(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006692{
6693 float arg1 ;
6694 float arg2 ;
6695 float arg3 ;
6696 float arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006697 if (!getifloatarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006698 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006699 if (!getifloatarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006700 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006701 if (!getifloatarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006702 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006703 if (!getifloatarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006704 return NULL;
6705 sbox( arg1 , arg2 , arg3 , arg4 );
6706 Py_INCREF(Py_None);
6707 return Py_None;
6708}
6709
6710/* void sboxi long s long s long s long s */
6711
6712static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006713gl_sboxi(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006714{
6715 long arg1 ;
6716 long arg2 ;
6717 long arg3 ;
6718 long arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006719 if (!getilongarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006720 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006721 if (!getilongarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006722 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006723 if (!getilongarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006724 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006725 if (!getilongarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006726 return NULL;
6727 sboxi( arg1 , arg2 , arg3 , arg4 );
6728 Py_INCREF(Py_None);
6729 return Py_None;
6730}
6731
6732/* void sboxs short s short s short s short s */
6733
6734static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006735gl_sboxs(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006736{
6737 short arg1 ;
6738 short arg2 ;
6739 short arg3 ;
6740 short arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006741 if (!getishortarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006742 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006743 if (!getishortarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006744 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006745 if (!getishortarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006746 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006747 if (!getishortarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006748 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006749 sboxs( arg1 , arg2 , arg3 , arg4 );
Roger E. Massefbd1d741996-12-24 19:39:23 +00006750 Py_INCREF(Py_None);
6751 return Py_None;
6752}
6753
6754/* void sboxf float s float s float s float s */
6755
6756static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006757gl_sboxf(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006758{
6759 float arg1 ;
6760 float arg2 ;
6761 float arg3 ;
6762 float arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006763 if (!getifloatarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006764 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006765 if (!getifloatarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006766 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006767 if (!getifloatarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006768 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006769 if (!getifloatarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006770 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006771 sboxf( arg1 , arg2 , arg3 , arg4 );
Roger E. Massefbd1d741996-12-24 19:39:23 +00006772 Py_INCREF(Py_None);
6773 return Py_None;
6774}
6775
6776/* void sboxfi long s long s long s long s */
6777
6778static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006779gl_sboxfi(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006780{
6781 long arg1 ;
6782 long arg2 ;
6783 long arg3 ;
6784 long arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006785 if (!getilongarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006786 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006787 if (!getilongarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006788 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006789 if (!getilongarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006790 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006791 if (!getilongarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006792 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006793 sboxfi( arg1 , arg2 , arg3 , arg4 );
Roger E. Massefbd1d741996-12-24 19:39:23 +00006794 Py_INCREF(Py_None);
6795 return Py_None;
6796}
6797
6798/* void sboxfs short s short s short s short s */
6799
6800static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006801gl_sboxfs(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006802{
6803 short arg1 ;
6804 short arg2 ;
6805 short arg3 ;
6806 short arg4 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006807 if (!getishortarg(args, 4, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006808 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006809 if (!getishortarg(args, 4, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006810 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006811 if (!getishortarg(args, 4, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006812 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006813 if (!getishortarg(args, 4, 3, &arg4))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006814 return NULL;
6815 sboxfs( arg1 , arg2 , arg3 , arg4 );
6816 Py_INCREF(Py_None);
6817 return Py_None;
6818}
6819
6820/* void setnurbsproperty long s float s */
6821
6822static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006823gl_setnurbsproperty(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006824{
6825 long arg1 ;
6826 float arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006827 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006828 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006829 if (!getifloatarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006830 return NULL;
6831 setnurbsproperty( arg1 , arg2 );
6832 Py_INCREF(Py_None);
6833 return Py_None;
6834}
6835
6836/* void setpup long s long s long s */
6837
6838static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006839gl_setpup(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006840{
6841 long arg1 ;
6842 long arg2 ;
6843 long arg3 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006844 if (!getilongarg(args, 3, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006845 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006846 if (!getilongarg(args, 3, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006847 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006848 if (!getilongarg(args, 3, 2, &arg3))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006849 return NULL;
6850 setpup( arg1 , arg2 , arg3 );
6851 Py_INCREF(Py_None);
6852 return Py_None;
6853}
6854
6855/* void smoothline long s */
6856
6857static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006858gl_smoothline(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006859{
6860 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006861 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006862 return NULL;
6863 smoothline( arg1 );
6864 Py_INCREF(Py_None);
6865 return Py_None;
6866}
6867
6868/* void subpixel long s */
6869
6870static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006871gl_subpixel(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006872{
6873 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006874 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006875 return NULL;
6876 subpixel( arg1 );
6877 Py_INCREF(Py_None);
6878 return Py_None;
6879}
6880
6881/* void swaptmesh */
6882
6883static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006884gl_swaptmesh(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006885{
6886 swaptmesh( );
6887 Py_INCREF(Py_None);
6888 return Py_None;
6889}
6890
6891/* long swinopen long s */
6892
6893static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006894gl_swinopen(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006895{
6896 long retval;
6897 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006898 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006899 return NULL;
6900 retval = swinopen( arg1 );
6901 return mknewlongobject(retval);
6902}
6903
6904/* void v2f float s[2] */
6905
6906static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006907gl_v2f(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006908{
6909 float arg1 [ 2 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006910 if (!getifloatarray(args, 1, 0, 2 , arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006911 return NULL;
6912 v2f( arg1 );
6913 Py_INCREF(Py_None);
6914 return Py_None;
6915}
6916
6917/* void v2i long s[2] */
6918
6919static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006920gl_v2i(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006921{
6922 long arg1 [ 2 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006923 if (!getilongarray(args, 1, 0, 2 , arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006924 return NULL;
6925 v2i( arg1 );
6926 Py_INCREF(Py_None);
6927 return Py_None;
6928}
6929
6930/* void v2s short s[2] */
6931
6932static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006933gl_v2s(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006934{
6935 short arg1 [ 2 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006936 if (!getishortarray(args, 1, 0, 2 , arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006937 return NULL;
6938 v2s( arg1 );
6939 Py_INCREF(Py_None);
6940 return Py_None;
6941}
6942
6943/* void v3f float s[3] */
6944
6945static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006946gl_v3f(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006947{
6948 float arg1 [ 3 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006949 if (!getifloatarray(args, 1, 0, 3 , arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006950 return NULL;
6951 v3f( arg1 );
6952 Py_INCREF(Py_None);
6953 return Py_None;
6954}
6955
6956/* void v3i long s[3] */
6957
6958static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006959gl_v3i(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006960{
6961 long arg1 [ 3 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006962 if (!getilongarray(args, 1, 0, 3 , arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006963 return NULL;
6964 v3i( arg1 );
6965 Py_INCREF(Py_None);
6966 return Py_None;
6967}
6968
6969/* void v3s short s[3] */
6970
6971static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006972gl_v3s(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006973{
6974 short arg1 [ 3 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006975 if (!getishortarray(args, 1, 0, 3 , arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006976 return NULL;
6977 v3s( arg1 );
6978 Py_INCREF(Py_None);
6979 return Py_None;
6980}
6981
6982/* void v4f float s[4] */
6983
6984static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006985gl_v4f(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006986{
6987 float arg1 [ 4 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00006988 if (!getifloatarray(args, 1, 0, 4 , arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00006989 return NULL;
6990 v4f( arg1 );
6991 Py_INCREF(Py_None);
6992 return Py_None;
6993}
6994
6995/* void v4i long s[4] */
6996
6997static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00006998gl_v4i(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00006999{
7000 long arg1 [ 4 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007001 if (!getilongarray(args, 1, 0, 4 , arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007002 return NULL;
7003 v4i( arg1 );
7004 Py_INCREF(Py_None);
7005 return Py_None;
7006}
7007
7008/* void v4s short s[4] */
7009
7010static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00007011gl_v4s(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00007012{
7013 short arg1 [ 4 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007014 if (!getishortarray(args, 1, 0, 4 , arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007015 return NULL;
7016 v4s( arg1 );
7017 Py_INCREF(Py_None);
7018 return Py_None;
7019}
7020
7021/* void videocmd long s */
7022
7023static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00007024gl_videocmd(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00007025{
7026 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007027 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007028 return NULL;
7029 videocmd( arg1 );
7030 Py_INCREF(Py_None);
7031 return Py_None;
7032}
7033
7034/* long windepth long s */
7035
7036static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00007037gl_windepth(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00007038{
7039 long retval;
7040 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007041 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007042 return NULL;
7043 retval = windepth( arg1 );
7044 return mknewlongobject(retval);
7045}
7046
7047/* void wmpack long s */
7048
7049static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00007050gl_wmpack(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00007051{
7052 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007053 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007054 return NULL;
7055 wmpack( arg1 );
7056 Py_INCREF(Py_None);
7057 return Py_None;
7058}
7059
7060/* void zdraw long s */
7061
7062static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00007063gl_zdraw(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00007064{
7065 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007066 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007067 return NULL;
7068 zdraw( arg1 );
7069 Py_INCREF(Py_None);
7070 return Py_None;
7071}
7072
7073/* void zfunction long s */
7074
7075static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00007076gl_zfunction(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00007077{
7078 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007079 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007080 return NULL;
7081 zfunction( arg1 );
7082 Py_INCREF(Py_None);
7083 return Py_None;
7084}
7085
7086/* void zsource long s */
7087
7088static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00007089gl_zsource(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00007090{
7091 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007092 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007093 return NULL;
7094 zsource( arg1 );
7095 Py_INCREF(Py_None);
7096 return Py_None;
7097}
7098
7099/* void zwritemask long s */
7100
7101static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00007102gl_zwritemask(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00007103{
7104 long arg1 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007105 if (!getilongarg(args, 1, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007106 return NULL;
7107 zwritemask( arg1 );
7108 Py_INCREF(Py_None);
7109 return Py_None;
7110}
7111
7112/* void v2d double s[2] */
7113
7114static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00007115gl_v2d(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00007116{
7117 double arg1 [ 2 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007118 if (!getidoublearray(args, 1, 0, 2 , arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007119 return NULL;
7120 v2d( arg1 );
7121 Py_INCREF(Py_None);
7122 return Py_None;
7123}
7124
7125/* void v3d double s[3] */
7126
7127static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00007128gl_v3d(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00007129{
7130 double arg1 [ 3 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007131 if (!getidoublearray(args, 1, 0, 3 , arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007132 return NULL;
7133 v3d( arg1 );
7134 Py_INCREF(Py_None);
7135 return Py_None;
7136}
7137
7138/* void v4d double s[4] */
7139
7140static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00007141gl_v4d(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00007142{
7143 double arg1 [ 4 ] ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007144 if (!getidoublearray(args, 1, 0, 4 , arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007145 return NULL;
7146 v4d( arg1 );
7147 Py_INCREF(Py_None);
7148 return Py_None;
7149}
7150
7151/* void pixmode long s long s */
7152
7153static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00007154gl_pixmode(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00007155{
7156 long arg1 ;
7157 long arg2 ;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007158 if (!getilongarg(args, 2, 0, &arg1))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007159 return NULL;
Guido van Rossumdfed9201997-04-29 15:46:43 +00007160 if (!getilongarg(args, 2, 1, &arg2))
Roger E. Massefbd1d741996-12-24 19:39:23 +00007161 return NULL;
7162 pixmode( arg1 , arg2 );
7163 Py_INCREF(Py_None);
7164 return Py_None;
7165}
7166
7167/* long qgetfd */
7168
7169static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00007170gl_qgetfd(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00007171{
7172 long retval;
7173 retval = qgetfd( );
7174 return mknewlongobject(retval);
7175}
7176
7177/* void dither long s */
7178
7179static PyObject *
Peter Schneider-Kamp6a850272000-07-10 17:04:33 +00007180gl_dither(PyObject *self, PyObject *args)
Roger E. Massefbd1d741996-12-24 19:39:23 +00007181{
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 dither( arg1 );
7186 Py_INCREF(Py_None);
7187 return Py_None;
7188}
7189
Guido van Rossumdfed9201997-04-29 15:46:43 +00007190static struct PyMethodDef gl_methods[] = {
Roger E. Massefbd1d741996-12-24 19:39:23 +00007191 {"qread", gl_qread},
7192 {"varray", gl_varray},
7193 {"nvarray", gl_nvarray},
7194 {"vnarray", gl_vnarray},
7195 {"nurbssurface", gl_nurbssurface},
7196 {"nurbscurve", gl_nurbscurve},
7197 {"pwlcurve", gl_pwlcurve},
7198 {"pick", gl_pick},
7199 {"endpick", gl_endpick},
7200 {"gselect", gl_gselect},
7201 {"endselect", gl_endselect},
7202 {"getmatrix", gl_getmatrix},
7203 {"altgetmatrix", gl_altgetmatrix},
7204 {"lrectwrite", gl_lrectwrite},
7205 {"lrectread", gl_lrectread},
7206 {"readdisplay", gl_readdisplay},
7207 {"packrect", gl_packrect},
7208 {"unpackrect", gl_unpackrect},
7209 {"gversion", gl_gversion},
Guido van Rossum89733a81998-10-21 16:10:40 +00007210 {"clear", gl_clear},
Roger E. Massefbd1d741996-12-24 19:39:23 +00007211 {"getshade", gl_getshade},
7212 {"devport", gl_devport},
7213 {"rdr2i", gl_rdr2i},
7214 {"rectfs", gl_rectfs},
7215 {"rects", gl_rects},
7216 {"rmv2i", gl_rmv2i},
7217 {"noport", gl_noport},
7218 {"popviewport", gl_popviewport},
Roger E. Massefbd1d741996-12-24 19:39:23 +00007219 {"clearhitcode", gl_clearhitcode},
7220 {"closeobj", gl_closeobj},
7221 {"cursoff", gl_cursoff},
7222 {"curson", gl_curson},
7223 {"doublebuffer", gl_doublebuffer},
7224 {"finish", gl_finish},
7225 {"gconfig", gl_gconfig},
7226 {"ginit", gl_ginit},
7227 {"greset", gl_greset},
7228 {"multimap", gl_multimap},
7229 {"onemap", gl_onemap},
7230 {"popattributes", gl_popattributes},
7231 {"popmatrix", gl_popmatrix},
7232 {"pushattributes", gl_pushattributes},
7233 {"pushmatrix", gl_pushmatrix},
7234 {"pushviewport", gl_pushviewport},
7235 {"qreset", gl_qreset},
7236 {"RGBmode", gl_RGBmode},
7237 {"singlebuffer", gl_singlebuffer},
7238 {"swapbuffers", gl_swapbuffers},
7239 {"gsync", gl_gsync},
7240 {"gflush", gl_gflush},
7241 {"tpon", gl_tpon},
7242 {"tpoff", gl_tpoff},
7243 {"clkon", gl_clkon},
7244 {"clkoff", gl_clkoff},
7245 {"ringbell", gl_ringbell},
7246 {"gbegin", gl_gbegin},
7247 {"textinit", gl_textinit},
7248 {"initnames", gl_initnames},
7249 {"pclos", gl_pclos},
7250 {"popname", gl_popname},
7251 {"spclos", gl_spclos},
7252 {"zclear", gl_zclear},
7253 {"screenspace", gl_screenspace},
7254 {"reshapeviewport", gl_reshapeviewport},
7255 {"winpush", gl_winpush},
7256 {"winpop", gl_winpop},
7257 {"foreground", gl_foreground},
7258 {"endfullscrn", gl_endfullscrn},
7259 {"endpupmode", gl_endpupmode},
7260 {"fullscrn", gl_fullscrn},
7261 {"pupmode", gl_pupmode},
7262 {"winconstraints", gl_winconstraints},
7263 {"pagecolor", gl_pagecolor},
7264 {"textcolor", gl_textcolor},
7265 {"color", gl_color},
7266 {"curveit", gl_curveit},
7267 {"font", gl_font},
7268 {"linewidth", gl_linewidth},
7269 {"setlinestyle", gl_setlinestyle},
7270 {"setmap", gl_setmap},
7271 {"swapinterval", gl_swapinterval},
7272 {"writemask", gl_writemask},
7273 {"textwritemask", gl_textwritemask},
7274 {"qdevice", gl_qdevice},
7275 {"unqdevice", gl_unqdevice},
7276 {"curvebasis", gl_curvebasis},
7277 {"curveprecision", gl_curveprecision},
7278 {"loadname", gl_loadname},
7279 {"passthrough", gl_passthrough},
7280 {"pushname", gl_pushname},
7281 {"setmonitor", gl_setmonitor},
7282 {"setshade", gl_setshade},
7283 {"setpattern", gl_setpattern},
7284 {"pagewritemask", gl_pagewritemask},
7285 {"callobj", gl_callobj},
7286 {"delobj", gl_delobj},
7287 {"editobj", gl_editobj},
7288 {"makeobj", gl_makeobj},
7289 {"maketag", gl_maketag},
7290 {"chunksize", gl_chunksize},
7291 {"compactify", gl_compactify},
7292 {"deltag", gl_deltag},
7293 {"lsrepeat", gl_lsrepeat},
7294 {"objinsert", gl_objinsert},
7295 {"objreplace", gl_objreplace},
7296 {"winclose", gl_winclose},
7297 {"blanktime", gl_blanktime},
7298 {"freepup", gl_freepup},
7299 {"backbuffer", gl_backbuffer},
7300 {"frontbuffer", gl_frontbuffer},
7301 {"lsbackup", gl_lsbackup},
7302 {"resetls", gl_resetls},
7303 {"lampon", gl_lampon},
7304 {"lampoff", gl_lampoff},
7305 {"setbell", gl_setbell},
7306 {"blankscreen", gl_blankscreen},
7307 {"depthcue", gl_depthcue},
7308 {"zbuffer", gl_zbuffer},
7309 {"backface", gl_backface},
7310 {"cmov2i", gl_cmov2i},
7311 {"draw2i", gl_draw2i},
7312 {"move2i", gl_move2i},
7313 {"pnt2i", gl_pnt2i},
7314 {"patchbasis", gl_patchbasis},
7315 {"patchprecision", gl_patchprecision},
7316 {"pdr2i", gl_pdr2i},
7317 {"pmv2i", gl_pmv2i},
7318 {"rpdr2i", gl_rpdr2i},
7319 {"rpmv2i", gl_rpmv2i},
7320 {"xfpt2i", gl_xfpt2i},
7321 {"objdelete", gl_objdelete},
7322 {"patchcurves", gl_patchcurves},
7323 {"minsize", gl_minsize},
7324 {"maxsize", gl_maxsize},
7325 {"keepaspect", gl_keepaspect},
7326 {"prefsize", gl_prefsize},
7327 {"stepunit", gl_stepunit},
7328 {"fudge", gl_fudge},
7329 {"winmove", gl_winmove},
7330 {"attachcursor", gl_attachcursor},
7331 {"deflinestyle", gl_deflinestyle},
7332 {"noise", gl_noise},
7333 {"picksize", gl_picksize},
7334 {"qenter", gl_qenter},
7335 {"setdepth", gl_setdepth},
7336 {"cmov2s", gl_cmov2s},
7337 {"draw2s", gl_draw2s},
7338 {"move2s", gl_move2s},
7339 {"pdr2s", gl_pdr2s},
7340 {"pmv2s", gl_pmv2s},
7341 {"pnt2s", gl_pnt2s},
7342 {"rdr2s", gl_rdr2s},
7343 {"rmv2s", gl_rmv2s},
7344 {"rpdr2s", gl_rpdr2s},
7345 {"rpmv2s", gl_rpmv2s},
7346 {"xfpt2s", gl_xfpt2s},
7347 {"cmov2", gl_cmov2},
7348 {"draw2", gl_draw2},
7349 {"move2", gl_move2},
7350 {"pnt2", gl_pnt2},
7351 {"pdr2", gl_pdr2},
7352 {"pmv2", gl_pmv2},
7353 {"rdr2", gl_rdr2},
7354 {"rmv2", gl_rmv2},
7355 {"rpdr2", gl_rpdr2},
7356 {"rpmv2", gl_rpmv2},
7357 {"xfpt2", gl_xfpt2},
7358 {"loadmatrix", gl_loadmatrix},
7359 {"multmatrix", gl_multmatrix},
7360 {"crv", gl_crv},
7361 {"rcrv", gl_rcrv},
7362 {"addtopup", gl_addtopup},
7363 {"charstr", gl_charstr},
7364 {"getport", gl_getport},
7365 {"strwidth", gl_strwidth},
7366 {"winopen", gl_winopen},
7367 {"wintitle", gl_wintitle},
7368 {"polf", gl_polf},
7369 {"polf2", gl_polf2},
7370 {"poly", gl_poly},
7371 {"poly2", gl_poly2},
7372 {"crvn", gl_crvn},
7373 {"rcrvn", gl_rcrvn},
7374 {"polf2i", gl_polf2i},
7375 {"polfi", gl_polfi},
7376 {"poly2i", gl_poly2i},
7377 {"polyi", gl_polyi},
7378 {"polf2s", gl_polf2s},
7379 {"polfs", gl_polfs},
7380 {"polys", gl_polys},
7381 {"poly2s", gl_poly2s},
7382 {"defcursor", gl_defcursor},
7383 {"writepixels", gl_writepixels},
7384 {"defbasis", gl_defbasis},
7385 {"gewrite", gl_gewrite},
7386 {"rotate", gl_rotate},
7387 {"rot", gl_rot},
7388 {"circfi", gl_circfi},
7389 {"circi", gl_circi},
7390 {"cmovi", gl_cmovi},
7391 {"drawi", gl_drawi},
7392 {"movei", gl_movei},
7393 {"pnti", gl_pnti},
7394 {"newtag", gl_newtag},
7395 {"pdri", gl_pdri},
7396 {"pmvi", gl_pmvi},
7397 {"rdri", gl_rdri},
7398 {"rmvi", gl_rmvi},
7399 {"rpdri", gl_rpdri},
7400 {"rpmvi", gl_rpmvi},
7401 {"xfpti", gl_xfpti},
7402 {"circ", gl_circ},
7403 {"circf", gl_circf},
7404 {"cmov", gl_cmov},
7405 {"draw", gl_draw},
7406 {"move", gl_move},
7407 {"pnt", gl_pnt},
7408 {"scale", gl_scale},
7409 {"translate", gl_translate},
7410 {"pdr", gl_pdr},
7411 {"pmv", gl_pmv},
7412 {"rdr", gl_rdr},
7413 {"rmv", gl_rmv},
7414 {"rpdr", gl_rpdr},
7415 {"rpmv", gl_rpmv},
7416 {"xfpt", gl_xfpt},
7417 {"RGBcolor", gl_RGBcolor},
7418 {"RGBwritemask", gl_RGBwritemask},
7419 {"setcursor", gl_setcursor},
7420 {"tie", gl_tie},
7421 {"circfs", gl_circfs},
7422 {"circs", gl_circs},
7423 {"cmovs", gl_cmovs},
7424 {"draws", gl_draws},
7425 {"moves", gl_moves},
7426 {"pdrs", gl_pdrs},
7427 {"pmvs", gl_pmvs},
7428 {"pnts", gl_pnts},
7429 {"rdrs", gl_rdrs},
7430 {"rmvs", gl_rmvs},
7431 {"rpdrs", gl_rpdrs},
7432 {"rpmvs", gl_rpmvs},
7433 {"xfpts", gl_xfpts},
7434 {"curorigin", gl_curorigin},
7435 {"cyclemap", gl_cyclemap},
7436 {"patch", gl_patch},
7437 {"splf", gl_splf},
7438 {"splf2", gl_splf2},
7439 {"splfi", gl_splfi},
7440 {"splf2i", gl_splf2i},
7441 {"splfs", gl_splfs},
7442 {"splf2s", gl_splf2s},
7443 {"rpatch", gl_rpatch},
7444 {"ortho2", gl_ortho2},
7445 {"rect", gl_rect},
7446 {"rectf", gl_rectf},
7447 {"xfpt4", gl_xfpt4},
7448 {"textport", gl_textport},
7449 {"mapcolor", gl_mapcolor},
7450 {"scrmask", gl_scrmask},
7451 {"setvaluator", gl_setvaluator},
7452 {"viewport", gl_viewport},
7453 {"shaderange", gl_shaderange},
7454 {"xfpt4s", gl_xfpt4s},
7455 {"rectfi", gl_rectfi},
7456 {"recti", gl_recti},
7457 {"xfpt4i", gl_xfpt4i},
7458 {"prefposition", gl_prefposition},
7459 {"arc", gl_arc},
7460 {"arcf", gl_arcf},
7461 {"arcfi", gl_arcfi},
7462 {"arci", gl_arci},
7463 {"bbox2", gl_bbox2},
7464 {"bbox2i", gl_bbox2i},
7465 {"bbox2s", gl_bbox2s},
7466 {"blink", gl_blink},
7467 {"ortho", gl_ortho},
7468 {"window", gl_window},
7469 {"lookat", gl_lookat},
7470 {"perspective", gl_perspective},
7471 {"polarview", gl_polarview},
7472 {"arcfs", gl_arcfs},
7473 {"arcs", gl_arcs},
7474 {"rectcopy", gl_rectcopy},
7475 {"RGBcursor", gl_RGBcursor},
7476 {"getbutton", gl_getbutton},
7477 {"getcmmode", gl_getcmmode},
7478 {"getlsbackup", gl_getlsbackup},
7479 {"getresetls", gl_getresetls},
7480 {"getdcm", gl_getdcm},
7481 {"getzbuffer", gl_getzbuffer},
7482 {"ismex", gl_ismex},
7483 {"isobj", gl_isobj},
7484 {"isqueued", gl_isqueued},
7485 {"istag", gl_istag},
7486 {"genobj", gl_genobj},
7487 {"gentag", gl_gentag},
7488 {"getbuffer", gl_getbuffer},
7489 {"getcolor", gl_getcolor},
7490 {"getdisplaymode", gl_getdisplaymode},
7491 {"getfont", gl_getfont},
7492 {"getheight", gl_getheight},
7493 {"gethitcode", gl_gethitcode},
7494 {"getlstyle", gl_getlstyle},
7495 {"getlwidth", gl_getlwidth},
7496 {"getmap", gl_getmap},
7497 {"getplanes", gl_getplanes},
7498 {"getwritemask", gl_getwritemask},
7499 {"qtest", gl_qtest},
7500 {"getlsrepeat", gl_getlsrepeat},
7501 {"getmonitor", gl_getmonitor},
7502 {"getopenobj", gl_getopenobj},
7503 {"getpattern", gl_getpattern},
7504 {"winget", gl_winget},
7505 {"winattach", gl_winattach},
7506 {"getothermonitor", gl_getothermonitor},
7507 {"newpup", gl_newpup},
7508 {"getvaluator", gl_getvaluator},
7509 {"winset", gl_winset},
7510 {"dopup", gl_dopup},
7511 {"getdepth", gl_getdepth},
7512 {"getcpos", gl_getcpos},
7513 {"getsize", gl_getsize},
7514 {"getorigin", gl_getorigin},
7515 {"getviewport", gl_getviewport},
7516 {"gettp", gl_gettp},
7517 {"getgpos", gl_getgpos},
7518 {"winposition", gl_winposition},
7519 {"gRGBcolor", gl_gRGBcolor},
7520 {"gRGBmask", gl_gRGBmask},
7521 {"getscrmask", gl_getscrmask},
7522 {"getmcolor", gl_getmcolor},
7523 {"mapw", gl_mapw},
7524 {"mapw2", gl_mapw2},
7525 {"getcursor", gl_getcursor},
7526 {"cmode", gl_cmode},
7527 {"concave", gl_concave},
7528 {"curstype", gl_curstype},
7529 {"drawmode", gl_drawmode},
7530 {"gammaramp", gl_gammaramp},
7531 {"getbackface", gl_getbackface},
7532 {"getdescender", gl_getdescender},
7533 {"getdrawmode", gl_getdrawmode},
7534 {"getmmode", gl_getmmode},
7535 {"getsm", gl_getsm},
7536 {"getvideo", gl_getvideo},
7537 {"imakebackground", gl_imakebackground},
7538 {"lmbind", gl_lmbind},
7539 {"lmdef", gl_lmdef},
7540 {"mmode", gl_mmode},
7541 {"normal", gl_normal},
7542 {"overlay", gl_overlay},
7543 {"RGBrange", gl_RGBrange},
7544 {"setvideo", gl_setvideo},
7545 {"shademodel", gl_shademodel},
7546 {"underlay", gl_underlay},
7547 {"bgnclosedline", gl_bgnclosedline},
7548 {"bgnline", gl_bgnline},
7549 {"bgnpoint", gl_bgnpoint},
7550 {"bgnpolygon", gl_bgnpolygon},
7551 {"bgnsurface", gl_bgnsurface},
7552 {"bgntmesh", gl_bgntmesh},
7553 {"bgntrim", gl_bgntrim},
7554 {"endclosedline", gl_endclosedline},
7555 {"endline", gl_endline},
7556 {"endpoint", gl_endpoint},
7557 {"endpolygon", gl_endpolygon},
7558 {"endsurface", gl_endsurface},
7559 {"endtmesh", gl_endtmesh},
7560 {"endtrim", gl_endtrim},
7561 {"blendfunction", gl_blendfunction},
7562 {"c3f", gl_c3f},
7563 {"c3i", gl_c3i},
7564 {"c3s", gl_c3s},
7565 {"c4f", gl_c4f},
7566 {"c4i", gl_c4i},
7567 {"c4s", gl_c4s},
7568 {"colorf", gl_colorf},
7569 {"cpack", gl_cpack},
7570 {"czclear", gl_czclear},
7571 {"dglclose", gl_dglclose},
7572 {"dglopen", gl_dglopen},
7573 {"getgdesc", gl_getgdesc},
7574 {"getnurbsproperty", gl_getnurbsproperty},
7575 {"glcompat", gl_glcompat},
7576 {"iconsize", gl_iconsize},
7577 {"icontitle", gl_icontitle},
7578 {"lRGBrange", gl_lRGBrange},
7579 {"linesmooth", gl_linesmooth},
7580 {"lmcolor", gl_lmcolor},
7581 {"logicop", gl_logicop},
7582 {"lsetdepth", gl_lsetdepth},
7583 {"lshaderange", gl_lshaderange},
7584 {"n3f", gl_n3f},
7585 {"noborder", gl_noborder},
7586 {"pntsmooth", gl_pntsmooth},
7587 {"readsource", gl_readsource},
7588 {"rectzoom", gl_rectzoom},
7589 {"sbox", gl_sbox},
7590 {"sboxi", gl_sboxi},
7591 {"sboxs", gl_sboxs},
7592 {"sboxf", gl_sboxf},
7593 {"sboxfi", gl_sboxfi},
7594 {"sboxfs", gl_sboxfs},
7595 {"setnurbsproperty", gl_setnurbsproperty},
7596 {"setpup", gl_setpup},
7597 {"smoothline", gl_smoothline},
7598 {"subpixel", gl_subpixel},
7599 {"swaptmesh", gl_swaptmesh},
7600 {"swinopen", gl_swinopen},
7601 {"v2f", gl_v2f},
7602 {"v2i", gl_v2i},
7603 {"v2s", gl_v2s},
7604 {"v3f", gl_v3f},
7605 {"v3i", gl_v3i},
7606 {"v3s", gl_v3s},
7607 {"v4f", gl_v4f},
7608 {"v4i", gl_v4i},
7609 {"v4s", gl_v4s},
7610 {"videocmd", gl_videocmd},
7611 {"windepth", gl_windepth},
7612 {"wmpack", gl_wmpack},
7613 {"zdraw", gl_zdraw},
7614 {"zfunction", gl_zfunction},
7615 {"zsource", gl_zsource},
7616 {"zwritemask", gl_zwritemask},
7617 {"v2d", gl_v2d},
7618 {"v3d", gl_v3d},
7619 {"v4d", gl_v4d},
7620 {"pixmode", gl_pixmode},
7621 {"qgetfd", gl_qgetfd},
7622 {"dither", gl_dither},
7623 {NULL, NULL} /* Sentinel */
7624};
7625
7626void
Thomas Woutersf3f33dc2000-07-21 06:00:07 +00007627initgl(void)
Roger E. Massefbd1d741996-12-24 19:39:23 +00007628{
Guido van Rossumdfed9201997-04-29 15:46:43 +00007629 (void) Py_InitModule("gl", gl_methods);
Roger E. Massefbd1d741996-12-24 19:39:23 +00007630}