3 Input used to generate the Python module "glmodule.c".
4 The stub generator is a Python script called "cgen.py".
6 Each definition must be contained on one line:
8 <returntype> <name> <type> <arg> <type> <arg>
10 <returntype> can be: void, short, long (XXX maybe others?)
12 <type> can be: char, string, short, float, long, or double
13 string indicates a null terminated string;
14 if <type> is char and <arg> begins with a *, the * is stripped
15 and <type> is changed into string
17 <arg> has the form <mode> or <mode>[<subscript>]
20 r: arg is received (arg is a pointer)
21 and <subscript> can be (N and I are numbers):
28 In the case where the subscript consists of two parts
29 separated by *, the first part is the width of the matrix, and
30 the second part is the length of the matrix. This order is
31 opposite from the order used in C to declare a two-dimensional
36 * An attempt has been made to make this module switch threads on qread
37 * calls. It is far from safe, though.
45 extern int textwritemask();
46 extern int pagewritemask();
52 #include "cgensupport.h"
55 Some stubs are too complicated for the stub generator.
56 We can include manually written versions of them here.
57 A line starting with '%' gives the name of the function so the stub
58 generator can include it in the table of functions.
63 gl_qread(PyObject
*self
, PyObject
*args
)
67 Py_BEGIN_ALLOW_THREADS
68 retval
= qread( & arg1
);
70 { PyObject
*v
= PyTuple_New( 2 );
71 if (v
== NULL
) return NULL
;
72 PyTuple_SetItem(v
, 0, mknewlongobject(retval
));
73 PyTuple_SetItem(v
, 1, mknewshortobject(arg1
));
80 varray -- an array of v.. calls.
81 The argument is an array (maybe list or tuple) of points.
82 Each point must be a tuple or list of coordinates (x, y, z).
83 The points may be 2- or 3-dimensional but must all have the
84 same dimension. Float and int values may be mixed however.
85 The points are always converted to 3D double precision points
86 by assuming z=0.0 if necessary (as indicated in the man page),
87 and for each point v3d() is called.
92 gl_varray(PyObject
*self
, PyObject
*args
)
97 PyObject
* (*getitem
)(PyObject
*, int);
99 if (!PyArg_GetObject(args
, 1, 0, &v
))
102 if (PyList_Check(v
)) {
104 getitem
= PyList_GetItem
;
106 else if (PyTuple_Check(v
)) {
108 getitem
= PyTuple_GetItem
;
120 w
= (*getitem
)(v
, 0);
125 else if (PyList_Check(w
)) {
126 width
= PyList_Size(w
);
128 else if (PyTuple_Check(w
)) {
129 width
= PyTuple_Size(w
);
143 for (i
= 0; i
< n
; i
++) {
144 w
= (*getitem
)(v
, i
);
145 if (!PyArg_GetDoubleArray(w
, 1, 0, width
, vec
))
155 vnarray, nvarray -- an array of n3f and v3f calls.
156 The argument is an array (list or tuple) of pairs of points and normals.
157 Each pair is a tuple (NOT a list) of a point and a normal for that point.
158 Each point or normal must be a tuple (NOT a list) of coordinates (x, y, z).
159 Three coordinates must be given. Float and int values may be mixed.
160 For each pair, n3f() is called for the normal, and then v3f() is called
163 vnarray and nvarray differ only in the order of the vector and normal in
164 the pair: vnarray expects (v, n) while nvarray expects (n, v).
167 static PyObject
*gen_nvarray(); /* Forward */
171 gl_nvarray(PyObject
*self
, PyObject
*args
)
173 return gen_nvarray(args
, 0);
178 gl_vnarray(PyObject
*self
, PyObject
*args
)
180 return gen_nvarray(args
, 1);
183 /* Generic, internal version of {nv,nv}array: inorm indicates the
184 argument order, 0: normal first, 1: vector first. */
187 gen_nvarray(PyObject
*args
, int inorm
)
189 PyObject
*v
, *w
, *wnorm
, *wvec
;
191 float norm
[3], vec
[3];
192 PyObject
* (*getitem
)(PyObject
*, int);
194 if (!PyArg_GetObject(args
, 1, 0, &v
))
197 if (PyList_Check(v
)) {
199 getitem
= PyList_GetItem
;
201 else if (PyTuple_Check(v
)) {
203 getitem
= PyTuple_GetItem
;
210 for (i
= 0; i
< n
; i
++) {
211 w
= (*getitem
)(v
, i
);
212 if (!PyTuple_Check(w
) || PyTuple_Size(w
) != 2) {
216 wnorm
= PyTuple_GetItem(w
, inorm
);
217 wvec
= PyTuple_GetItem(w
, 1 - inorm
);
218 if (!PyArg_GetFloatArray(wnorm
, 1, 0, 3, norm
) ||
219 !PyArg_GetFloatArray(wvec
, 1, 0, 3, vec
))
229 /* nurbssurface(s_knots[], t_knots[], ctl[][], s_order, t_order, type).
230 The dimensions of ctl[] are computed as follows:
231 [len(s_knots) - s_order], [len(t_knots) - t_order]
236 gl_nurbssurface(PyObject
*self
, PyObject
*args
)
247 long s_byte_stride
, t_byte_stride
;
250 PyObject
*v
, *w
, *pt
;
252 if (!PyArg_GetLongArraySize(args
, 6, 0, &arg1
))
254 if ((arg2
= PyMem_NEW(double, arg1
)) == NULL
) {
255 return PyErr_NoMemory();
257 if (!PyArg_GetDoubleArray(args
, 6, 0, arg1
, arg2
))
259 if (!PyArg_GetLongArraySize(args
, 6, 1, &arg3
))
261 if ((arg4
= PyMem_NEW(double, arg3
)) == NULL
) {
262 return PyErr_NoMemory();
264 if (!PyArg_GetDoubleArray(args
, 6, 1, arg3
, arg4
))
266 if (!PyArg_GetLong(args
, 6, 3, &arg6
))
268 if (!PyArg_GetLong(args
, 6, 4, &arg7
))
270 if (!PyArg_GetLong(args
, 6, 5, &arg8
))
274 else if (arg8
== N_XYZW
)
280 s_nctl
= arg1
- arg6
;
281 t_nctl
= arg3
- arg7
;
282 if (!PyArg_GetObject(args
, 6, 2, &v
))
284 if (!PyList_Check(v
) || PyList_Size(v
) != s_nctl
) {
288 if ((arg5
= PyMem_NEW(double, s_nctl
*t_nctl
*ncoords
)) == NULL
) {
289 return PyErr_NoMemory();
292 for (s
= 0; s
< s_nctl
; s
++) {
293 w
= PyList_GetItem(v
, s
);
294 if (w
== NULL
|| !PyList_Check(w
) ||
295 PyList_Size(w
) != t_nctl
) {
299 for (t
= 0; t
< t_nctl
; t
++) {
300 pt
= PyList_GetItem(w
, t
);
301 if (!PyArg_GetDoubleArray(pt
, 1, 0, ncoords
, pnext
))
306 s_byte_stride
= sizeof(double) * ncoords
;
307 t_byte_stride
= s_byte_stride
* s_nctl
;
308 nurbssurface( arg1
, arg2
, arg3
, arg4
,
309 s_byte_stride
, t_byte_stride
, arg5
, arg6
, arg7
, arg8
);
317 /* nurbscurve(knots, ctlpoints, order, type).
318 The length of ctlpoints is len(knots)-order. */
322 gl_nurbscurve(PyObject
*self
, PyObject
*args
)
330 int ncoords
, npoints
;
334 if (!PyArg_GetLongArraySize(args
, 4, 0, &arg1
))
336 if ((arg2
= PyMem_NEW(double, arg1
)) == NULL
) {
337 return PyErr_NoMemory();
339 if (!PyArg_GetDoubleArray(args
, 4, 0, arg1
, arg2
))
341 if (!PyArg_GetLong(args
, 4, 2, &arg5
))
343 if (!PyArg_GetLong(args
, 4, 3, &arg6
))
347 else if (arg6
== N_STW
)
353 npoints
= arg1
- arg5
;
354 if (!PyArg_GetObject(args
, 4, 1, &v
))
356 if (!PyList_Check(v
) || PyList_Size(v
) != npoints
) {
360 if ((arg4
= PyMem_NEW(double, npoints
*ncoords
)) == NULL
) {
361 return PyErr_NoMemory();
364 for (i
= 0; i
< npoints
; i
++) {
365 if (!PyArg_GetDoubleArray(PyList_GetItem(v
, i
), 1, 0, ncoords
, pnext
))
369 arg3
= (sizeof(double)) * ncoords
;
370 nurbscurve( arg1
, arg2
, arg3
, arg4
, arg5
, arg6
);
377 /* pwlcurve(points, type).
378 Points is a list of points. Type must be N_ST. */
382 gl_pwlcurve(PyObject
*self
, PyObject
*args
)
386 double *data
, *pnext
;
387 long npoints
, ncoords
;
389 if (!PyArg_GetObject(args
, 2, 0, &v
))
391 if (!PyArg_GetLong(args
, 2, 1, &type
))
393 if (!PyList_Check(v
)) {
397 npoints
= PyList_Size(v
);
404 if ((data
= PyMem_NEW(double, npoints
*ncoords
)) == NULL
) {
405 return PyErr_NoMemory();
408 for (i
= 0; i
< npoints
; i
++) {
409 if (!PyArg_GetDoubleArray(PyList_GetItem(v
, i
), 1, 0, ncoords
, pnext
))
413 pwlcurve(npoints
, data
, sizeof(double)*ncoords
, type
);
420 /* Picking and Selecting */
422 static short *pickbuffer
= NULL
;
423 static long pickbuffersize
;
426 pick_select(PyObject
*args
, void (*func
)())
428 if (!PyArg_GetLong(args
, 1, 0, &pickbuffersize
))
430 if (pickbuffer
!= NULL
) {
431 PyErr_SetString(PyExc_RuntimeError
,
432 "pick/gselect: already picking/selecting");
435 if ((pickbuffer
= PyMem_NEW(short, pickbuffersize
)) == NULL
) {
436 return PyErr_NoMemory();
438 (*func
)(pickbuffer
, pickbuffersize
);
444 endpick_select(PyObject
*args
, long (*func
)())
448 if (!PyArg_NoArgs(args
))
450 if (pickbuffer
== NULL
) {
451 PyErr_SetString(PyExc_RuntimeError
,
452 "endpick/endselect: not in pick/select mode");
455 nhits
= (*func
)(pickbuffer
);
457 nhits
= -nhits
; /* How to report buffer overflow otherwise? */
459 /* Scan the buffer to see how many integers */
461 for (; nhits
> 0; nhits
--) {
462 n
+= 1 + pickbuffer
[n
];
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
]);
475 PyList_SetItem(v
, i
, w
);
477 PyMem_DEL(pickbuffer
);
482 extern void pick(), gselect();
483 extern long endpick(), endselect();
485 static PyObject
*gl_pick(PyObject
*self
, PyObject
*args
)
487 return pick_select(args
, pick
);
490 static PyObject
*gl_endpick(PyObject
*self
, PyObject
*args
)
492 return endpick_select(args
, endpick
);
495 static PyObject
*gl_gselect(PyObject
*self
, PyObject
*args
)
497 return pick_select(args
, gselect
);
500 static PyObject
*gl_endselect(PyObject
*self
, PyObject
*args
)
502 return endpick_select(args
, endselect
);
506 /* XXX The generator botches this one. Here's a quick hack to fix it. */
508 /* XXX The generator botches this one. Here's a quick hack to fix it. */
512 gl_getmatrix(PyObject
*self
, PyObject
*args
)
520 return PyErr_NoMemory();
522 for (i
= 0; i
< 4; i
++) for (j
= 0; j
< 4; j
++) {
523 w
= mknewfloatobject(arg1
[i
][j
]);
528 PyList_SetItem(v
, i
*4+j
, w
);
533 /* Here's an alternate version that returns a 4x4 matrix instead of
534 a vector. Unfortunately it is incompatible with loadmatrix and
539 gl_altgetmatrix(PyObject
*self
, PyObject
*args
)
549 for (i
= 0; i
< 4; i
++) {
555 PyList_SetItem(v
, i
, w
);
557 for (i
= 0; i
< 4; i
++) {
558 for (j
= 0; j
< 4; j
++) {
559 w
= mknewfloatobject(arg1
[i
][j
]);
564 PyList_SetItem(PyList_GetItem(v
, i
), j
, w
);
572 gl_lrectwrite(PyObject
*self
, PyObject
*args
)
583 if (!PyArg_GetShort(args
, 5, 0, &x1
))
585 if (!PyArg_GetShort(args
, 5, 1, &y1
))
587 if (!PyArg_GetShort(args
, 5, 2, &x2
))
589 if (!PyArg_GetShort(args
, 5, 3, &y2
))
591 if (!PyArg_GetString(args
, 5, 4, &parray
))
593 if (!PyArg_GetObject(args
, 5, 4, &s
))
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");
604 lrectwrite( x1
, y1
, x2
, y2
, (unsigned long *) parray
);
611 gl_lrectread(PyObject
*self
, PyObject
*args
)
619 if (!PyArg_GetShort(args
, 4, 0, &x1
))
621 if (!PyArg_GetShort(args
, 4, 1, &y1
))
623 if (!PyArg_GetShort(args
, 4, 2, &x2
))
625 if (!PyArg_GetShort(args
, 4, 3, &y2
))
627 pixcount
= (long)(x2
+1-x1
) * (long)(y2
+1-y1
);
628 parray
= PyString_FromStringAndSize((char *)NULL
, pixcount
*sizeof(long));
630 return NULL
; /* No memory */
631 lrectread(x1
, y1
, x2
, y2
, (unsigned long *) PyString_AsString(parray
));
637 gl_readdisplay(PyObject
*self
, PyObject
*args
)
639 short x1
, y1
, x2
, y2
;
640 unsigned long *parray
, hints
;
644 if ( !PyArg_Parse(args
, "hhhhl", &x1
, &y1
, &x2
, &y2
, &hints
) )
646 size
= (long)(x2
+1-x1
) * (long)(y2
+1-y1
);
647 rv
= PyString_FromStringAndSize((char *)NULL
, size
*sizeof(long));
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",
655 PyErr_SetString(PyExc_RuntimeError
, "readdisplay returned unexpected length");
661 /* Desperately needed, here are tools to compress and decompress
662 the data manipulated by lrectread/lrectwrite.
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
670 gl.unpackrect(width, height, packfactor, smalldata) --> bigdata
671 is the inverse; the numeric arguments must be *the same*.
673 Both work best if width and height are multiples of packfactor
674 (in fact unpackrect will leave garbage bytes).
679 gl_packrect(PyObject
*self
, PyObject
*args
)
681 long width
, height
, packfactor
;
683 PyObject
*unpacked
, *packed
;
684 int pixcount
, packedcount
, x
, y
, r
, g
, b
;
687 unsigned long *parray
;
688 if (!PyArg_GetLong(args
, 4, 0, &width
))
690 if (!PyArg_GetLong(args
, 4, 1, &height
))
692 if (!PyArg_GetLong(args
, 4, 2, &packfactor
))
694 if (!PyArg_GetString(args
, 4, 3, &s
)) /* For type checking only */
696 if (!PyArg_GetObject(args
, 4, 3, &unpacked
))
698 if (width
<= 0 || height
<= 0 || packfactor
<= 0) {
699 PyErr_SetString(PyExc_RuntimeError
, "packrect args must be > 0");
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");
710 packed
= PyString_FromStringAndSize((char *)NULL
, packedcount
);
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
) {
719 g
= (pixel
>> 8) & 0xff;
720 b
= (pixel
>> 16) & 0xff;
721 *p
++ = (30*r
+59*g
+11*b
) / 100;
728 static unsigned long unpacktab
[256];
729 static int unpacktab_inited
= 0;
732 gl_unpackrect(PyObject
*self
, PyObject
*args
)
734 long width
, height
, packfactor
;
736 PyObject
*unpacked
, *packed
;
737 int pixcount
, packedcount
;
738 register unsigned char *p
;
739 register unsigned long *parray
;
740 if (!unpacktab_inited
) {
742 for (white
= 256; --white
>= 0; )
743 unpacktab
[white
] = white
* 0x010101L
;
746 if (!PyArg_GetLong(args
, 4, 0, &width
))
748 if (!PyArg_GetLong(args
, 4, 1, &height
))
750 if (!PyArg_GetLong(args
, 4, 2, &packfactor
))
752 if (!PyArg_GetString(args
, 4, 3, &s
)) /* For type checking only */
754 if (!PyArg_GetObject(args
, 4, 3, &packed
))
756 if (width
<= 0 || height
<= 0 || packfactor
<= 0) {
757 PyErr_SetString(PyExc_RuntimeError
, "packrect args must be > 0");
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");
768 unpacked
= PyString_FromStringAndSize((char *)NULL
, pixcount
*sizeof(long));
769 if (unpacked
== 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
;
777 *parray
++ = unpacktab
[*p
++];
782 for (y
= 0; y
< height
-packfactor
+1;
783 y
+= packfactor
, parray
+= packfactor
*width
) {
785 for (x
= 0; x
< width
-packfactor
+1; x
+= packfactor
) {
786 register unsigned long pixel
= unpacktab
[*p
++];
788 for (i
= packfactor
*width
; (i
-=width
) >= 0;) {
790 for (j
= packfactor
; --j
>= 0; )
791 parray
[i
+x
+j
] = pixel
;
800 gl_gversion(PyObject
*self
, PyObject
*args
)
804 return PyString_FromString(buf
);
808 /* void clear - Manual because of clash with termcap */
810 gl_clear(PyObject
*self
, PyObject
*args
)
817 /* End of manually written stubs */
823 gl_getshade(PyObject
*self
, PyObject
*args
)
826 retval
= getshade( );
827 return mknewlongobject(retval
);
830 /* void devport short s long s */
833 gl_devport(PyObject
*self
, PyObject
*args
)
837 if (!getishortarg(args
, 2, 0, &arg1
))
839 if (!getilongarg(args
, 2, 1, &arg2
))
841 devport( arg1
, arg2
);
846 /* void rdr2i long s long s */
849 gl_rdr2i(PyObject
*self
, PyObject
*args
)
853 if (!getilongarg(args
, 2, 0, &arg1
))
855 if (!getilongarg(args
, 2, 1, &arg2
))
857 rdr2i( arg1
, arg2
);
862 /* void rectfs short s short s short s short s */
865 gl_rectfs(PyObject
*self
, PyObject
*args
)
871 if (!getishortarg(args
, 4, 0, &arg1
))
873 if (!getishortarg(args
, 4, 1, &arg2
))
875 if (!getishortarg(args
, 4, 2, &arg3
))
877 if (!getishortarg(args
, 4, 3, &arg4
))
879 rectfs( arg1
, arg2
, arg3
, arg4
);
884 /* void rects short s short s short s short s */
887 gl_rects(PyObject
*self
, PyObject
*args
)
893 if (!getishortarg(args
, 4, 0, &arg1
))
895 if (!getishortarg(args
, 4, 1, &arg2
))
897 if (!getishortarg(args
, 4, 2, &arg3
))
899 if (!getishortarg(args
, 4, 3, &arg4
))
901 rects( arg1
, arg2
, arg3
, arg4
);
906 /* void rmv2i long s long s */
909 gl_rmv2i(PyObject
*self
, PyObject
*args
)
913 if (!getilongarg(args
, 2, 0, &arg1
))
915 if (!getilongarg(args
, 2, 1, &arg2
))
917 rmv2i( arg1
, arg2
);
925 gl_noport(PyObject
*self
, PyObject
*args
)
932 /* void popviewport */
935 gl_popviewport(PyObject
*self
, PyObject
*args
)
942 /* void clearhitcode */
945 gl_clearhitcode(PyObject
*self
, PyObject
*args
)
955 gl_closeobj(PyObject
*self
, PyObject
*args
)
965 gl_cursoff(PyObject
*self
, PyObject
*args
)
975 gl_curson(PyObject
*self
, PyObject
*args
)
982 /* void doublebuffer */
985 gl_doublebuffer(PyObject
*self
, PyObject
*args
)
995 gl_finish(PyObject
*self
, PyObject
*args
)
1005 gl_gconfig(PyObject
*self
, PyObject
*args
)
1015 gl_ginit(PyObject
*self
, PyObject
*args
)
1025 gl_greset(PyObject
*self
, PyObject
*args
)
1035 gl_multimap(PyObject
*self
, PyObject
*args
)
1045 gl_onemap(PyObject
*self
, PyObject
*args
)
1052 /* void popattributes */
1055 gl_popattributes(PyObject
*self
, PyObject
*args
)
1062 /* void popmatrix */
1065 gl_popmatrix(PyObject
*self
, PyObject
*args
)
1072 /* void pushattributes */
1075 gl_pushattributes(PyObject
*self
, PyObject
*args
)
1082 /* void pushmatrix */
1085 gl_pushmatrix(PyObject
*self
, PyObject
*args
)
1092 /* void pushviewport */
1095 gl_pushviewport(PyObject
*self
, PyObject
*args
)
1105 gl_qreset(PyObject
*self
, PyObject
*args
)
1115 gl_RGBmode(PyObject
*self
, PyObject
*args
)
1122 /* void singlebuffer */
1125 gl_singlebuffer(PyObject
*self
, PyObject
*args
)
1132 /* void swapbuffers */
1135 gl_swapbuffers(PyObject
*self
, PyObject
*args
)
1145 gl_gsync(PyObject
*self
, PyObject
*args
)
1155 gl_gflush(PyObject
*self
, PyObject
*args
)
1165 gl_tpon(PyObject
*self
, PyObject
*args
)
1175 gl_tpoff(PyObject
*self
, PyObject
*args
)
1185 gl_clkon(PyObject
*self
, PyObject
*args
)
1195 gl_clkoff(PyObject
*self
, PyObject
*args
)
1205 gl_ringbell(PyObject
*self
, PyObject
*args
)
1215 gl_gbegin(PyObject
*self
, PyObject
*args
)
1225 gl_textinit(PyObject
*self
, PyObject
*args
)
1232 /* void initnames */
1235 gl_initnames(PyObject
*self
, PyObject
*args
)
1245 gl_pclos(PyObject
*self
, PyObject
*args
)
1255 gl_popname(PyObject
*self
, PyObject
*args
)
1265 gl_spclos(PyObject
*self
, PyObject
*args
)
1275 gl_zclear(PyObject
*self
, PyObject
*args
)
1282 /* void screenspace */
1285 gl_screenspace(PyObject
*self
, PyObject
*args
)
1292 /* void reshapeviewport */
1295 gl_reshapeviewport(PyObject
*self
, PyObject
*args
)
1305 gl_winpush(PyObject
*self
, PyObject
*args
)
1315 gl_winpop(PyObject
*self
, PyObject
*args
)
1322 /* void foreground */
1325 gl_foreground(PyObject
*self
, PyObject
*args
)
1332 /* void endfullscrn */
1335 gl_endfullscrn(PyObject
*self
, PyObject
*args
)
1342 /* void endpupmode */
1345 gl_endpupmode(PyObject
*self
, PyObject
*args
)
1355 gl_fullscrn(PyObject
*self
, PyObject
*args
)
1365 gl_pupmode(PyObject
*self
, PyObject
*args
)
1372 /* void winconstraints */
1375 gl_winconstraints(PyObject
*self
, PyObject
*args
)
1382 /* void pagecolor short s */
1385 gl_pagecolor(PyObject
*self
, PyObject
*args
)
1388 if (!getishortarg(args
, 1, 0, &arg1
))
1395 /* void textcolor short s */
1398 gl_textcolor(PyObject
*self
, PyObject
*args
)
1401 if (!getishortarg(args
, 1, 0, &arg1
))
1408 /* void color short s */
1411 gl_color(PyObject
*self
, PyObject
*args
)
1414 if (!getishortarg(args
, 1, 0, &arg1
))
1421 /* void curveit short s */
1424 gl_curveit(PyObject
*self
, PyObject
*args
)
1427 if (!getishortarg(args
, 1, 0, &arg1
))
1434 /* void font short s */
1437 gl_font(PyObject
*self
, PyObject
*args
)
1440 if (!getishortarg(args
, 1, 0, &arg1
))
1447 /* void linewidth short s */
1450 gl_linewidth(PyObject
*self
, PyObject
*args
)
1453 if (!getishortarg(args
, 1, 0, &arg1
))
1460 /* void setlinestyle short s */
1463 gl_setlinestyle(PyObject
*self
, PyObject
*args
)
1466 if (!getishortarg(args
, 1, 0, &arg1
))
1468 setlinestyle( arg1
);
1473 /* void setmap short s */
1476 gl_setmap(PyObject
*self
, PyObject
*args
)
1479 if (!getishortarg(args
, 1, 0, &arg1
))
1486 /* void swapinterval short s */
1489 gl_swapinterval(PyObject
*self
, PyObject
*args
)
1492 if (!getishortarg(args
, 1, 0, &arg1
))
1494 swapinterval( arg1
);
1499 /* void writemask short s */
1502 gl_writemask(PyObject
*self
, PyObject
*args
)
1505 if (!getishortarg(args
, 1, 0, &arg1
))
1512 /* void textwritemask short s */
1515 gl_textwritemask(PyObject
*self
, PyObject
*args
)
1518 if (!getishortarg(args
, 1, 0, &arg1
))
1520 textwritemask( arg1
);
1525 /* void qdevice short s */
1528 gl_qdevice(PyObject
*self
, PyObject
*args
)
1531 if (!getishortarg(args
, 1, 0, &arg1
))
1538 /* void unqdevice short s */
1541 gl_unqdevice(PyObject
*self
, PyObject
*args
)
1544 if (!getishortarg(args
, 1, 0, &arg1
))
1551 /* void curvebasis short s */
1554 gl_curvebasis(PyObject
*self
, PyObject
*args
)
1557 if (!getishortarg(args
, 1, 0, &arg1
))
1564 /* void curveprecision short s */
1567 gl_curveprecision(PyObject
*self
, PyObject
*args
)
1570 if (!getishortarg(args
, 1, 0, &arg1
))
1572 curveprecision( arg1
);
1577 /* void loadname short s */
1580 gl_loadname(PyObject
*self
, PyObject
*args
)
1583 if (!getishortarg(args
, 1, 0, &arg1
))
1590 /* void passthrough short s */
1593 gl_passthrough(PyObject
*self
, PyObject
*args
)
1596 if (!getishortarg(args
, 1, 0, &arg1
))
1598 passthrough( arg1
);
1603 /* void pushname short s */
1606 gl_pushname(PyObject
*self
, PyObject
*args
)
1609 if (!getishortarg(args
, 1, 0, &arg1
))
1616 /* void setmonitor short s */
1619 gl_setmonitor(PyObject
*self
, PyObject
*args
)
1622 if (!getishortarg(args
, 1, 0, &arg1
))
1629 /* void setshade short s */
1632 gl_setshade(PyObject
*self
, PyObject
*args
)
1635 if (!getishortarg(args
, 1, 0, &arg1
))
1642 /* void setpattern short s */
1645 gl_setpattern(PyObject
*self
, PyObject
*args
)
1648 if (!getishortarg(args
, 1, 0, &arg1
))
1655 /* void pagewritemask short s */
1658 gl_pagewritemask(PyObject
*self
, PyObject
*args
)
1661 if (!getishortarg(args
, 1, 0, &arg1
))
1663 pagewritemask( arg1
);
1668 /* void callobj long s */
1671 gl_callobj(PyObject
*self
, PyObject
*args
)
1674 if (!getilongarg(args
, 1, 0, &arg1
))
1681 /* void delobj long s */
1684 gl_delobj(PyObject
*self
, PyObject
*args
)
1687 if (!getilongarg(args
, 1, 0, &arg1
))
1694 /* void editobj long s */
1697 gl_editobj(PyObject
*self
, PyObject
*args
)
1700 if (!getilongarg(args
, 1, 0, &arg1
))
1707 /* void makeobj long s */
1710 gl_makeobj(PyObject
*self
, PyObject
*args
)
1713 if (!getilongarg(args
, 1, 0, &arg1
))
1720 /* void maketag long s */
1723 gl_maketag(PyObject
*self
, PyObject
*args
)
1726 if (!getilongarg(args
, 1, 0, &arg1
))
1733 /* void chunksize long s */
1736 gl_chunksize(PyObject
*self
, PyObject
*args
)
1739 if (!getilongarg(args
, 1, 0, &arg1
))
1746 /* void compactify long s */
1749 gl_compactify(PyObject
*self
, PyObject
*args
)
1752 if (!getilongarg(args
, 1, 0, &arg1
))
1759 /* void deltag long s */
1762 gl_deltag(PyObject
*self
, PyObject
*args
)
1765 if (!getilongarg(args
, 1, 0, &arg1
))
1772 /* void lsrepeat long s */
1775 gl_lsrepeat(PyObject
*self
, PyObject
*args
)
1778 if (!getilongarg(args
, 1, 0, &arg1
))
1785 /* void objinsert long s */
1788 gl_objinsert(PyObject
*self
, PyObject
*args
)
1791 if (!getilongarg(args
, 1, 0, &arg1
))
1798 /* void objreplace long s */
1801 gl_objreplace(PyObject
*self
, PyObject
*args
)
1804 if (!getilongarg(args
, 1, 0, &arg1
))
1811 /* void winclose long s */
1814 gl_winclose(PyObject
*self
, PyObject
*args
)
1817 if (!getilongarg(args
, 1, 0, &arg1
))
1824 /* void blanktime long s */
1827 gl_blanktime(PyObject
*self
, PyObject
*args
)
1830 if (!getilongarg(args
, 1, 0, &arg1
))
1837 /* void freepup long s */
1840 gl_freepup(PyObject
*self
, PyObject
*args
)
1843 if (!getilongarg(args
, 1, 0, &arg1
))
1850 /* void backbuffer long s */
1853 gl_backbuffer(PyObject
*self
, PyObject
*args
)
1856 if (!getilongarg(args
, 1, 0, &arg1
))
1863 /* void frontbuffer long s */
1866 gl_frontbuffer(PyObject
*self
, PyObject
*args
)
1869 if (!getilongarg(args
, 1, 0, &arg1
))
1871 frontbuffer( arg1
);
1876 /* void lsbackup long s */
1879 gl_lsbackup(PyObject
*self
, PyObject
*args
)
1882 if (!getilongarg(args
, 1, 0, &arg1
))
1889 /* void resetls long s */
1892 gl_resetls(PyObject
*self
, PyObject
*args
)
1895 if (!getilongarg(args
, 1, 0, &arg1
))
1902 /* void lampon long s */
1905 gl_lampon(PyObject
*self
, PyObject
*args
)
1908 if (!getilongarg(args
, 1, 0, &arg1
))
1915 /* void lampoff long s */
1918 gl_lampoff(PyObject
*self
, PyObject
*args
)
1921 if (!getilongarg(args
, 1, 0, &arg1
))
1928 /* void setbell long s */
1931 gl_setbell(PyObject
*self
, PyObject
*args
)
1934 if (!getilongarg(args
, 1, 0, &arg1
))
1941 /* void blankscreen long s */
1944 gl_blankscreen(PyObject
*self
, PyObject
*args
)
1947 if (!getilongarg(args
, 1, 0, &arg1
))
1949 blankscreen( arg1
);
1954 /* void depthcue long s */
1957 gl_depthcue(PyObject
*self
, PyObject
*args
)
1960 if (!getilongarg(args
, 1, 0, &arg1
))
1967 /* void zbuffer long s */
1970 gl_zbuffer(PyObject
*self
, PyObject
*args
)
1973 if (!getilongarg(args
, 1, 0, &arg1
))
1980 /* void backface long s */
1983 gl_backface(PyObject
*self
, PyObject
*args
)
1986 if (!getilongarg(args
, 1, 0, &arg1
))
1993 /* void cmov2i long s long s */
1996 gl_cmov2i(PyObject
*self
, PyObject
*args
)
2000 if (!getilongarg(args
, 2, 0, &arg1
))
2002 if (!getilongarg(args
, 2, 1, &arg2
))
2004 cmov2i( arg1
, arg2
);
2009 /* void draw2i long s long s */
2012 gl_draw2i(PyObject
*self
, PyObject
*args
)
2016 if (!getilongarg(args
, 2, 0, &arg1
))
2018 if (!getilongarg(args
, 2, 1, &arg2
))
2020 draw2i( arg1
, arg2
);
2025 /* void move2i long s long s */
2028 gl_move2i(PyObject
*self
, PyObject
*args
)
2032 if (!getilongarg(args
, 2, 0, &arg1
))
2034 if (!getilongarg(args
, 2, 1, &arg2
))
2036 move2i( arg1
, arg2
);
2041 /* void pnt2i long s long s */
2044 gl_pnt2i(PyObject
*self
, PyObject
*args
)
2048 if (!getilongarg(args
, 2, 0, &arg1
))
2050 if (!getilongarg(args
, 2, 1, &arg2
))
2052 pnt2i( arg1
, arg2
);
2057 /* void patchbasis long s long s */
2060 gl_patchbasis(PyObject
*self
, PyObject
*args
)
2064 if (!getilongarg(args
, 2, 0, &arg1
))
2066 if (!getilongarg(args
, 2, 1, &arg2
))
2068 patchbasis( arg1
, arg2
);
2073 /* void patchprecision long s long s */
2076 gl_patchprecision(PyObject
*self
, PyObject
*args
)
2080 if (!getilongarg(args
, 2, 0, &arg1
))
2082 if (!getilongarg(args
, 2, 1, &arg2
))
2084 patchprecision( arg1
, arg2
);
2089 /* void pdr2i long s long s */
2092 gl_pdr2i(PyObject
*self
, PyObject
*args
)
2096 if (!getilongarg(args
, 2, 0, &arg1
))
2098 if (!getilongarg(args
, 2, 1, &arg2
))
2100 pdr2i( arg1
, arg2
);
2105 /* void pmv2i long s long s */
2108 gl_pmv2i(PyObject
*self
, PyObject
*args
)
2112 if (!getilongarg(args
, 2, 0, &arg1
))
2114 if (!getilongarg(args
, 2, 1, &arg2
))
2116 pmv2i( arg1
, arg2
);
2121 /* void rpdr2i long s long s */
2124 gl_rpdr2i(PyObject
*self
, PyObject
*args
)
2128 if (!getilongarg(args
, 2, 0, &arg1
))
2130 if (!getilongarg(args
, 2, 1, &arg2
))
2132 rpdr2i( arg1
, arg2
);
2137 /* void rpmv2i long s long s */
2140 gl_rpmv2i(PyObject
*self
, PyObject
*args
)
2144 if (!getilongarg(args
, 2, 0, &arg1
))
2146 if (!getilongarg(args
, 2, 1, &arg2
))
2148 rpmv2i( arg1
, arg2
);
2153 /* void xfpt2i long s long s */
2156 gl_xfpt2i(PyObject
*self
, PyObject
*args
)
2160 if (!getilongarg(args
, 2, 0, &arg1
))
2162 if (!getilongarg(args
, 2, 1, &arg2
))
2164 xfpt2i( arg1
, arg2
);
2169 /* void objdelete long s long s */
2172 gl_objdelete(PyObject
*self
, PyObject
*args
)
2176 if (!getilongarg(args
, 2, 0, &arg1
))
2178 if (!getilongarg(args
, 2, 1, &arg2
))
2180 objdelete( arg1
, arg2
);
2185 /* void patchcurves long s long s */
2188 gl_patchcurves(PyObject
*self
, PyObject
*args
)
2192 if (!getilongarg(args
, 2, 0, &arg1
))
2194 if (!getilongarg(args
, 2, 1, &arg2
))
2196 patchcurves( arg1
, arg2
);
2201 /* void minsize long s long s */
2204 gl_minsize(PyObject
*self
, PyObject
*args
)
2208 if (!getilongarg(args
, 2, 0, &arg1
))
2210 if (!getilongarg(args
, 2, 1, &arg2
))
2212 minsize( arg1
, arg2
);
2217 /* void maxsize long s long s */
2220 gl_maxsize(PyObject
*self
, PyObject
*args
)
2224 if (!getilongarg(args
, 2, 0, &arg1
))
2226 if (!getilongarg(args
, 2, 1, &arg2
))
2228 maxsize( arg1
, arg2
);
2233 /* void keepaspect long s long s */
2236 gl_keepaspect(PyObject
*self
, PyObject
*args
)
2240 if (!getilongarg(args
, 2, 0, &arg1
))
2242 if (!getilongarg(args
, 2, 1, &arg2
))
2244 keepaspect( arg1
, arg2
);
2249 /* void prefsize long s long s */
2252 gl_prefsize(PyObject
*self
, PyObject
*args
)
2256 if (!getilongarg(args
, 2, 0, &arg1
))
2258 if (!getilongarg(args
, 2, 1, &arg2
))
2260 prefsize( arg1
, arg2
);
2265 /* void stepunit long s long s */
2268 gl_stepunit(PyObject
*self
, PyObject
*args
)
2272 if (!getilongarg(args
, 2, 0, &arg1
))
2274 if (!getilongarg(args
, 2, 1, &arg2
))
2276 stepunit( arg1
, arg2
);
2281 /* void fudge long s long s */
2284 gl_fudge(PyObject
*self
, PyObject
*args
)
2288 if (!getilongarg(args
, 2, 0, &arg1
))
2290 if (!getilongarg(args
, 2, 1, &arg2
))
2292 fudge( arg1
, arg2
);
2297 /* void winmove long s long s */
2300 gl_winmove(PyObject
*self
, PyObject
*args
)
2304 if (!getilongarg(args
, 2, 0, &arg1
))
2306 if (!getilongarg(args
, 2, 1, &arg2
))
2308 winmove( arg1
, arg2
);
2313 /* void attachcursor short s short s */
2316 gl_attachcursor(PyObject
*self
, PyObject
*args
)
2320 if (!getishortarg(args
, 2, 0, &arg1
))
2322 if (!getishortarg(args
, 2, 1, &arg2
))
2324 attachcursor( arg1
, arg2
);
2329 /* void deflinestyle short s short s */
2332 gl_deflinestyle(PyObject
*self
, PyObject
*args
)
2336 if (!getishortarg(args
, 2, 0, &arg1
))
2338 if (!getishortarg(args
, 2, 1, &arg2
))
2340 deflinestyle( arg1
, arg2
);
2345 /* void noise short s short s */
2348 gl_noise(PyObject
*self
, PyObject
*args
)
2352 if (!getishortarg(args
, 2, 0, &arg1
))
2354 if (!getishortarg(args
, 2, 1, &arg2
))
2356 noise( arg1
, arg2
);
2361 /* void picksize short s short s */
2364 gl_picksize(PyObject
*self
, PyObject
*args
)
2368 if (!getishortarg(args
, 2, 0, &arg1
))
2370 if (!getishortarg(args
, 2, 1, &arg2
))
2372 picksize( arg1
, arg2
);
2377 /* void qenter short s short s */
2380 gl_qenter(PyObject
*self
, PyObject
*args
)
2384 if (!getishortarg(args
, 2, 0, &arg1
))
2386 if (!getishortarg(args
, 2, 1, &arg2
))
2388 qenter( arg1
, arg2
);
2393 /* void setdepth short s short s */
2396 gl_setdepth(PyObject
*self
, PyObject
*args
)
2400 if (!getishortarg(args
, 2, 0, &arg1
))
2402 if (!getishortarg(args
, 2, 1, &arg2
))
2404 setdepth( arg1
, arg2
);
2409 /* void cmov2s short s short s */
2412 gl_cmov2s(PyObject
*self
, PyObject
*args
)
2416 if (!getishortarg(args
, 2, 0, &arg1
))
2418 if (!getishortarg(args
, 2, 1, &arg2
))
2420 cmov2s( arg1
, arg2
);
2425 /* void draw2s short s short s */
2428 gl_draw2s(PyObject
*self
, PyObject
*args
)
2432 if (!getishortarg(args
, 2, 0, &arg1
))
2434 if (!getishortarg(args
, 2, 1, &arg2
))
2436 draw2s( arg1
, arg2
);
2441 /* void move2s short s short s */
2444 gl_move2s(PyObject
*self
, PyObject
*args
)
2448 if (!getishortarg(args
, 2, 0, &arg1
))
2450 if (!getishortarg(args
, 2, 1, &arg2
))
2452 move2s( arg1
, arg2
);
2457 /* void pdr2s short s short s */
2460 gl_pdr2s(PyObject
*self
, PyObject
*args
)
2464 if (!getishortarg(args
, 2, 0, &arg1
))
2466 if (!getishortarg(args
, 2, 1, &arg2
))
2468 pdr2s( arg1
, arg2
);
2473 /* void pmv2s short s short s */
2476 gl_pmv2s(PyObject
*self
, PyObject
*args
)
2480 if (!getishortarg(args
, 2, 0, &arg1
))
2482 if (!getishortarg(args
, 2, 1, &arg2
))
2484 pmv2s( arg1
, arg2
);
2489 /* void pnt2s short s short s */
2492 gl_pnt2s(PyObject
*self
, PyObject
*args
)
2496 if (!getishortarg(args
, 2, 0, &arg1
))
2498 if (!getishortarg(args
, 2, 1, &arg2
))
2500 pnt2s( arg1
, arg2
);
2505 /* void rdr2s short s short s */
2508 gl_rdr2s(PyObject
*self
, PyObject
*args
)
2512 if (!getishortarg(args
, 2, 0, &arg1
))
2514 if (!getishortarg(args
, 2, 1, &arg2
))
2516 rdr2s( arg1
, arg2
);
2521 /* void rmv2s short s short s */
2524 gl_rmv2s(PyObject
*self
, PyObject
*args
)
2528 if (!getishortarg(args
, 2, 0, &arg1
))
2530 if (!getishortarg(args
, 2, 1, &arg2
))
2532 rmv2s( arg1
, arg2
);
2537 /* void rpdr2s short s short s */
2540 gl_rpdr2s(PyObject
*self
, PyObject
*args
)
2544 if (!getishortarg(args
, 2, 0, &arg1
))
2546 if (!getishortarg(args
, 2, 1, &arg2
))
2548 rpdr2s( arg1
, arg2
);
2553 /* void rpmv2s short s short s */
2556 gl_rpmv2s(PyObject
*self
, PyObject
*args
)
2560 if (!getishortarg(args
, 2, 0, &arg1
))
2562 if (!getishortarg(args
, 2, 1, &arg2
))
2564 rpmv2s( arg1
, arg2
);
2569 /* void xfpt2s short s short s */
2572 gl_xfpt2s(PyObject
*self
, PyObject
*args
)
2576 if (!getishortarg(args
, 2, 0, &arg1
))
2578 if (!getishortarg(args
, 2, 1, &arg2
))
2580 xfpt2s( arg1
, arg2
);
2585 /* void cmov2 float s float s */
2588 gl_cmov2(PyObject
*self
, PyObject
*args
)
2592 if (!getifloatarg(args
, 2, 0, &arg1
))
2594 if (!getifloatarg(args
, 2, 1, &arg2
))
2596 cmov2( arg1
, arg2
);
2601 /* void draw2 float s float s */
2604 gl_draw2(PyObject
*self
, PyObject
*args
)
2608 if (!getifloatarg(args
, 2, 0, &arg1
))
2610 if (!getifloatarg(args
, 2, 1, &arg2
))
2612 draw2( arg1
, arg2
);
2617 /* void move2 float s float s */
2620 gl_move2(PyObject
*self
, PyObject
*args
)
2624 if (!getifloatarg(args
, 2, 0, &arg1
))
2626 if (!getifloatarg(args
, 2, 1, &arg2
))
2628 move2( arg1
, arg2
);
2633 /* void pnt2 float s float s */
2636 gl_pnt2(PyObject
*self
, PyObject
*args
)
2640 if (!getifloatarg(args
, 2, 0, &arg1
))
2642 if (!getifloatarg(args
, 2, 1, &arg2
))
2644 pnt2( arg1
, arg2
);
2649 /* void pdr2 float s float s */
2652 gl_pdr2(PyObject
*self
, PyObject
*args
)
2656 if (!getifloatarg(args
, 2, 0, &arg1
))
2658 if (!getifloatarg(args
, 2, 1, &arg2
))
2660 pdr2( arg1
, arg2
);
2665 /* void pmv2 float s float s */
2668 gl_pmv2(PyObject
*self
, PyObject
*args
)
2672 if (!getifloatarg(args
, 2, 0, &arg1
))
2674 if (!getifloatarg(args
, 2, 1, &arg2
))
2676 pmv2( arg1
, arg2
);
2681 /* void rdr2 float s float s */
2684 gl_rdr2(PyObject
*self
, PyObject
*args
)
2688 if (!getifloatarg(args
, 2, 0, &arg1
))
2690 if (!getifloatarg(args
, 2, 1, &arg2
))
2692 rdr2( arg1
, arg2
);
2697 /* void rmv2 float s float s */
2700 gl_rmv2(PyObject
*self
, PyObject
*args
)
2704 if (!getifloatarg(args
, 2, 0, &arg1
))
2706 if (!getifloatarg(args
, 2, 1, &arg2
))
2708 rmv2( arg1
, arg2
);
2713 /* void rpdr2 float s float s */
2716 gl_rpdr2(PyObject
*self
, PyObject
*args
)
2720 if (!getifloatarg(args
, 2, 0, &arg1
))
2722 if (!getifloatarg(args
, 2, 1, &arg2
))
2724 rpdr2( arg1
, arg2
);
2729 /* void rpmv2 float s float s */
2732 gl_rpmv2(PyObject
*self
, PyObject
*args
)
2736 if (!getifloatarg(args
, 2, 0, &arg1
))
2738 if (!getifloatarg(args
, 2, 1, &arg2
))
2740 rpmv2( arg1
, arg2
);
2745 /* void xfpt2 float s float s */
2748 gl_xfpt2(PyObject
*self
, PyObject
*args
)
2752 if (!getifloatarg(args
, 2, 0, &arg1
))
2754 if (!getifloatarg(args
, 2, 1, &arg2
))
2756 xfpt2( arg1
, arg2
);
2761 /* void loadmatrix float s[4*4] */
2764 gl_loadmatrix(PyObject
*self
, PyObject
*args
)
2766 float arg1
[ 4 ] [ 4 ] ;
2767 if (!getifloatarray(args
, 1, 0, 4 * 4 , (float *) arg1
))
2774 /* void multmatrix float s[4*4] */
2777 gl_multmatrix(PyObject
*self
, PyObject
*args
)
2779 float arg1
[ 4 ] [ 4 ] ;
2780 if (!getifloatarray(args
, 1, 0, 4 * 4 , (float *) arg1
))
2787 /* void crv float s[3*4] */
2790 gl_crv(PyObject
*self
, PyObject
*args
)
2792 float arg1
[ 4 ] [ 3 ] ;
2793 if (!getifloatarray(args
, 1, 0, 3 * 4 , (float *) arg1
))
2800 /* void rcrv float s[4*4] */
2803 gl_rcrv(PyObject
*self
, PyObject
*args
)
2805 float arg1
[ 4 ] [ 4 ] ;
2806 if (!getifloatarray(args
, 1, 0, 4 * 4 , (float *) arg1
))
2813 /* void addtopup long s char *s long s */
2816 gl_addtopup(PyObject
*self
, PyObject
*args
)
2821 if (!getilongarg(args
, 3, 0, &arg1
))
2823 if (!getistringarg(args
, 3, 1, &arg2
))
2825 if (!getilongarg(args
, 3, 2, &arg3
))
2827 addtopup( arg1
, arg2
, arg3
);
2832 /* void charstr char *s */
2835 gl_charstr(PyObject
*self
, PyObject
*args
)
2838 if (!getistringarg(args
, 1, 0, &arg1
))
2845 /* void getport char *s */
2848 gl_getport(PyObject
*self
, PyObject
*args
)
2851 if (!getistringarg(args
, 1, 0, &arg1
))
2858 /* long strwidth char *s */
2861 gl_strwidth(PyObject
*self
, PyObject
*args
)
2865 if (!getistringarg(args
, 1, 0, &arg1
))
2867 retval
= strwidth( arg1
);
2868 return mknewlongobject(retval
);
2871 /* long winopen char *s */
2874 gl_winopen(PyObject
*self
, PyObject
*args
)
2878 if (!getistringarg(args
, 1, 0, &arg1
))
2880 retval
= winopen( arg1
);
2881 return mknewlongobject(retval
);
2884 /* void wintitle char *s */
2887 gl_wintitle(PyObject
*self
, PyObject
*args
)
2890 if (!getistringarg(args
, 1, 0, &arg1
))
2897 /* void polf long s float s[3*arg1] */
2900 gl_polf(PyObject
*self
, PyObject
*args
)
2903 float (* arg2
) [ 3 ] ;
2904 if (!getilongarraysize(args
, 1, 0, &arg1
))
2907 if ((arg2
= (float(*)[3]) PyMem_NEW(float , 3 * arg1
)) == NULL
)
2908 return PyErr_NoMemory();
2909 if (!getifloatarray(args
, 1, 0, 3 * arg1
, (float *) arg2
))
2911 polf( arg1
, arg2
);
2917 /* void polf2 long s float s[2*arg1] */
2920 gl_polf2(PyObject
*self
, PyObject
*args
)
2923 float (* arg2
) [ 2 ] ;
2924 if (!getilongarraysize(args
, 1, 0, &arg1
))
2927 if ((arg2
= (float(*)[2]) PyMem_NEW(float , 2 * arg1
)) == NULL
)
2928 return PyErr_NoMemory();
2929 if (!getifloatarray(args
, 1, 0, 2 * arg1
, (float *) arg2
))
2931 polf2( arg1
, arg2
);
2937 /* void poly long s float s[3*arg1] */
2940 gl_poly(PyObject
*self
, PyObject
*args
)
2943 float (* arg2
) [ 3 ] ;
2944 if (!getilongarraysize(args
, 1, 0, &arg1
))
2947 if ((arg2
= (float(*)[3]) PyMem_NEW(float , 3 * arg1
)) == NULL
)
2948 return PyErr_NoMemory();
2949 if (!getifloatarray(args
, 1, 0, 3 * arg1
, (float *) arg2
))
2951 poly( arg1
, arg2
);
2957 /* void poly2 long s float s[2*arg1] */
2960 gl_poly2(PyObject
*self
, PyObject
*args
)
2963 float (* arg2
) [ 2 ] ;
2964 if (!getilongarraysize(args
, 1, 0, &arg1
))
2967 if ((arg2
= (float(*)[2]) PyMem_NEW(float , 2 * arg1
)) == NULL
)
2968 return PyErr_NoMemory();
2969 if (!getifloatarray(args
, 1, 0, 2 * arg1
, (float *) arg2
))
2971 poly2( arg1
, arg2
);
2977 /* void crvn long s float s[3*arg1] */
2980 gl_crvn(PyObject
*self
, PyObject
*args
)
2983 float (* arg2
) [ 3 ] ;
2984 if (!getilongarraysize(args
, 1, 0, &arg1
))
2987 if ((arg2
= (float(*)[3]) PyMem_NEW(float , 3 * arg1
)) == NULL
)
2988 return PyErr_NoMemory();
2989 if (!getifloatarray(args
, 1, 0, 3 * arg1
, (float *) arg2
))
2991 crvn( arg1
, arg2
);
2997 /* void rcrvn long s float s[4*arg1] */
3000 gl_rcrvn(PyObject
*self
, PyObject
*args
)
3003 float (* arg2
) [ 4 ] ;
3004 if (!getilongarraysize(args
, 1, 0, &arg1
))
3007 if ((arg2
= (float(*)[4]) PyMem_NEW(float , 4 * arg1
)) == NULL
)
3008 return PyErr_NoMemory();
3009 if (!getifloatarray(args
, 1, 0, 4 * arg1
, (float *) arg2
))
3011 rcrvn( arg1
, arg2
);
3017 /* void polf2i long s long s[2*arg1] */
3020 gl_polf2i(PyObject
*self
, PyObject
*args
)
3023 long (* arg2
) [ 2 ] ;
3024 if (!getilongarraysize(args
, 1, 0, &arg1
))
3027 if ((arg2
= (long(*)[2]) PyMem_NEW(long , 2 * arg1
)) == NULL
)
3028 return PyErr_NoMemory();
3029 if (!getilongarray(args
, 1, 0, 2 * arg1
, (long *) arg2
))
3031 polf2i( arg1
, arg2
);
3037 /* void polfi long s long s[3*arg1] */
3040 gl_polfi(PyObject
*self
, PyObject
*args
)
3043 long (* arg2
) [ 3 ] ;
3044 if (!getilongarraysize(args
, 1, 0, &arg1
))
3047 if ((arg2
= (long(*)[3]) PyMem_NEW(long , 3 * arg1
)) == NULL
)
3048 return PyErr_NoMemory();
3049 if (!getilongarray(args
, 1, 0, 3 * arg1
, (long *) arg2
))
3051 polfi( arg1
, arg2
);
3057 /* void poly2i long s long s[2*arg1] */
3060 gl_poly2i(PyObject
*self
, PyObject
*args
)
3063 long (* arg2
) [ 2 ] ;
3064 if (!getilongarraysize(args
, 1, 0, &arg1
))
3067 if ((arg2
= (long(*)[2]) PyMem_NEW(long , 2 * arg1
)) == NULL
)
3068 return PyErr_NoMemory();
3069 if (!getilongarray(args
, 1, 0, 2 * arg1
, (long *) arg2
))
3071 poly2i( arg1
, arg2
);
3077 /* void polyi long s long s[3*arg1] */
3080 gl_polyi(PyObject
*self
, PyObject
*args
)
3083 long (* arg2
) [ 3 ] ;
3084 if (!getilongarraysize(args
, 1, 0, &arg1
))
3087 if ((arg2
= (long(*)[3]) PyMem_NEW(long , 3 * arg1
)) == NULL
)
3088 return PyErr_NoMemory();
3089 if (!getilongarray(args
, 1, 0, 3 * arg1
, (long *) arg2
))
3091 polyi( arg1
, arg2
);
3097 /* void polf2s long s short s[2*arg1] */
3100 gl_polf2s(PyObject
*self
, PyObject
*args
)
3103 short (* arg2
) [ 2 ] ;
3104 if (!getilongarraysize(args
, 1, 0, &arg1
))
3107 if ((arg2
= (short(*)[2]) PyMem_NEW(short , 2 * arg1
)) == NULL
)
3108 return PyErr_NoMemory();
3109 if (!getishortarray(args
, 1, 0, 2 * arg1
, (short *) arg2
))
3111 polf2s( arg1
, arg2
);
3117 /* void polfs long s short s[3*arg1] */
3120 gl_polfs(PyObject
*self
, PyObject
*args
)
3123 short (* arg2
) [ 3 ] ;
3124 if (!getilongarraysize(args
, 1, 0, &arg1
))
3127 if ((arg2
= (short(*)[3]) PyMem_NEW(short , 3 * arg1
)) == NULL
)
3128 return PyErr_NoMemory();
3129 if (!getishortarray(args
, 1, 0, 3 * arg1
, (short *) arg2
))
3131 polfs( arg1
, arg2
);
3137 /* void polys long s short s[3*arg1] */
3140 gl_polys(PyObject
*self
, PyObject
*args
)
3143 short (* arg2
) [ 3 ] ;
3144 if (!getilongarraysize(args
, 1, 0, &arg1
))
3147 if ((arg2
= (short(*)[3]) PyMem_NEW(short , 3 * arg1
)) == NULL
)
3148 return PyErr_NoMemory();
3149 if (!getishortarray(args
, 1, 0, 3 * arg1
, (short *) arg2
))
3151 polys( arg1
, arg2
);
3157 /* void poly2s long s short s[2*arg1] */
3160 gl_poly2s(PyObject
*self
, PyObject
*args
)
3163 short (* arg2
) [ 2 ] ;
3164 if (!getilongarraysize(args
, 1, 0, &arg1
))
3167 if ((arg2
= (short(*)[2]) PyMem_NEW(short , 2 * arg1
)) == NULL
)
3168 return PyErr_NoMemory();
3169 if (!getishortarray(args
, 1, 0, 2 * arg1
, (short *) arg2
))
3171 poly2s( arg1
, arg2
);
3177 /* void defcursor short s u_short s[128] */
3180 gl_defcursor(PyObject
*self
, PyObject
*args
)
3183 unsigned short arg2
[ 128 ] ;
3184 if (!getishortarg(args
, 2, 0, &arg1
))
3186 if (!getishortarray(args
, 2, 1, 128 , (short *) arg2
))
3188 defcursor( arg1
, arg2
);
3193 /* void writepixels short s u_short s[arg1] */
3196 gl_writepixels(PyObject
*self
, PyObject
*args
)
3199 unsigned short * arg2
;
3200 if (!getishortarraysize(args
, 1, 0, &arg1
))
3202 if ((arg2
= PyMem_NEW(unsigned short , arg1
)) == NULL
)
3203 return PyErr_NoMemory();
3204 if (!getishortarray(args
, 1, 0, arg1
, (short *) arg2
))
3206 writepixels( arg1
, arg2
);
3212 /* void defbasis long s float s[4*4] */
3215 gl_defbasis(PyObject
*self
, PyObject
*args
)
3218 float arg2
[ 4 ] [ 4 ] ;
3219 if (!getilongarg(args
, 2, 0, &arg1
))
3221 if (!getifloatarray(args
, 2, 1, 4 * 4 , (float *) arg2
))
3223 defbasis( arg1
, arg2
);
3228 /* void gewrite short s short s[arg1] */
3231 gl_gewrite(PyObject
*self
, PyObject
*args
)
3235 if (!getishortarraysize(args
, 1, 0, &arg1
))
3237 if ((arg2
= PyMem_NEW(short , arg1
)) == NULL
)
3238 return PyErr_NoMemory();
3239 if (!getishortarray(args
, 1, 0, arg1
, arg2
))
3241 gewrite( arg1
, arg2
);
3247 /* void rotate short s char s */
3250 gl_rotate(PyObject
*self
, PyObject
*args
)
3254 if (!getishortarg(args
, 2, 0, &arg1
))
3256 if (!getichararg(args
, 2, 1, &arg2
))
3258 rotate( arg1
, arg2
);
3263 /* void rot float s char s */
3266 gl_rot(PyObject
*self
, PyObject
*args
)
3270 if (!getifloatarg(args
, 2, 0, &arg1
))
3272 if (!getichararg(args
, 2, 1, &arg2
))
3279 /* void circfi long s long s long s */
3282 gl_circfi(PyObject
*self
, PyObject
*args
)
3287 if (!getilongarg(args
, 3, 0, &arg1
))
3289 if (!getilongarg(args
, 3, 1, &arg2
))
3291 if (!getilongarg(args
, 3, 2, &arg3
))
3293 circfi( arg1
, arg2
, arg3
);
3298 /* void circi long s long s long s */
3301 gl_circi(PyObject
*self
, PyObject
*args
)
3306 if (!getilongarg(args
, 3, 0, &arg1
))
3308 if (!getilongarg(args
, 3, 1, &arg2
))
3310 if (!getilongarg(args
, 3, 2, &arg3
))
3312 circi( arg1
, arg2
, arg3
);
3317 /* void cmovi long s long s long s */
3320 gl_cmovi(PyObject
*self
, PyObject
*args
)
3325 if (!getilongarg(args
, 3, 0, &arg1
))
3327 if (!getilongarg(args
, 3, 1, &arg2
))
3329 if (!getilongarg(args
, 3, 2, &arg3
))
3331 cmovi( arg1
, arg2
, arg3
);
3336 /* void drawi long s long s long s */
3339 gl_drawi(PyObject
*self
, PyObject
*args
)
3344 if (!getilongarg(args
, 3, 0, &arg1
))
3346 if (!getilongarg(args
, 3, 1, &arg2
))
3348 if (!getilongarg(args
, 3, 2, &arg3
))
3350 drawi( arg1
, arg2
, arg3
);
3355 /* void movei long s long s long s */
3358 gl_movei(PyObject
*self
, PyObject
*args
)
3363 if (!getilongarg(args
, 3, 0, &arg1
))
3365 if (!getilongarg(args
, 3, 1, &arg2
))
3367 if (!getilongarg(args
, 3, 2, &arg3
))
3369 movei( arg1
, arg2
, arg3
);
3374 /* void pnti long s long s long s */
3377 gl_pnti(PyObject
*self
, PyObject
*args
)
3382 if (!getilongarg(args
, 3, 0, &arg1
))
3384 if (!getilongarg(args
, 3, 1, &arg2
))
3386 if (!getilongarg(args
, 3, 2, &arg3
))
3388 pnti( arg1
, arg2
, arg3
);
3393 /* void newtag long s long s long s */
3396 gl_newtag(PyObject
*self
, PyObject
*args
)
3401 if (!getilongarg(args
, 3, 0, &arg1
))
3403 if (!getilongarg(args
, 3, 1, &arg2
))
3405 if (!getilongarg(args
, 3, 2, &arg3
))
3407 newtag( arg1
, arg2
, arg3
);
3412 /* void pdri long s long s long s */
3415 gl_pdri(PyObject
*self
, PyObject
*args
)
3420 if (!getilongarg(args
, 3, 0, &arg1
))
3422 if (!getilongarg(args
, 3, 1, &arg2
))
3424 if (!getilongarg(args
, 3, 2, &arg3
))
3426 pdri( arg1
, arg2
, arg3
);
3431 /* void pmvi long s long s long s */
3434 gl_pmvi(PyObject
*self
, PyObject
*args
)
3439 if (!getilongarg(args
, 3, 0, &arg1
))
3441 if (!getilongarg(args
, 3, 1, &arg2
))
3443 if (!getilongarg(args
, 3, 2, &arg3
))
3445 pmvi( arg1
, arg2
, arg3
);
3450 /* void rdri long s long s long s */
3453 gl_rdri(PyObject
*self
, PyObject
*args
)
3458 if (!getilongarg(args
, 3, 0, &arg1
))
3460 if (!getilongarg(args
, 3, 1, &arg2
))
3462 if (!getilongarg(args
, 3, 2, &arg3
))
3464 rdri( arg1
, arg2
, arg3
);
3469 /* void rmvi long s long s long s */
3472 gl_rmvi(PyObject
*self
, PyObject
*args
)
3477 if (!getilongarg(args
, 3, 0, &arg1
))
3479 if (!getilongarg(args
, 3, 1, &arg2
))
3481 if (!getilongarg(args
, 3, 2, &arg3
))
3483 rmvi( arg1
, arg2
, arg3
);
3488 /* void rpdri long s long s long s */
3491 gl_rpdri(PyObject
*self
, PyObject
*args
)
3496 if (!getilongarg(args
, 3, 0, &arg1
))
3498 if (!getilongarg(args
, 3, 1, &arg2
))
3500 if (!getilongarg(args
, 3, 2, &arg3
))
3502 rpdri( arg1
, arg2
, arg3
);
3507 /* void rpmvi long s long s long s */
3510 gl_rpmvi(PyObject
*self
, PyObject
*args
)
3515 if (!getilongarg(args
, 3, 0, &arg1
))
3517 if (!getilongarg(args
, 3, 1, &arg2
))
3519 if (!getilongarg(args
, 3, 2, &arg3
))
3521 rpmvi( arg1
, arg2
, arg3
);
3526 /* void xfpti long s long s long s */
3529 gl_xfpti(PyObject
*self
, PyObject
*args
)
3534 if (!getilongarg(args
, 3, 0, &arg1
))
3536 if (!getilongarg(args
, 3, 1, &arg2
))
3538 if (!getilongarg(args
, 3, 2, &arg3
))
3540 xfpti( arg1
, arg2
, arg3
);
3545 /* void circ float s float s float s */
3548 gl_circ(PyObject
*self
, PyObject
*args
)
3553 if (!getifloatarg(args
, 3, 0, &arg1
))
3555 if (!getifloatarg(args
, 3, 1, &arg2
))
3557 if (!getifloatarg(args
, 3, 2, &arg3
))
3559 circ( arg1
, arg2
, arg3
);
3564 /* void circf float s float s float s */
3567 gl_circf(PyObject
*self
, PyObject
*args
)
3572 if (!getifloatarg(args
, 3, 0, &arg1
))
3574 if (!getifloatarg(args
, 3, 1, &arg2
))
3576 if (!getifloatarg(args
, 3, 2, &arg3
))
3578 circf( arg1
, arg2
, arg3
);
3583 /* void cmov float s float s float s */
3586 gl_cmov(PyObject
*self
, PyObject
*args
)
3591 if (!getifloatarg(args
, 3, 0, &arg1
))
3593 if (!getifloatarg(args
, 3, 1, &arg2
))
3595 if (!getifloatarg(args
, 3, 2, &arg3
))
3597 cmov( arg1
, arg2
, arg3
);
3602 /* void draw float s float s float s */
3605 gl_draw(PyObject
*self
, PyObject
*args
)
3610 if (!getifloatarg(args
, 3, 0, &arg1
))
3612 if (!getifloatarg(args
, 3, 1, &arg2
))
3614 if (!getifloatarg(args
, 3, 2, &arg3
))
3616 draw( arg1
, arg2
, arg3
);
3621 /* void move float s float s float s */
3624 gl_move(PyObject
*self
, PyObject
*args
)
3629 if (!getifloatarg(args
, 3, 0, &arg1
))
3631 if (!getifloatarg(args
, 3, 1, &arg2
))
3633 if (!getifloatarg(args
, 3, 2, &arg3
))
3635 move( arg1
, arg2
, arg3
);
3640 /* void pnt float s float s float s */
3643 gl_pnt(PyObject
*self
, PyObject
*args
)
3648 if (!getifloatarg(args
, 3, 0, &arg1
))
3650 if (!getifloatarg(args
, 3, 1, &arg2
))
3652 if (!getifloatarg(args
, 3, 2, &arg3
))
3654 pnt( arg1
, arg2
, arg3
);
3659 /* void scale float s float s float s */
3662 gl_scale(PyObject
*self
, PyObject
*args
)
3667 if (!getifloatarg(args
, 3, 0, &arg1
))
3669 if (!getifloatarg(args
, 3, 1, &arg2
))
3671 if (!getifloatarg(args
, 3, 2, &arg3
))
3673 scale( arg1
, arg2
, arg3
);
3678 /* void translate float s float s float s */
3681 gl_translate(PyObject
*self
, PyObject
*args
)
3686 if (!getifloatarg(args
, 3, 0, &arg1
))
3688 if (!getifloatarg(args
, 3, 1, &arg2
))
3690 if (!getifloatarg(args
, 3, 2, &arg3
))
3692 translate( arg1
, arg2
, arg3
);
3697 /* void pdr float s float s float s */
3700 gl_pdr(PyObject
*self
, PyObject
*args
)
3705 if (!getifloatarg(args
, 3, 0, &arg1
))
3707 if (!getifloatarg(args
, 3, 1, &arg2
))
3709 if (!getifloatarg(args
, 3, 2, &arg3
))
3711 pdr( arg1
, arg2
, arg3
);
3716 /* void pmv float s float s float s */
3719 gl_pmv(PyObject
*self
, PyObject
*args
)
3724 if (!getifloatarg(args
, 3, 0, &arg1
))
3726 if (!getifloatarg(args
, 3, 1, &arg2
))
3728 if (!getifloatarg(args
, 3, 2, &arg3
))
3730 pmv( arg1
, arg2
, arg3
);
3735 /* void rdr float s float s float s */
3738 gl_rdr(PyObject
*self
, PyObject
*args
)
3743 if (!getifloatarg(args
, 3, 0, &arg1
))
3745 if (!getifloatarg(args
, 3, 1, &arg2
))
3747 if (!getifloatarg(args
, 3, 2, &arg3
))
3749 rdr( arg1
, arg2
, arg3
);
3754 /* void rmv float s float s float s */
3757 gl_rmv(PyObject
*self
, PyObject
*args
)
3762 if (!getifloatarg(args
, 3, 0, &arg1
))
3764 if (!getifloatarg(args
, 3, 1, &arg2
))
3766 if (!getifloatarg(args
, 3, 2, &arg3
))
3768 rmv( arg1
, arg2
, arg3
);
3773 /* void rpdr float s float s float s */
3776 gl_rpdr(PyObject
*self
, PyObject
*args
)
3781 if (!getifloatarg(args
, 3, 0, &arg1
))
3783 if (!getifloatarg(args
, 3, 1, &arg2
))
3785 if (!getifloatarg(args
, 3, 2, &arg3
))
3787 rpdr( arg1
, arg2
, arg3
);
3792 /* void rpmv float s float s float s */
3795 gl_rpmv(PyObject
*self
, PyObject
*args
)
3800 if (!getifloatarg(args
, 3, 0, &arg1
))
3802 if (!getifloatarg(args
, 3, 1, &arg2
))
3804 if (!getifloatarg(args
, 3, 2, &arg3
))
3806 rpmv( arg1
, arg2
, arg3
);
3811 /* void xfpt float s float s float s */
3814 gl_xfpt(PyObject
*self
, PyObject
*args
)
3819 if (!getifloatarg(args
, 3, 0, &arg1
))
3821 if (!getifloatarg(args
, 3, 1, &arg2
))
3823 if (!getifloatarg(args
, 3, 2, &arg3
))
3825 xfpt( arg1
, arg2
, arg3
);
3830 /* void RGBcolor short s short s short s */
3833 gl_RGBcolor(PyObject
*self
, PyObject
*args
)
3838 if (!getishortarg(args
, 3, 0, &arg1
))
3840 if (!getishortarg(args
, 3, 1, &arg2
))
3842 if (!getishortarg(args
, 3, 2, &arg3
))
3844 RGBcolor( arg1
, arg2
, arg3
);
3849 /* void RGBwritemask short s short s short s */
3852 gl_RGBwritemask(PyObject
*self
, PyObject
*args
)
3857 if (!getishortarg(args
, 3, 0, &arg1
))
3859 if (!getishortarg(args
, 3, 1, &arg2
))
3861 if (!getishortarg(args
, 3, 2, &arg3
))
3863 RGBwritemask( arg1
, arg2
, arg3
);
3868 /* void setcursor short s short s short s */
3871 gl_setcursor(PyObject
*self
, PyObject
*args
)
3876 if (!getishortarg(args
, 3, 0, &arg1
))
3878 if (!getishortarg(args
, 3, 1, &arg2
))
3880 if (!getishortarg(args
, 3, 2, &arg3
))
3882 setcursor( arg1
, arg2
, arg3
);
3887 /* void tie short s short s short s */
3890 gl_tie(PyObject
*self
, PyObject
*args
)
3895 if (!getishortarg(args
, 3, 0, &arg1
))
3897 if (!getishortarg(args
, 3, 1, &arg2
))
3899 if (!getishortarg(args
, 3, 2, &arg3
))
3901 tie( arg1
, arg2
, arg3
);
3906 /* void circfs short s short s short s */
3909 gl_circfs(PyObject
*self
, PyObject
*args
)
3914 if (!getishortarg(args
, 3, 0, &arg1
))
3916 if (!getishortarg(args
, 3, 1, &arg2
))
3918 if (!getishortarg(args
, 3, 2, &arg3
))
3920 circfs( arg1
, arg2
, arg3
);
3925 /* void circs short s short s short s */
3928 gl_circs(PyObject
*self
, PyObject
*args
)
3933 if (!getishortarg(args
, 3, 0, &arg1
))
3935 if (!getishortarg(args
, 3, 1, &arg2
))
3937 if (!getishortarg(args
, 3, 2, &arg3
))
3939 circs( arg1
, arg2
, arg3
);
3944 /* void cmovs short s short s short s */
3947 gl_cmovs(PyObject
*self
, PyObject
*args
)
3952 if (!getishortarg(args
, 3, 0, &arg1
))
3954 if (!getishortarg(args
, 3, 1, &arg2
))
3956 if (!getishortarg(args
, 3, 2, &arg3
))
3958 cmovs( arg1
, arg2
, arg3
);
3963 /* void draws short s short s short s */
3966 gl_draws(PyObject
*self
, PyObject
*args
)
3971 if (!getishortarg(args
, 3, 0, &arg1
))
3973 if (!getishortarg(args
, 3, 1, &arg2
))
3975 if (!getishortarg(args
, 3, 2, &arg3
))
3977 draws( arg1
, arg2
, arg3
);
3982 /* void moves short s short s short s */
3985 gl_moves(PyObject
*self
, PyObject
*args
)
3990 if (!getishortarg(args
, 3, 0, &arg1
))
3992 if (!getishortarg(args
, 3, 1, &arg2
))
3994 if (!getishortarg(args
, 3, 2, &arg3
))
3996 moves( arg1
, arg2
, arg3
);
4001 /* void pdrs short s short s short s */
4004 gl_pdrs(PyObject
*self
, PyObject
*args
)
4009 if (!getishortarg(args
, 3, 0, &arg1
))
4011 if (!getishortarg(args
, 3, 1, &arg2
))
4013 if (!getishortarg(args
, 3, 2, &arg3
))
4015 pdrs( arg1
, arg2
, arg3
);
4020 /* void pmvs short s short s short s */
4023 gl_pmvs(PyObject
*self
, PyObject
*args
)
4028 if (!getishortarg(args
, 3, 0, &arg1
))
4030 if (!getishortarg(args
, 3, 1, &arg2
))
4032 if (!getishortarg(args
, 3, 2, &arg3
))
4034 pmvs( arg1
, arg2
, arg3
);
4039 /* void pnts short s short s short s */
4042 gl_pnts(PyObject
*self
, PyObject
*args
)
4047 if (!getishortarg(args
, 3, 0, &arg1
))
4049 if (!getishortarg(args
, 3, 1, &arg2
))
4051 if (!getishortarg(args
, 3, 2, &arg3
))
4053 pnts( arg1
, arg2
, arg3
);
4058 /* void rdrs short s short s short s */
4061 gl_rdrs(PyObject
*self
, PyObject
*args
)
4066 if (!getishortarg(args
, 3, 0, &arg1
))
4068 if (!getishortarg(args
, 3, 1, &arg2
))
4070 if (!getishortarg(args
, 3, 2, &arg3
))
4072 rdrs( arg1
, arg2
, arg3
);
4077 /* void rmvs short s short s short s */
4080 gl_rmvs(PyObject
*self
, PyObject
*args
)
4085 if (!getishortarg(args
, 3, 0, &arg1
))
4087 if (!getishortarg(args
, 3, 1, &arg2
))
4089 if (!getishortarg(args
, 3, 2, &arg3
))
4091 rmvs( arg1
, arg2
, arg3
);
4096 /* void rpdrs short s short s short s */
4099 gl_rpdrs(PyObject
*self
, PyObject
*args
)
4104 if (!getishortarg(args
, 3, 0, &arg1
))
4106 if (!getishortarg(args
, 3, 1, &arg2
))
4108 if (!getishortarg(args
, 3, 2, &arg3
))
4110 rpdrs( arg1
, arg2
, arg3
);
4115 /* void rpmvs short s short s short s */
4118 gl_rpmvs(PyObject
*self
, PyObject
*args
)
4123 if (!getishortarg(args
, 3, 0, &arg1
))
4125 if (!getishortarg(args
, 3, 1, &arg2
))
4127 if (!getishortarg(args
, 3, 2, &arg3
))
4129 rpmvs( arg1
, arg2
, arg3
);
4134 /* void xfpts short s short s short s */
4137 gl_xfpts(PyObject
*self
, PyObject
*args
)
4142 if (!getishortarg(args
, 3, 0, &arg1
))
4144 if (!getishortarg(args
, 3, 1, &arg2
))
4146 if (!getishortarg(args
, 3, 2, &arg3
))
4148 xfpts( arg1
, arg2
, arg3
);
4153 /* void curorigin short s short s short s */
4156 gl_curorigin(PyObject
*self
, PyObject
*args
)
4161 if (!getishortarg(args
, 3, 0, &arg1
))
4163 if (!getishortarg(args
, 3, 1, &arg2
))
4165 if (!getishortarg(args
, 3, 2, &arg3
))
4167 curorigin( arg1
, arg2
, arg3
);
4172 /* void cyclemap short s short s short s */
4175 gl_cyclemap(PyObject
*self
, PyObject
*args
)
4180 if (!getishortarg(args
, 3, 0, &arg1
))
4182 if (!getishortarg(args
, 3, 1, &arg2
))
4184 if (!getishortarg(args
, 3, 2, &arg3
))
4186 cyclemap( arg1
, arg2
, arg3
);
4191 /* void patch float s[4*4] float s[4*4] float s[4*4] */
4194 gl_patch(PyObject
*self
, PyObject
*args
)
4196 float arg1
[ 4 ] [ 4 ] ;
4197 float arg2
[ 4 ] [ 4 ] ;
4198 float arg3
[ 4 ] [ 4 ] ;
4199 if (!getifloatarray(args
, 3, 0, 4 * 4 , (float *) arg1
))
4201 if (!getifloatarray(args
, 3, 1, 4 * 4 , (float *) arg2
))
4203 if (!getifloatarray(args
, 3, 2, 4 * 4 , (float *) arg3
))
4205 patch( arg1
, arg2
, arg3
);
4210 /* void splf long s float s[3*arg1] u_short s[arg1] */
4213 gl_splf(PyObject
*self
, PyObject
*args
)
4216 float (* arg2
) [ 3 ] ;
4217 unsigned short * arg3
;
4218 if (!getilongarraysize(args
, 2, 0, &arg1
))
4221 if ((arg2
= (float(*)[3]) PyMem_NEW(float , 3 * arg1
)) == NULL
)
4222 return PyErr_NoMemory();
4223 if (!getifloatarray(args
, 2, 0, 3 * arg1
, (float *) arg2
))
4225 if ((arg3
= PyMem_NEW(unsigned short , arg1
)) == NULL
)
4226 return PyErr_NoMemory();
4227 if (!getishortarray(args
, 2, 1, arg1
, (short *) arg3
))
4229 splf( arg1
, arg2
, arg3
);
4236 /* void splf2 long s float s[2*arg1] u_short s[arg1] */
4239 gl_splf2(PyObject
*self
, PyObject
*args
)
4242 float (* arg2
) [ 2 ] ;
4243 unsigned short * arg3
;
4244 if (!getilongarraysize(args
, 2, 0, &arg1
))
4247 if ((arg2
= (float(*)[2]) PyMem_NEW(float , 2 * arg1
)) == NULL
)
4248 return PyErr_NoMemory();
4249 if (!getifloatarray(args
, 2, 0, 2 * arg1
, (float *) arg2
))
4251 if ((arg3
= PyMem_NEW(unsigned short , arg1
)) == NULL
)
4252 return PyErr_NoMemory();
4253 if (!getishortarray(args
, 2, 1, arg1
, (short *) arg3
))
4255 splf2( arg1
, arg2
, arg3
);
4262 /* void splfi long s long s[3*arg1] u_short s[arg1] */
4265 gl_splfi(PyObject
*self
, PyObject
*args
)
4268 long (* arg2
) [ 3 ] ;
4269 unsigned short * arg3
;
4270 if (!getilongarraysize(args
, 2, 0, &arg1
))
4273 if ((arg2
= (long(*)[3]) PyMem_NEW(long , 3 * arg1
)) == NULL
)
4274 return PyErr_NoMemory();
4275 if (!getilongarray(args
, 2, 0, 3 * arg1
, (long *) arg2
))
4277 if ((arg3
= PyMem_NEW(unsigned short , arg1
)) == NULL
)
4278 return PyErr_NoMemory();
4279 if (!getishortarray(args
, 2, 1, arg1
, (short *) arg3
))
4281 splfi( arg1
, arg2
, arg3
);
4288 /* void splf2i long s long s[2*arg1] u_short s[arg1] */
4291 gl_splf2i(PyObject
*self
, PyObject
*args
)
4294 long (* arg2
) [ 2 ] ;
4295 unsigned short * arg3
;
4296 if (!getilongarraysize(args
, 2, 0, &arg1
))
4299 if ((arg2
= (long(*)[2]) PyMem_NEW(long , 2 * arg1
)) == NULL
)
4300 return PyErr_NoMemory();
4301 if (!getilongarray(args
, 2, 0, 2 * arg1
, (long *) arg2
))
4303 if ((arg3
= PyMem_NEW(unsigned short , arg1
)) == NULL
)
4304 return PyErr_NoMemory();
4305 if (!getishortarray(args
, 2, 1, arg1
, (short *) arg3
))
4307 splf2i( arg1
, arg2
, arg3
);
4314 /* void splfs long s short s[3*arg1] u_short s[arg1] */
4317 gl_splfs(PyObject
*self
, PyObject
*args
)
4320 short (* arg2
) [ 3 ] ;
4321 unsigned short * arg3
;
4322 if (!getilongarraysize(args
, 2, 0, &arg1
))
4325 if ((arg2
= (short(*)[3]) PyMem_NEW(short , 3 * arg1
)) == NULL
)
4326 return PyErr_NoMemory();
4327 if (!getishortarray(args
, 2, 0, 3 * arg1
, (short *) arg2
))
4329 if ((arg3
= PyMem_NEW(unsigned short , arg1
)) == NULL
)
4330 return PyErr_NoMemory();
4331 if (!getishortarray(args
, 2, 1, arg1
, (short *) arg3
))
4333 splfs( arg1
, arg2
, arg3
);
4340 /* void splf2s long s short s[2*arg1] u_short s[arg1] */
4343 gl_splf2s(PyObject
*self
, PyObject
*args
)
4346 short (* arg2
) [ 2 ] ;
4347 unsigned short * arg3
;
4348 if (!getilongarraysize(args
, 2, 0, &arg1
))
4351 if ((arg2
= (short(*)[2]) PyMem_NEW(short , 2 * arg1
)) == NULL
)
4352 return PyErr_NoMemory();
4353 if (!getishortarray(args
, 2, 0, 2 * arg1
, (short *) arg2
))
4355 if ((arg3
= PyMem_NEW(unsigned short , arg1
)) == NULL
)
4356 return PyErr_NoMemory();
4357 if (!getishortarray(args
, 2, 1, arg1
, (short *) arg3
))
4359 splf2s( arg1
, arg2
, arg3
);
4366 /* void rpatch float s[4*4] float s[4*4] float s[4*4] float s[4*4] */
4369 gl_rpatch(PyObject
*self
, PyObject
*args
)
4371 float arg1
[ 4 ] [ 4 ] ;
4372 float arg2
[ 4 ] [ 4 ] ;
4373 float arg3
[ 4 ] [ 4 ] ;
4374 float arg4
[ 4 ] [ 4 ] ;
4375 if (!getifloatarray(args
, 4, 0, 4 * 4 , (float *) arg1
))
4377 if (!getifloatarray(args
, 4, 1, 4 * 4 , (float *) arg2
))
4379 if (!getifloatarray(args
, 4, 2, 4 * 4 , (float *) arg3
))
4381 if (!getifloatarray(args
, 4, 3, 4 * 4 , (float *) arg4
))
4383 rpatch( arg1
, arg2
, arg3
, arg4
);
4388 /* void ortho2 float s float s float s float s */
4391 gl_ortho2(PyObject
*self
, PyObject
*args
)
4397 if (!getifloatarg(args
, 4, 0, &arg1
))
4399 if (!getifloatarg(args
, 4, 1, &arg2
))
4401 if (!getifloatarg(args
, 4, 2, &arg3
))
4403 if (!getifloatarg(args
, 4, 3, &arg4
))
4405 ortho2( arg1
, arg2
, arg3
, arg4
);
4410 /* void rect float s float s float s float s */
4413 gl_rect(PyObject
*self
, PyObject
*args
)
4419 if (!getifloatarg(args
, 4, 0, &arg1
))
4421 if (!getifloatarg(args
, 4, 1, &arg2
))
4423 if (!getifloatarg(args
, 4, 2, &arg3
))
4425 if (!getifloatarg(args
, 4, 3, &arg4
))
4427 rect( arg1
, arg2
, arg3
, arg4
);
4432 /* void rectf float s float s float s float s */
4435 gl_rectf(PyObject
*self
, PyObject
*args
)
4441 if (!getifloatarg(args
, 4, 0, &arg1
))
4443 if (!getifloatarg(args
, 4, 1, &arg2
))
4445 if (!getifloatarg(args
, 4, 2, &arg3
))
4447 if (!getifloatarg(args
, 4, 3, &arg4
))
4449 rectf( arg1
, arg2
, arg3
, arg4
);
4454 /* void xfpt4 float s float s float s float s */
4457 gl_xfpt4(PyObject
*self
, PyObject
*args
)
4463 if (!getifloatarg(args
, 4, 0, &arg1
))
4465 if (!getifloatarg(args
, 4, 1, &arg2
))
4467 if (!getifloatarg(args
, 4, 2, &arg3
))
4469 if (!getifloatarg(args
, 4, 3, &arg4
))
4471 xfpt4( arg1
, arg2
, arg3
, arg4
);
4476 /* void textport short s short s short s short s */
4479 gl_textport(PyObject
*self
, PyObject
*args
)
4485 if (!getishortarg(args
, 4, 0, &arg1
))
4487 if (!getishortarg(args
, 4, 1, &arg2
))
4489 if (!getishortarg(args
, 4, 2, &arg3
))
4491 if (!getishortarg(args
, 4, 3, &arg4
))
4493 textport( arg1
, arg2
, arg3
, arg4
);
4498 /* void mapcolor short s short s short s short s */
4501 gl_mapcolor(PyObject
*self
, PyObject
*args
)
4507 if (!getishortarg(args
, 4, 0, &arg1
))
4509 if (!getishortarg(args
, 4, 1, &arg2
))
4511 if (!getishortarg(args
, 4, 2, &arg3
))
4513 if (!getishortarg(args
, 4, 3, &arg4
))
4515 mapcolor( arg1
, arg2
, arg3
, arg4
);
4520 /* void scrmask short s short s short s short s */
4523 gl_scrmask(PyObject
*self
, PyObject
*args
)
4529 if (!getishortarg(args
, 4, 0, &arg1
))
4531 if (!getishortarg(args
, 4, 1, &arg2
))
4533 if (!getishortarg(args
, 4, 2, &arg3
))
4535 if (!getishortarg(args
, 4, 3, &arg4
))
4537 scrmask( arg1
, arg2
, arg3
, arg4
);
4542 /* void setvaluator short s short s short s short s */
4545 gl_setvaluator(PyObject
*self
, PyObject
*args
)
4551 if (!getishortarg(args
, 4, 0, &arg1
))
4553 if (!getishortarg(args
, 4, 1, &arg2
))
4555 if (!getishortarg(args
, 4, 2, &arg3
))
4557 if (!getishortarg(args
, 4, 3, &arg4
))
4559 setvaluator( arg1
, arg2
, arg3
, arg4
);
4564 /* void viewport short s short s short s short s */
4567 gl_viewport(PyObject
*self
, PyObject
*args
)
4573 if (!getishortarg(args
, 4, 0, &arg1
))
4575 if (!getishortarg(args
, 4, 1, &arg2
))
4577 if (!getishortarg(args
, 4, 2, &arg3
))
4579 if (!getishortarg(args
, 4, 3, &arg4
))
4581 viewport( arg1
, arg2
, arg3
, arg4
);
4586 /* void shaderange short s short s short s short s */
4589 gl_shaderange(PyObject
*self
, PyObject
*args
)
4595 if (!getishortarg(args
, 4, 0, &arg1
))
4597 if (!getishortarg(args
, 4, 1, &arg2
))
4599 if (!getishortarg(args
, 4, 2, &arg3
))
4601 if (!getishortarg(args
, 4, 3, &arg4
))
4603 shaderange( arg1
, arg2
, arg3
, arg4
);
4608 /* void xfpt4s short s short s short s short s */
4611 gl_xfpt4s(PyObject
*self
, PyObject
*args
)
4617 if (!getishortarg(args
, 4, 0, &arg1
))
4619 if (!getishortarg(args
, 4, 1, &arg2
))
4621 if (!getishortarg(args
, 4, 2, &arg3
))
4623 if (!getishortarg(args
, 4, 3, &arg4
))
4625 xfpt4s( arg1
, arg2
, arg3
, arg4
);
4630 /* void rectfi long s long s long s long s */
4633 gl_rectfi(PyObject
*self
, PyObject
*args
)
4639 if (!getilongarg(args
, 4, 0, &arg1
))
4641 if (!getilongarg(args
, 4, 1, &arg2
))
4643 if (!getilongarg(args
, 4, 2, &arg3
))
4645 if (!getilongarg(args
, 4, 3, &arg4
))
4647 rectfi( arg1
, arg2
, arg3
, arg4
);
4652 /* void recti long s long s long s long s */
4655 gl_recti(PyObject
*self
, PyObject
*args
)
4661 if (!getilongarg(args
, 4, 0, &arg1
))
4663 if (!getilongarg(args
, 4, 1, &arg2
))
4665 if (!getilongarg(args
, 4, 2, &arg3
))
4667 if (!getilongarg(args
, 4, 3, &arg4
))
4669 recti( arg1
, arg2
, arg3
, arg4
);
4674 /* void xfpt4i long s long s long s long s */
4677 gl_xfpt4i(PyObject
*self
, PyObject
*args
)
4683 if (!getilongarg(args
, 4, 0, &arg1
))
4685 if (!getilongarg(args
, 4, 1, &arg2
))
4687 if (!getilongarg(args
, 4, 2, &arg3
))
4689 if (!getilongarg(args
, 4, 3, &arg4
))
4691 xfpt4i( arg1
, arg2
, arg3
, arg4
);
4696 /* void prefposition long s long s long s long s */
4699 gl_prefposition(PyObject
*self
, PyObject
*args
)
4705 if (!getilongarg(args
, 4, 0, &arg1
))
4707 if (!getilongarg(args
, 4, 1, &arg2
))
4709 if (!getilongarg(args
, 4, 2, &arg3
))
4711 if (!getilongarg(args
, 4, 3, &arg4
))
4713 prefposition( arg1
, arg2
, arg3
, arg4
);
4718 /* void arc float s float s float s short s short s */
4721 gl_arc(PyObject
*self
, PyObject
*args
)
4728 if (!getifloatarg(args
, 5, 0, &arg1
))
4730 if (!getifloatarg(args
, 5, 1, &arg2
))
4732 if (!getifloatarg(args
, 5, 2, &arg3
))
4734 if (!getishortarg(args
, 5, 3, &arg4
))
4736 if (!getishortarg(args
, 5, 4, &arg5
))
4738 arc( arg1
, arg2
, arg3
, arg4
, arg5
);
4743 /* void arcf float s float s float s short s short s */
4746 gl_arcf(PyObject
*self
, PyObject
*args
)
4753 if (!getifloatarg(args
, 5, 0, &arg1
))
4755 if (!getifloatarg(args
, 5, 1, &arg2
))
4757 if (!getifloatarg(args
, 5, 2, &arg3
))
4759 if (!getishortarg(args
, 5, 3, &arg4
))
4761 if (!getishortarg(args
, 5, 4, &arg5
))
4763 arcf( arg1
, arg2
, arg3
, arg4
, arg5
);
4768 /* void arcfi long s long s long s short s short s */
4771 gl_arcfi(PyObject
*self
, PyObject
*args
)
4778 if (!getilongarg(args
, 5, 0, &arg1
))
4780 if (!getilongarg(args
, 5, 1, &arg2
))
4782 if (!getilongarg(args
, 5, 2, &arg3
))
4784 if (!getishortarg(args
, 5, 3, &arg4
))
4786 if (!getishortarg(args
, 5, 4, &arg5
))
4788 arcfi( arg1
, arg2
, arg3
, arg4
, arg5
);
4793 /* void arci long s long s long s short s short s */
4796 gl_arci(PyObject
*self
, PyObject
*args
)
4803 if (!getilongarg(args
, 5, 0, &arg1
))
4805 if (!getilongarg(args
, 5, 1, &arg2
))
4807 if (!getilongarg(args
, 5, 2, &arg3
))
4809 if (!getishortarg(args
, 5, 3, &arg4
))
4811 if (!getishortarg(args
, 5, 4, &arg5
))
4813 arci( arg1
, arg2
, arg3
, arg4
, arg5
);
4818 /* void bbox2 short s short s float s float s float s float s */
4821 gl_bbox2(PyObject
*self
, PyObject
*args
)
4829 if (!getishortarg(args
, 6, 0, &arg1
))
4831 if (!getishortarg(args
, 6, 1, &arg2
))
4833 if (!getifloatarg(args
, 6, 2, &arg3
))
4835 if (!getifloatarg(args
, 6, 3, &arg4
))
4837 if (!getifloatarg(args
, 6, 4, &arg5
))
4839 if (!getifloatarg(args
, 6, 5, &arg6
))
4841 bbox2( arg1
, arg2
, arg3
, arg4
, arg5
, arg6
);
4846 /* void bbox2i short s short s long s long s long s long s */
4849 gl_bbox2i(PyObject
*self
, PyObject
*args
)
4857 if (!getishortarg(args
, 6, 0, &arg1
))
4859 if (!getishortarg(args
, 6, 1, &arg2
))
4861 if (!getilongarg(args
, 6, 2, &arg3
))
4863 if (!getilongarg(args
, 6, 3, &arg4
))
4865 if (!getilongarg(args
, 6, 4, &arg5
))
4867 if (!getilongarg(args
, 6, 5, &arg6
))
4869 bbox2i( arg1
, arg2
, arg3
, arg4
, arg5
, arg6
);
4874 /* void bbox2s short s short s short s short s short s short s */
4877 gl_bbox2s(PyObject
*self
, PyObject
*args
)
4885 if (!getishortarg(args
, 6, 0, &arg1
))
4887 if (!getishortarg(args
, 6, 1, &arg2
))
4889 if (!getishortarg(args
, 6, 2, &arg3
))
4891 if (!getishortarg(args
, 6, 3, &arg4
))
4893 if (!getishortarg(args
, 6, 4, &arg5
))
4895 if (!getishortarg(args
, 6, 5, &arg6
))
4897 bbox2s( arg1
, arg2
, arg3
, arg4
, arg5
, arg6
);
4902 /* void blink short s short s short s short s short s */
4905 gl_blink(PyObject
*self
, PyObject
*args
)
4912 if (!getishortarg(args
, 5, 0, &arg1
))
4914 if (!getishortarg(args
, 5, 1, &arg2
))
4916 if (!getishortarg(args
, 5, 2, &arg3
))
4918 if (!getishortarg(args
, 5, 3, &arg4
))
4920 if (!getishortarg(args
, 5, 4, &arg5
))
4922 blink( arg1
, arg2
, arg3
, arg4
, arg5
);
4927 /* void ortho float s float s float s float s float s float s */
4930 gl_ortho(PyObject
*self
, PyObject
*args
)
4938 if (!getifloatarg(args
, 6, 0, &arg1
))
4940 if (!getifloatarg(args
, 6, 1, &arg2
))
4942 if (!getifloatarg(args
, 6, 2, &arg3
))
4944 if (!getifloatarg(args
, 6, 3, &arg4
))
4946 if (!getifloatarg(args
, 6, 4, &arg5
))
4948 if (!getifloatarg(args
, 6, 5, &arg6
))
4950 ortho( arg1
, arg2
, arg3
, arg4
, arg5
, arg6
);
4955 /* void window float s float s float s float s float s float s */
4958 gl_window(PyObject
*self
, PyObject
*args
)
4966 if (!getifloatarg(args
, 6, 0, &arg1
))
4968 if (!getifloatarg(args
, 6, 1, &arg2
))
4970 if (!getifloatarg(args
, 6, 2, &arg3
))
4972 if (!getifloatarg(args
, 6, 3, &arg4
))
4974 if (!getifloatarg(args
, 6, 4, &arg5
))
4976 if (!getifloatarg(args
, 6, 5, &arg6
))
4978 window( arg1
, arg2
, arg3
, arg4
, arg5
, arg6
);
4983 /* void lookat float s float s float s float s float s float s short s */
4986 gl_lookat(PyObject
*self
, PyObject
*args
)
4995 if (!getifloatarg(args
, 7, 0, &arg1
))
4997 if (!getifloatarg(args
, 7, 1, &arg2
))
4999 if (!getifloatarg(args
, 7, 2, &arg3
))
5001 if (!getifloatarg(args
, 7, 3, &arg4
))
5003 if (!getifloatarg(args
, 7, 4, &arg5
))
5005 if (!getifloatarg(args
, 7, 5, &arg6
))
5007 if (!getishortarg(args
, 7, 6, &arg7
))
5009 lookat( arg1
, arg2
, arg3
, arg4
, arg5
, arg6
, arg7
);
5014 /* void perspective short s float s float s float s */
5017 gl_perspective(PyObject
*self
, PyObject
*args
)
5023 if (!getishortarg(args
, 4, 0, &arg1
))
5025 if (!getifloatarg(args
, 4, 1, &arg2
))
5027 if (!getifloatarg(args
, 4, 2, &arg3
))
5029 if (!getifloatarg(args
, 4, 3, &arg4
))
5031 perspective( arg1
, arg2
, arg3
, arg4
);
5036 /* void polarview float s short s short s short s */
5039 gl_polarview(PyObject
*self
, PyObject
*args
)
5045 if (!getifloatarg(args
, 4, 0, &arg1
))
5047 if (!getishortarg(args
, 4, 1, &arg2
))
5049 if (!getishortarg(args
, 4, 2, &arg3
))
5051 if (!getishortarg(args
, 4, 3, &arg4
))
5053 polarview( arg1
, arg2
, arg3
, arg4
);
5058 /* void arcfs short s short s short s short s short s */
5061 gl_arcfs(PyObject
*self
, PyObject
*args
)
5068 if (!getishortarg(args
, 5, 0, &arg1
))
5070 if (!getishortarg(args
, 5, 1, &arg2
))
5072 if (!getishortarg(args
, 5, 2, &arg3
))
5074 if (!getishortarg(args
, 5, 3, &arg4
))
5076 if (!getishortarg(args
, 5, 4, &arg5
))
5078 arcfs( arg1
, arg2
, arg3
, arg4
, arg5
);
5083 /* void arcs short s short s short s short s short s */
5086 gl_arcs(PyObject
*self
, PyObject
*args
)
5093 if (!getishortarg(args
, 5, 0, &arg1
))
5095 if (!getishortarg(args
, 5, 1, &arg2
))
5097 if (!getishortarg(args
, 5, 2, &arg3
))
5099 if (!getishortarg(args
, 5, 3, &arg4
))
5101 if (!getishortarg(args
, 5, 4, &arg5
))
5103 arcs( arg1
, arg2
, arg3
, arg4
, arg5
);
5108 /* void rectcopy short s short s short s short s short s short s */
5111 gl_rectcopy(PyObject
*self
, PyObject
*args
)
5119 if (!getishortarg(args
, 6, 0, &arg1
))
5121 if (!getishortarg(args
, 6, 1, &arg2
))
5123 if (!getishortarg(args
, 6, 2, &arg3
))
5125 if (!getishortarg(args
, 6, 3, &arg4
))
5127 if (!getishortarg(args
, 6, 4, &arg5
))
5129 if (!getishortarg(args
, 6, 5, &arg6
))
5131 rectcopy( arg1
, arg2
, arg3
, arg4
, arg5
, arg6
);
5136 /* void RGBcursor short s short s short s short s short s short s short s */
5139 gl_RGBcursor(PyObject
*self
, PyObject
*args
)
5148 if (!getishortarg(args
, 7, 0, &arg1
))
5150 if (!getishortarg(args
, 7, 1, &arg2
))
5152 if (!getishortarg(args
, 7, 2, &arg3
))
5154 if (!getishortarg(args
, 7, 3, &arg4
))
5156 if (!getishortarg(args
, 7, 4, &arg5
))
5158 if (!getishortarg(args
, 7, 5, &arg6
))
5160 if (!getishortarg(args
, 7, 6, &arg7
))
5162 RGBcursor( arg1
, arg2
, arg3
, arg4
, arg5
, arg6
, arg7
);
5167 /* long getbutton short s */
5170 gl_getbutton(PyObject
*self
, PyObject
*args
)
5174 if (!getishortarg(args
, 1, 0, &arg1
))
5176 retval
= getbutton( arg1
);
5177 return mknewlongobject(retval
);
5180 /* long getcmmode */
5183 gl_getcmmode(PyObject
*self
, PyObject
*args
)
5186 retval
= getcmmode( );
5187 return mknewlongobject(retval
);
5190 /* long getlsbackup */
5193 gl_getlsbackup(PyObject
*self
, PyObject
*args
)
5196 retval
= getlsbackup( );
5197 return mknewlongobject(retval
);
5200 /* long getresetls */
5203 gl_getresetls(PyObject
*self
, PyObject
*args
)
5206 retval
= getresetls( );
5207 return mknewlongobject(retval
);
5213 gl_getdcm(PyObject
*self
, PyObject
*args
)
5217 return mknewlongobject(retval
);
5220 /* long getzbuffer */
5223 gl_getzbuffer(PyObject
*self
, PyObject
*args
)
5226 retval
= getzbuffer( );
5227 return mknewlongobject(retval
);
5233 gl_ismex(PyObject
*self
, PyObject
*args
)
5237 return mknewlongobject(retval
);
5240 /* long isobj long s */
5243 gl_isobj(PyObject
*self
, PyObject
*args
)
5247 if (!getilongarg(args
, 1, 0, &arg1
))
5249 retval
= isobj( arg1
);
5250 return mknewlongobject(retval
);
5253 /* long isqueued short s */
5256 gl_isqueued(PyObject
*self
, PyObject
*args
)
5260 if (!getishortarg(args
, 1, 0, &arg1
))
5262 retval
= isqueued( arg1
);
5263 return mknewlongobject(retval
);
5266 /* long istag long s */
5269 gl_istag(PyObject
*self
, PyObject
*args
)
5273 if (!getilongarg(args
, 1, 0, &arg1
))
5275 retval
= istag( arg1
);
5276 return mknewlongobject(retval
);
5282 gl_genobj(PyObject
*self
, PyObject
*args
)
5286 return mknewlongobject(retval
);
5292 gl_gentag(PyObject
*self
, PyObject
*args
)
5296 return mknewlongobject(retval
);
5299 /* long getbuffer */
5302 gl_getbuffer(PyObject
*self
, PyObject
*args
)
5305 retval
= getbuffer( );
5306 return mknewlongobject(retval
);
5312 gl_getcolor(PyObject
*self
, PyObject
*args
)
5315 retval
= getcolor( );
5316 return mknewlongobject(retval
);
5319 /* long getdisplaymode */
5322 gl_getdisplaymode(PyObject
*self
, PyObject
*args
)
5325 retval
= getdisplaymode( );
5326 return mknewlongobject(retval
);
5332 gl_getfont(PyObject
*self
, PyObject
*args
)
5335 retval
= getfont( );
5336 return mknewlongobject(retval
);
5339 /* long getheight */
5342 gl_getheight(PyObject
*self
, PyObject
*args
)
5345 retval
= getheight( );
5346 return mknewlongobject(retval
);
5349 /* long gethitcode */
5352 gl_gethitcode(PyObject
*self
, PyObject
*args
)
5355 retval
= gethitcode( );
5356 return mknewlongobject(retval
);
5359 /* long getlstyle */
5362 gl_getlstyle(PyObject
*self
, PyObject
*args
)
5365 retval
= getlstyle( );
5366 return mknewlongobject(retval
);
5369 /* long getlwidth */
5372 gl_getlwidth(PyObject
*self
, PyObject
*args
)
5375 retval
= getlwidth( );
5376 return mknewlongobject(retval
);
5382 gl_getmap(PyObject
*self
, PyObject
*args
)
5386 return mknewlongobject(retval
);
5389 /* long getplanes */
5392 gl_getplanes(PyObject
*self
, PyObject
*args
)
5395 retval
= getplanes( );
5396 return mknewlongobject(retval
);
5399 /* long getwritemask */
5402 gl_getwritemask(PyObject
*self
, PyObject
*args
)
5405 retval
= getwritemask( );
5406 return mknewlongobject(retval
);
5412 gl_qtest(PyObject
*self
, PyObject
*args
)
5416 return mknewlongobject(retval
);
5419 /* long getlsrepeat */
5422 gl_getlsrepeat(PyObject
*self
, PyObject
*args
)
5425 retval
= getlsrepeat( );
5426 return mknewlongobject(retval
);
5429 /* long getmonitor */
5432 gl_getmonitor(PyObject
*self
, PyObject
*args
)
5435 retval
= getmonitor( );
5436 return mknewlongobject(retval
);
5439 /* long getopenobj */
5442 gl_getopenobj(PyObject
*self
, PyObject
*args
)
5445 retval
= getopenobj( );
5446 return mknewlongobject(retval
);
5449 /* long getpattern */
5452 gl_getpattern(PyObject
*self
, PyObject
*args
)
5455 retval
= getpattern( );
5456 return mknewlongobject(retval
);
5462 gl_winget(PyObject
*self
, PyObject
*args
)
5466 return mknewlongobject(retval
);
5469 /* long winattach */
5472 gl_winattach(PyObject
*self
, PyObject
*args
)
5475 retval
= winattach( );
5476 return mknewlongobject(retval
);
5479 /* long getothermonitor */
5482 gl_getothermonitor(PyObject
*self
, PyObject
*args
)
5485 retval
= getothermonitor( );
5486 return mknewlongobject(retval
);
5492 gl_newpup(PyObject
*self
, PyObject
*args
)
5496 return mknewlongobject(retval
);
5499 /* long getvaluator short s */
5502 gl_getvaluator(PyObject
*self
, PyObject
*args
)
5506 if (!getishortarg(args
, 1, 0, &arg1
))
5508 retval
= getvaluator( arg1
);
5509 return mknewlongobject(retval
);
5512 /* void winset long s */
5515 gl_winset(PyObject
*self
, PyObject
*args
)
5518 if (!getilongarg(args
, 1, 0, &arg1
))
5525 /* long dopup long s */
5528 gl_dopup(PyObject
*self
, PyObject
*args
)
5532 if (!getilongarg(args
, 1, 0, &arg1
))
5534 retval
= dopup( arg1
);
5535 return mknewlongobject(retval
);
5538 /* void getdepth short r short r */
5541 gl_getdepth(PyObject
*self
, PyObject
*args
)
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
));
5554 /* void getcpos short r short r */
5557 gl_getcpos(PyObject
*self
, PyObject
*args
)
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
));
5570 /* void getsize long r long r */
5573 gl_getsize(PyObject
*self
, PyObject
*args
)
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
));
5586 /* void getorigin long r long r */
5589 gl_getorigin(PyObject
*self
, PyObject
*args
)
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
));
5602 /* void getviewport short r short r short r short r */
5605 gl_getviewport(PyObject
*self
, PyObject
*args
)
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
));
5622 /* void gettp short r short r short r short r */
5625 gl_gettp(PyObject
*self
, PyObject
*args
)
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
));
5642 /* void getgpos float r float r float r float r */
5645 gl_getgpos(PyObject
*self
, PyObject
*args
)
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
));
5662 /* void winposition long s long s long s long s */
5665 gl_winposition(PyObject
*self
, PyObject
*args
)
5671 if (!getilongarg(args
, 4, 0, &arg1
))
5673 if (!getilongarg(args
, 4, 1, &arg2
))
5675 if (!getilongarg(args
, 4, 2, &arg3
))
5677 if (!getilongarg(args
, 4, 3, &arg4
))
5679 winposition( arg1
, arg2
, arg3
, arg4
);
5684 /* void gRGBcolor short r short r short r */
5687 gl_gRGBcolor(PyObject
*self
, PyObject
*args
)
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
));
5702 /* void gRGBmask short r short r short r */
5705 gl_gRGBmask(PyObject
*self
, PyObject
*args
)
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
));
5720 /* void getscrmask short r short r short r short r */
5723 gl_getscrmask(PyObject
*self
, PyObject
*args
)
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
));
5740 /* void getmcolor short s short r short r short r */
5743 gl_getmcolor(PyObject
*self
, PyObject
*args
)
5749 if (!getishortarg(args
, 1, 0, &arg1
))
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
));
5761 /* void mapw long s short s short s float r float r float r float r float r float r */
5764 gl_mapw(PyObject
*self
, PyObject
*args
)
5775 if (!getilongarg(args
, 3, 0, &arg1
))
5777 if (!getishortarg(args
, 3, 1, &arg2
))
5779 if (!getishortarg(args
, 3, 2, &arg3
))
5781 mapw( arg1
, arg2
, arg3
, & arg4
, & arg5
, & arg6
, & arg7
, & arg8
, & arg9
);
5782 { 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
));
5794 /* void mapw2 long s short s short s float r float r */
5797 gl_mapw2(PyObject
*self
, PyObject
*args
)
5804 if (!getilongarg(args
, 3, 0, &arg1
))
5806 if (!getishortarg(args
, 3, 1, &arg2
))
5808 if (!getishortarg(args
, 3, 2, &arg3
))
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
));
5819 /* void getcursor short r u_short r u_short r long r */
5822 gl_getcursor(PyObject
*self
, PyObject
*args
)
5825 unsigned short arg2
;
5826 unsigned short arg3
;
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
));
5842 gl_cmode(PyObject
*self
, PyObject
*args
)
5849 /* void concave long s */
5852 gl_concave(PyObject
*self
, PyObject
*args
)
5855 if (!getilongarg(args
, 1, 0, &arg1
))
5862 /* void curstype long s */
5865 gl_curstype(PyObject
*self
, PyObject
*args
)
5868 if (!getilongarg(args
, 1, 0, &arg1
))
5875 /* void drawmode long s */
5878 gl_drawmode(PyObject
*self
, PyObject
*args
)
5881 if (!getilongarg(args
, 1, 0, &arg1
))
5888 /* void gammaramp short s[256] short s[256] short s[256] */
5891 gl_gammaramp(PyObject
*self
, PyObject
*args
)
5893 short arg1
[ 256 ] ;
5894 short arg2
[ 256 ] ;
5895 short arg3
[ 256 ] ;
5896 if (!getishortarray(args
, 3, 0, 256 , arg1
))
5898 if (!getishortarray(args
, 3, 1, 256 , arg2
))
5900 if (!getishortarray(args
, 3, 2, 256 , arg3
))
5902 gammaramp( arg1
, arg2
, arg3
);
5907 /* long getbackface */
5910 gl_getbackface(PyObject
*self
, PyObject
*args
)
5913 retval
= getbackface( );
5914 return mknewlongobject(retval
);
5917 /* long getdescender */
5920 gl_getdescender(PyObject
*self
, PyObject
*args
)
5923 retval
= getdescender( );
5924 return mknewlongobject(retval
);
5927 /* long getdrawmode */
5930 gl_getdrawmode(PyObject
*self
, PyObject
*args
)
5933 retval
= getdrawmode( );
5934 return mknewlongobject(retval
);
5940 gl_getmmode(PyObject
*self
, PyObject
*args
)
5943 retval
= getmmode( );
5944 return mknewlongobject(retval
);
5950 gl_getsm(PyObject
*self
, PyObject
*args
)
5954 return mknewlongobject(retval
);
5957 /* long getvideo long s */
5960 gl_getvideo(PyObject
*self
, PyObject
*args
)
5964 if (!getilongarg(args
, 1, 0, &arg1
))
5966 retval
= getvideo( arg1
);
5967 return mknewlongobject(retval
);
5970 /* void imakebackground */
5973 gl_imakebackground(PyObject
*self
, PyObject
*args
)
5980 /* void lmbind short s short s */
5983 gl_lmbind(PyObject
*self
, PyObject
*args
)
5987 if (!getishortarg(args
, 2, 0, &arg1
))
5989 if (!getishortarg(args
, 2, 1, &arg2
))
5991 lmbind( arg1
, arg2
);
5996 /* void lmdef long s long s long s float s[arg3] */
5999 gl_lmdef(PyObject
*self
, PyObject
*args
)
6005 if (!getilongarg(args
, 3, 0, &arg1
))
6007 if (!getilongarg(args
, 3, 1, &arg2
))
6009 if (!getilongarraysize(args
, 3, 2, &arg3
))
6011 if ((arg4
= PyMem_NEW(float , arg3
)) == NULL
)
6012 return PyErr_NoMemory();
6013 if (!getifloatarray(args
, 3, 2, arg3
, arg4
))
6015 lmdef( arg1
, arg2
, arg3
, arg4
);
6021 /* void mmode long s */
6024 gl_mmode(PyObject
*self
, PyObject
*args
)
6027 if (!getilongarg(args
, 1, 0, &arg1
))
6034 /* void normal float s[3] */
6037 gl_normal(PyObject
*self
, PyObject
*args
)
6040 if (!getifloatarray(args
, 1, 0, 3 , arg1
))
6047 /* void overlay long s */
6050 gl_overlay(PyObject
*self
, PyObject
*args
)
6053 if (!getilongarg(args
, 1, 0, &arg1
))
6060 /* void RGBrange short s short s short s short s short s short s short s short s */
6063 gl_RGBrange(PyObject
*self
, PyObject
*args
)
6073 if (!getishortarg(args
, 8, 0, &arg1
))
6075 if (!getishortarg(args
, 8, 1, &arg2
))
6077 if (!getishortarg(args
, 8, 2, &arg3
))
6079 if (!getishortarg(args
, 8, 3, &arg4
))
6081 if (!getishortarg(args
, 8, 4, &arg5
))
6083 if (!getishortarg(args
, 8, 5, &arg6
))
6085 if (!getishortarg(args
, 8, 6, &arg7
))
6087 if (!getishortarg(args
, 8, 7, &arg8
))
6089 RGBrange( arg1
, arg2
, arg3
, arg4
, arg5
, arg6
, arg7
, arg8
);
6094 /* void setvideo long s long s */
6097 gl_setvideo(PyObject
*self
, PyObject
*args
)
6101 if (!getilongarg(args
, 2, 0, &arg1
))
6103 if (!getilongarg(args
, 2, 1, &arg2
))
6105 setvideo( arg1
, arg2
);
6110 /* void shademodel long s */
6113 gl_shademodel(PyObject
*self
, PyObject
*args
)
6116 if (!getilongarg(args
, 1, 0, &arg1
))
6123 /* void underlay long s */
6126 gl_underlay(PyObject
*self
, PyObject
*args
)
6129 if (!getilongarg(args
, 1, 0, &arg1
))
6136 /* void bgnclosedline */
6139 gl_bgnclosedline(PyObject
*self
, PyObject
*args
)
6149 gl_bgnline(PyObject
*self
, PyObject
*args
)
6159 gl_bgnpoint(PyObject
*self
, PyObject
*args
)
6166 /* void bgnpolygon */
6169 gl_bgnpolygon(PyObject
*self
, PyObject
*args
)
6176 /* void bgnsurface */
6179 gl_bgnsurface(PyObject
*self
, PyObject
*args
)
6189 gl_bgntmesh(PyObject
*self
, PyObject
*args
)
6199 gl_bgntrim(PyObject
*self
, PyObject
*args
)
6206 /* void endclosedline */
6209 gl_endclosedline(PyObject
*self
, PyObject
*args
)
6219 gl_endline(PyObject
*self
, PyObject
*args
)
6229 gl_endpoint(PyObject
*self
, PyObject
*args
)
6236 /* void endpolygon */
6239 gl_endpolygon(PyObject
*self
, PyObject
*args
)
6246 /* void endsurface */
6249 gl_endsurface(PyObject
*self
, PyObject
*args
)
6259 gl_endtmesh(PyObject
*self
, PyObject
*args
)
6269 gl_endtrim(PyObject
*self
, PyObject
*args
)
6276 /* void blendfunction long s long s */
6279 gl_blendfunction(PyObject
*self
, PyObject
*args
)
6283 if (!getilongarg(args
, 2, 0, &arg1
))
6285 if (!getilongarg(args
, 2, 1, &arg2
))
6287 blendfunction( arg1
, arg2
);
6292 /* void c3f float s[3] */
6295 gl_c3f(PyObject
*self
, PyObject
*args
)
6298 if (!getifloatarray(args
, 1, 0, 3 , arg1
))
6305 /* void c3i long s[3] */
6308 gl_c3i(PyObject
*self
, PyObject
*args
)
6311 if (!getilongarray(args
, 1, 0, 3 , arg1
))
6318 /* void c3s short s[3] */
6321 gl_c3s(PyObject
*self
, PyObject
*args
)
6324 if (!getishortarray(args
, 1, 0, 3 , arg1
))
6331 /* void c4f float s[4] */
6334 gl_c4f(PyObject
*self
, PyObject
*args
)
6337 if (!getifloatarray(args
, 1, 0, 4 , arg1
))
6344 /* void c4i long s[4] */
6347 gl_c4i(PyObject
*self
, PyObject
*args
)
6350 if (!getilongarray(args
, 1, 0, 4 , arg1
))
6357 /* void c4s short s[4] */
6360 gl_c4s(PyObject
*self
, PyObject
*args
)
6363 if (!getishortarray(args
, 1, 0, 4 , arg1
))
6370 /* void colorf float s */
6373 gl_colorf(PyObject
*self
, PyObject
*args
)
6376 if (!getifloatarg(args
, 1, 0, &arg1
))
6383 /* void cpack long s */
6386 gl_cpack(PyObject
*self
, PyObject
*args
)
6389 if (!getilongarg(args
, 1, 0, &arg1
))
6396 /* void czclear long s long s */
6399 gl_czclear(PyObject
*self
, PyObject
*args
)
6403 if (!getilongarg(args
, 2, 0, &arg1
))
6405 if (!getilongarg(args
, 2, 1, &arg2
))
6407 czclear( arg1
, arg2
);
6412 /* void dglclose long s */
6415 gl_dglclose(PyObject
*self
, PyObject
*args
)
6418 if (!getilongarg(args
, 1, 0, &arg1
))
6425 /* long dglopen char *s long s */
6428 gl_dglopen(PyObject
*self
, PyObject
*args
)
6433 if (!getistringarg(args
, 2, 0, &arg1
))
6435 if (!getilongarg(args
, 2, 1, &arg2
))
6437 retval
= dglopen( arg1
, arg2
);
6438 return mknewlongobject(retval
);
6441 /* long getgdesc long s */
6444 gl_getgdesc(PyObject
*self
, PyObject
*args
)
6448 if (!getilongarg(args
, 1, 0, &arg1
))
6450 retval
= getgdesc( arg1
);
6451 return mknewlongobject(retval
);
6454 /* void getnurbsproperty long s float r */
6457 gl_getnurbsproperty(PyObject
*self
, PyObject
*args
)
6461 if (!getilongarg(args
, 1, 0, &arg1
))
6463 getnurbsproperty( arg1
, & arg2
);
6464 return mknewfloatobject(arg2
);
6467 /* void glcompat long s long s */
6470 gl_glcompat(PyObject
*self
, PyObject
*args
)
6474 if (!getilongarg(args
, 2, 0, &arg1
))
6476 if (!getilongarg(args
, 2, 1, &arg2
))
6478 glcompat( arg1
, arg2
);
6483 /* void iconsize long s long s */
6486 gl_iconsize(PyObject
*self
, PyObject
*args
)
6490 if (!getilongarg(args
, 2, 0, &arg1
))
6492 if (!getilongarg(args
, 2, 1, &arg2
))
6494 iconsize( arg1
, arg2
);
6499 /* void icontitle char *s */
6502 gl_icontitle(PyObject
*self
, PyObject
*args
)
6505 if (!getistringarg(args
, 1, 0, &arg1
))
6512 /* void lRGBrange short s short s short s short s short s short s long s long s */
6515 gl_lRGBrange(PyObject
*self
, PyObject
*args
)
6525 if (!getishortarg(args
, 8, 0, &arg1
))
6527 if (!getishortarg(args
, 8, 1, &arg2
))
6529 if (!getishortarg(args
, 8, 2, &arg3
))
6531 if (!getishortarg(args
, 8, 3, &arg4
))
6533 if (!getishortarg(args
, 8, 4, &arg5
))
6535 if (!getishortarg(args
, 8, 5, &arg6
))
6537 if (!getilongarg(args
, 8, 6, &arg7
))
6539 if (!getilongarg(args
, 8, 7, &arg8
))
6541 lRGBrange( arg1
, arg2
, arg3
, arg4
, arg5
, arg6
, arg7
, arg8
);
6546 /* void linesmooth long s */
6549 gl_linesmooth(PyObject
*self
, PyObject
*args
)
6552 if (!getilongarg(args
, 1, 0, &arg1
))
6559 /* void lmcolor long s */
6562 gl_lmcolor(PyObject
*self
, PyObject
*args
)
6565 if (!getilongarg(args
, 1, 0, &arg1
))
6572 /* void logicop long s */
6575 gl_logicop(PyObject
*self
, PyObject
*args
)
6578 if (!getilongarg(args
, 1, 0, &arg1
))
6585 /* void lsetdepth long s long s */
6588 gl_lsetdepth(PyObject
*self
, PyObject
*args
)
6592 if (!getilongarg(args
, 2, 0, &arg1
))
6594 if (!getilongarg(args
, 2, 1, &arg2
))
6596 lsetdepth( arg1
, arg2
);
6601 /* void lshaderange short s short s long s long s */
6604 gl_lshaderange(PyObject
*self
, PyObject
*args
)
6610 if (!getishortarg(args
, 4, 0, &arg1
))
6612 if (!getishortarg(args
, 4, 1, &arg2
))
6614 if (!getilongarg(args
, 4, 2, &arg3
))
6616 if (!getilongarg(args
, 4, 3, &arg4
))
6618 lshaderange( arg1
, arg2
, arg3
, arg4
);
6623 /* void n3f float s[3] */
6626 gl_n3f(PyObject
*self
, PyObject
*args
)
6629 if (!getifloatarray(args
, 1, 0, 3 , arg1
))
6639 gl_noborder(PyObject
*self
, PyObject
*args
)
6646 /* void pntsmooth long s */
6649 gl_pntsmooth(PyObject
*self
, PyObject
*args
)
6652 if (!getilongarg(args
, 1, 0, &arg1
))
6659 /* void readsource long s */
6662 gl_readsource(PyObject
*self
, PyObject
*args
)
6665 if (!getilongarg(args
, 1, 0, &arg1
))
6672 /* void rectzoom float s float s */
6675 gl_rectzoom(PyObject
*self
, PyObject
*args
)
6679 if (!getifloatarg(args
, 2, 0, &arg1
))
6681 if (!getifloatarg(args
, 2, 1, &arg2
))
6683 rectzoom( arg1
, arg2
);
6688 /* void sbox float s float s float s float s */
6691 gl_sbox(PyObject
*self
, PyObject
*args
)
6697 if (!getifloatarg(args
, 4, 0, &arg1
))
6699 if (!getifloatarg(args
, 4, 1, &arg2
))
6701 if (!getifloatarg(args
, 4, 2, &arg3
))
6703 if (!getifloatarg(args
, 4, 3, &arg4
))
6705 sbox( arg1
, arg2
, arg3
, arg4
);
6710 /* void sboxi long s long s long s long s */
6713 gl_sboxi(PyObject
*self
, PyObject
*args
)
6719 if (!getilongarg(args
, 4, 0, &arg1
))
6721 if (!getilongarg(args
, 4, 1, &arg2
))
6723 if (!getilongarg(args
, 4, 2, &arg3
))
6725 if (!getilongarg(args
, 4, 3, &arg4
))
6727 sboxi( arg1
, arg2
, arg3
, arg4
);
6732 /* void sboxs short s short s short s short s */
6735 gl_sboxs(PyObject
*self
, PyObject
*args
)
6741 if (!getishortarg(args
, 4, 0, &arg1
))
6743 if (!getishortarg(args
, 4, 1, &arg2
))
6745 if (!getishortarg(args
, 4, 2, &arg3
))
6747 if (!getishortarg(args
, 4, 3, &arg4
))
6749 sboxs( arg1
, arg2
, arg3
, arg4
);
6754 /* void sboxf float s float s float s float s */
6757 gl_sboxf(PyObject
*self
, PyObject
*args
)
6763 if (!getifloatarg(args
, 4, 0, &arg1
))
6765 if (!getifloatarg(args
, 4, 1, &arg2
))
6767 if (!getifloatarg(args
, 4, 2, &arg3
))
6769 if (!getifloatarg(args
, 4, 3, &arg4
))
6771 sboxf( arg1
, arg2
, arg3
, arg4
);
6776 /* void sboxfi long s long s long s long s */
6779 gl_sboxfi(PyObject
*self
, PyObject
*args
)
6785 if (!getilongarg(args
, 4, 0, &arg1
))
6787 if (!getilongarg(args
, 4, 1, &arg2
))
6789 if (!getilongarg(args
, 4, 2, &arg3
))
6791 if (!getilongarg(args
, 4, 3, &arg4
))
6793 sboxfi( arg1
, arg2
, arg3
, arg4
);
6798 /* void sboxfs short s short s short s short s */
6801 gl_sboxfs(PyObject
*self
, PyObject
*args
)
6807 if (!getishortarg(args
, 4, 0, &arg1
))
6809 if (!getishortarg(args
, 4, 1, &arg2
))
6811 if (!getishortarg(args
, 4, 2, &arg3
))
6813 if (!getishortarg(args
, 4, 3, &arg4
))
6815 sboxfs( arg1
, arg2
, arg3
, arg4
);
6820 /* void setnurbsproperty long s float s */
6823 gl_setnurbsproperty(PyObject
*self
, PyObject
*args
)
6827 if (!getilongarg(args
, 2, 0, &arg1
))
6829 if (!getifloatarg(args
, 2, 1, &arg2
))
6831 setnurbsproperty( arg1
, arg2
);
6836 /* void setpup long s long s long s */
6839 gl_setpup(PyObject
*self
, PyObject
*args
)
6844 if (!getilongarg(args
, 3, 0, &arg1
))
6846 if (!getilongarg(args
, 3, 1, &arg2
))
6848 if (!getilongarg(args
, 3, 2, &arg3
))
6850 setpup( arg1
, arg2
, arg3
);
6855 /* void smoothline long s */
6858 gl_smoothline(PyObject
*self
, PyObject
*args
)
6861 if (!getilongarg(args
, 1, 0, &arg1
))
6868 /* void subpixel long s */
6871 gl_subpixel(PyObject
*self
, PyObject
*args
)
6874 if (!getilongarg(args
, 1, 0, &arg1
))
6881 /* void swaptmesh */
6884 gl_swaptmesh(PyObject
*self
, PyObject
*args
)
6891 /* long swinopen long s */
6894 gl_swinopen(PyObject
*self
, PyObject
*args
)
6898 if (!getilongarg(args
, 1, 0, &arg1
))
6900 retval
= swinopen( arg1
);
6901 return mknewlongobject(retval
);
6904 /* void v2f float s[2] */
6907 gl_v2f(PyObject
*self
, PyObject
*args
)
6910 if (!getifloatarray(args
, 1, 0, 2 , arg1
))
6917 /* void v2i long s[2] */
6920 gl_v2i(PyObject
*self
, PyObject
*args
)
6923 if (!getilongarray(args
, 1, 0, 2 , arg1
))
6930 /* void v2s short s[2] */
6933 gl_v2s(PyObject
*self
, PyObject
*args
)
6936 if (!getishortarray(args
, 1, 0, 2 , arg1
))
6943 /* void v3f float s[3] */
6946 gl_v3f(PyObject
*self
, PyObject
*args
)
6949 if (!getifloatarray(args
, 1, 0, 3 , arg1
))
6956 /* void v3i long s[3] */
6959 gl_v3i(PyObject
*self
, PyObject
*args
)
6962 if (!getilongarray(args
, 1, 0, 3 , arg1
))
6969 /* void v3s short s[3] */
6972 gl_v3s(PyObject
*self
, PyObject
*args
)
6975 if (!getishortarray(args
, 1, 0, 3 , arg1
))
6982 /* void v4f float s[4] */
6985 gl_v4f(PyObject
*self
, PyObject
*args
)
6988 if (!getifloatarray(args
, 1, 0, 4 , arg1
))
6995 /* void v4i long s[4] */
6998 gl_v4i(PyObject
*self
, PyObject
*args
)
7001 if (!getilongarray(args
, 1, 0, 4 , arg1
))
7008 /* void v4s short s[4] */
7011 gl_v4s(PyObject
*self
, PyObject
*args
)
7014 if (!getishortarray(args
, 1, 0, 4 , arg1
))
7021 /* void videocmd long s */
7024 gl_videocmd(PyObject
*self
, PyObject
*args
)
7027 if (!getilongarg(args
, 1, 0, &arg1
))
7034 /* long windepth long s */
7037 gl_windepth(PyObject
*self
, PyObject
*args
)
7041 if (!getilongarg(args
, 1, 0, &arg1
))
7043 retval
= windepth( arg1
);
7044 return mknewlongobject(retval
);
7047 /* void wmpack long s */
7050 gl_wmpack(PyObject
*self
, PyObject
*args
)
7053 if (!getilongarg(args
, 1, 0, &arg1
))
7060 /* void zdraw long s */
7063 gl_zdraw(PyObject
*self
, PyObject
*args
)
7066 if (!getilongarg(args
, 1, 0, &arg1
))
7073 /* void zfunction long s */
7076 gl_zfunction(PyObject
*self
, PyObject
*args
)
7079 if (!getilongarg(args
, 1, 0, &arg1
))
7086 /* void zsource long s */
7089 gl_zsource(PyObject
*self
, PyObject
*args
)
7092 if (!getilongarg(args
, 1, 0, &arg1
))
7099 /* void zwritemask long s */
7102 gl_zwritemask(PyObject
*self
, PyObject
*args
)
7105 if (!getilongarg(args
, 1, 0, &arg1
))
7112 /* void v2d double s[2] */
7115 gl_v2d(PyObject
*self
, PyObject
*args
)
7118 if (!getidoublearray(args
, 1, 0, 2 , arg1
))
7125 /* void v3d double s[3] */
7128 gl_v3d(PyObject
*self
, PyObject
*args
)
7131 if (!getidoublearray(args
, 1, 0, 3 , arg1
))
7138 /* void v4d double s[4] */
7141 gl_v4d(PyObject
*self
, PyObject
*args
)
7144 if (!getidoublearray(args
, 1, 0, 4 , arg1
))
7151 /* void pixmode long s long s */
7154 gl_pixmode(PyObject
*self
, PyObject
*args
)
7158 if (!getilongarg(args
, 2, 0, &arg1
))
7160 if (!getilongarg(args
, 2, 1, &arg2
))
7162 pixmode( arg1
, arg2
);
7170 gl_qgetfd(PyObject
*self
, PyObject
*args
)
7174 return mknewlongobject(retval
);
7177 /* void dither long s */
7180 gl_dither(PyObject
*self
, PyObject
*args
)
7183 if (!getilongarg(args
, 1, 0, &arg1
))
7190 static struct PyMethodDef gl_methods
[] = {
7191 {"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
},
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
},
7210 {"clear", gl_clear
},
7211 {"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
},
7219 {"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
},
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
},
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
},
7355 {"rpdr2", gl_rpdr2
},
7356 {"rpmv2", gl_rpmv2
},
7357 {"xfpt2", gl_xfpt2
},
7358 {"loadmatrix", gl_loadmatrix
},
7359 {"multmatrix", gl_multmatrix
},
7362 {"addtopup", gl_addtopup
},
7363 {"charstr", gl_charstr
},
7364 {"getport", gl_getport
},
7365 {"strwidth", gl_strwidth
},
7366 {"winopen", gl_winopen
},
7367 {"wintitle", gl_wintitle
},
7369 {"polf2", gl_polf2
},
7371 {"poly2", gl_poly2
},
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
},
7388 {"circfi", gl_circfi
},
7389 {"circi", gl_circi
},
7390 {"cmovi", gl_cmovi
},
7391 {"drawi", gl_drawi
},
7392 {"movei", gl_movei
},
7394 {"newtag", gl_newtag
},
7399 {"rpdri", gl_rpdri
},
7400 {"rpmvi", gl_rpmvi
},
7401 {"xfpti", gl_xfpti
},
7403 {"circf", gl_circf
},
7408 {"scale", gl_scale
},
7409 {"translate", gl_translate
},
7417 {"RGBcolor", gl_RGBcolor
},
7418 {"RGBwritemask", gl_RGBwritemask
},
7419 {"setcursor", gl_setcursor
},
7421 {"circfs", gl_circfs
},
7422 {"circs", gl_circs
},
7423 {"cmovs", gl_cmovs
},
7424 {"draws", gl_draws
},
7425 {"moves", gl_moves
},
7431 {"rpdrs", gl_rpdrs
},
7432 {"rpmvs", gl_rpmvs
},
7433 {"xfpts", gl_xfpts
},
7434 {"curorigin", gl_curorigin
},
7435 {"cyclemap", gl_cyclemap
},
7436 {"patch", gl_patch
},
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
},
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
},
7461 {"arcfi", gl_arcfi
},
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
},
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
},
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
},
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
},
7585 {"noborder", gl_noborder
},
7586 {"pntsmooth", gl_pntsmooth
},
7587 {"readsource", gl_readsource
},
7588 {"rectzoom", gl_rectzoom
},
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
},
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
},
7620 {"pixmode", gl_pixmode
},
7621 {"qgetfd", gl_qgetfd
},
7622 {"dither", gl_dither
},
7623 {NULL
, NULL
} /* Sentinel */
7629 (void) Py_InitModule("gl", gl_methods
);