1 /***********************************************************
2 Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam,
7 Permission to use, copy, modify, and distribute this software and its
8 documentation for any purpose and without fee is hereby granted,
9 provided that the above copyright notice appear in all copies and that
10 both that copyright notice and this permission notice appear in
11 supporting documentation, and that the names of Stichting Mathematisch
12 Centrum or CWI or Corporation for National Research Initiatives or
13 CNRI not be used in advertising or publicity pertaining to
14 distribution of the software without specific, written prior
17 While CWI is the initial source for this software, a modified version
18 is made available by the Corporation for National Research Initiatives
19 (CNRI) at the Internet address ftp://ftp.python.org.
21 STICHTING MATHEMATISCH CENTRUM AND CNRI DISCLAIM ALL WARRANTIES WITH
22 REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
23 MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH
24 CENTRUM OR CNRI BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
25 DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
26 PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
27 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
28 PERFORMANCE OF THIS SOFTWARE.
30 ******************************************************************/
33 Input used to generate the Python module "glmodule.c".
34 The stub generator is a Python script called "cgen.py".
36 Each definition must be contained on one line:
38 <returntype> <name> <type> <arg> <type> <arg>
40 <returntype> can be: void, short, long (XXX maybe others?)
42 <type> can be: char, string, short, float, long, or double
43 string indicates a null terminated string;
44 if <type> is char and <arg> begins with a *, the * is stripped
45 and <type> is changed into string
47 <arg> has the form <mode> or <mode>[<subscript>]
50 r: arg is received (arg is a pointer)
51 and <subscript> can be (N and I are numbers):
58 In the case where the subscript consists of two parts
59 separated by *, the first part is the width of the matrix, and
60 the second part is the length of the matrix. This order is
61 opposite from the order used in C to declare a two-dimensional
66 * An attempt has been made to make this module switch threads on qread
67 * calls. It is far from safe, though.
75 extern int textwritemask();
76 extern int pagewritemask();
82 #include "cgensupport.h"
85 Some stubs are too complicated for the stub generator.
86 We can include manually written versions of them here.
87 A line starting with '%' gives the name of the function so the stub
88 generator can include it in the table of functions.
99 Py_BEGIN_ALLOW_THREADS
100 retval
= qread( & arg1
);
102 { PyObject
*v
= PyTuple_New( 2 );
103 if (v
== NULL
) return NULL
;
104 PyTuple_SetItem(v
, 0, mknewlongobject(retval
));
105 PyTuple_SetItem(v
, 1, mknewshortobject(arg1
));
112 varray -- an array of v.. calls.
113 The argument is an array (maybe list or tuple) of points.
114 Each point must be a tuple or list of coordinates (x, y, z).
115 The points may be 2- or 3-dimensional but must all have the
116 same dimension. Float and int values may be mixed however.
117 The points are always converted to 3D double precision points
118 by assuming z=0.0 if necessary (as indicated in the man page),
119 and for each point v3d() is called.
124 gl_varray(self
, args
)
128 PyObject
*v
, *w
=NULL
;
131 PyObject
* (*getitem
) Py_FPROTO((PyObject
*, int));
133 if (!PyArg_GetObject(args
, 1, 0, &v
))
136 if (PyList_Check(v
)) {
138 getitem
= PyList_GetItem
;
140 else if (PyTuple_Check(v
)) {
142 getitem
= PyTuple_GetItem
;
154 w
= (*getitem
)(v
, 0);
159 else if (PyList_Check(w
)) {
160 width
= PyList_Size(w
);
162 else if (PyTuple_Check(w
)) {
163 width
= PyTuple_Size(w
);
177 for (i
= 0; i
< n
; i
++) {
178 w
= (*getitem
)(v
, i
);
179 if (!PyArg_GetDoubleArray(w
, 1, 0, width
, vec
))
189 vnarray, nvarray -- an array of n3f and v3f calls.
190 The argument is an array (list or tuple) of pairs of points and normals.
191 Each pair is a tuple (NOT a list) of a point and a normal for that point.
192 Each point or normal must be a tuple (NOT a list) of coordinates (x, y, z).
193 Three coordinates must be given. Float and int values may be mixed.
194 For each pair, n3f() is called for the normal, and then v3f() is called
197 vnarray and nvarray differ only in the order of the vector and normal in
198 the pair: vnarray expects (v, n) while nvarray expects (n, v).
201 static PyObject
*gen_nvarray(); /* Forward */
205 gl_nvarray(self
, args
)
209 return gen_nvarray(args
, 0);
214 gl_vnarray(self
, args
)
218 return gen_nvarray(args
, 1);
221 /* Generic, internal version of {nv,nv}array: inorm indicates the
222 argument order, 0: normal first, 1: vector first. */
225 gen_nvarray(args
, inorm
)
229 PyObject
*v
, *w
, *wnorm
, *wvec
;
231 float norm
[3], vec
[3];
232 PyObject
* (*getitem
) Py_FPROTO((PyObject
*, int));
234 if (!PyArg_GetObject(args
, 1, 0, &v
))
237 if (PyList_Check(v
)) {
239 getitem
= PyList_GetItem
;
241 else if (PyTuple_Check(v
)) {
243 getitem
= PyTuple_GetItem
;
250 for (i
= 0; i
< n
; i
++) {
251 w
= (*getitem
)(v
, i
);
252 if (!PyTuple_Check(w
) || PyTuple_Size(w
) != 2) {
256 wnorm
= PyTuple_GetItem(w
, inorm
);
257 wvec
= PyTuple_GetItem(w
, 1 - inorm
);
258 if (!PyArg_GetFloatArray(wnorm
, 1, 0, 3, norm
) ||
259 !PyArg_GetFloatArray(wvec
, 1, 0, 3, vec
))
269 /* nurbssurface(s_knots[], t_knots[], ctl[][], s_order, t_order, type).
270 The dimensions of ctl[] are computed as follows:
271 [len(s_knots) - s_order], [len(t_knots) - t_order]
276 gl_nurbssurface(self
, args
)
289 long s_byte_stride
, t_byte_stride
;
292 PyObject
*v
, *w
, *pt
;
294 if (!PyArg_GetLongArraySize(args
, 6, 0, &arg1
))
296 if ((arg2
= PyMem_NEW(double, arg1
)) == NULL
) {
297 return PyErr_NoMemory();
299 if (!PyArg_GetDoubleArray(args
, 6, 0, arg1
, arg2
))
301 if (!PyArg_GetLongArraySize(args
, 6, 1, &arg3
))
303 if ((arg4
= PyMem_NEW(double, arg3
)) == NULL
) {
304 return PyErr_NoMemory();
306 if (!PyArg_GetDoubleArray(args
, 6, 1, arg3
, arg4
))
308 if (!PyArg_GetLong(args
, 6, 3, &arg6
))
310 if (!PyArg_GetLong(args
, 6, 4, &arg7
))
312 if (!PyArg_GetLong(args
, 6, 5, &arg8
))
316 else if (arg8
== N_XYZW
)
322 s_nctl
= arg1
- arg6
;
323 t_nctl
= arg3
- arg7
;
324 if (!PyArg_GetObject(args
, 6, 2, &v
))
326 if (!PyList_Check(v
) || PyList_Size(v
) != s_nctl
) {
330 if ((arg5
= PyMem_NEW(double, s_nctl
*t_nctl
*ncoords
)) == NULL
) {
331 return PyErr_NoMemory();
334 for (s
= 0; s
< s_nctl
; s
++) {
335 w
= PyList_GetItem(v
, s
);
336 if (w
== NULL
|| !PyList_Check(w
) ||
337 PyList_Size(w
) != t_nctl
) {
341 for (t
= 0; t
< t_nctl
; t
++) {
342 pt
= PyList_GetItem(w
, t
);
343 if (!PyArg_GetDoubleArray(pt
, 1, 0, ncoords
, pnext
))
348 s_byte_stride
= sizeof(double) * ncoords
;
349 t_byte_stride
= s_byte_stride
* s_nctl
;
350 nurbssurface( arg1
, arg2
, arg3
, arg4
,
351 s_byte_stride
, t_byte_stride
, arg5
, arg6
, arg7
, arg8
);
359 /* nurbscurve(knots, ctlpoints, order, type).
360 The length of ctlpoints is len(knots)-order. */
364 gl_nurbscurve(self
, args
)
374 int ncoords
, npoints
;
378 if (!PyArg_GetLongArraySize(args
, 4, 0, &arg1
))
380 if ((arg2
= PyMem_NEW(double, arg1
)) == NULL
) {
381 return PyErr_NoMemory();
383 if (!PyArg_GetDoubleArray(args
, 4, 0, arg1
, arg2
))
385 if (!PyArg_GetLong(args
, 4, 2, &arg5
))
387 if (!PyArg_GetLong(args
, 4, 3, &arg6
))
391 else if (arg6
== N_STW
)
397 npoints
= arg1
- arg5
;
398 if (!PyArg_GetObject(args
, 4, 1, &v
))
400 if (!PyList_Check(v
) || PyList_Size(v
) != npoints
) {
404 if ((arg4
= 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 arg3
= (sizeof(double)) * ncoords
;
414 nurbscurve( arg1
, arg2
, arg3
, arg4
, arg5
, arg6
);
421 /* pwlcurve(points, type).
422 Points is a list of points. Type must be N_ST. */
426 gl_pwlcurve(self
, args
)
432 double *data
, *pnext
;
433 long npoints
, ncoords
;
435 if (!PyArg_GetObject(args
, 2, 0, &v
))
437 if (!PyArg_GetLong(args
, 2, 1, &type
))
439 if (!PyList_Check(v
)) {
443 npoints
= PyList_Size(v
);
450 if ((data
= PyMem_NEW(double, npoints
*ncoords
)) == NULL
) {
451 return PyErr_NoMemory();
454 for (i
= 0; i
< npoints
; i
++) {
455 if (!PyArg_GetDoubleArray(PyList_GetItem(v
, i
), 1, 0, ncoords
, pnext
))
459 pwlcurve(npoints
, data
, sizeof(double)*ncoords
, type
);
466 /* Picking and Selecting */
468 static short *pickbuffer
= NULL
;
469 static long pickbuffersize
;
472 pick_select(args
, func
)
476 if (!PyArg_GetLong(args
, 1, 0, &pickbuffersize
))
478 if (pickbuffer
!= NULL
) {
479 PyErr_SetString(PyExc_RuntimeError
,
480 "pick/gselect: already picking/selecting");
483 if ((pickbuffer
= PyMem_NEW(short, pickbuffersize
)) == NULL
) {
484 return PyErr_NoMemory();
486 (*func
)(pickbuffer
, pickbuffersize
);
492 endpick_select(args
, func
)
498 if (!PyArg_NoArgs(args
))
500 if (pickbuffer
== NULL
) {
501 PyErr_SetString(PyExc_RuntimeError
,
502 "endpick/endselect: not in pick/select mode");
505 nhits
= (*func
)(pickbuffer
);
507 nhits
= -nhits
; /* How to report buffer overflow otherwise? */
509 /* Scan the buffer to see how many integers */
511 for (; nhits
> 0; nhits
--) {
512 n
+= 1 + pickbuffer
[n
];
517 /* XXX Could do it nicer and interpret the data structure here,
518 returning a list of lists. But this can be done in Python... */
519 for (i
= 0; i
< n
; i
++) {
520 w
= PyInt_FromLong((long)pickbuffer
[i
]);
525 PyList_SetItem(v
, i
, w
);
527 PyMem_DEL(pickbuffer
);
532 extern void pick(), gselect();
533 extern long endpick(), endselect();
535 static PyObject
*gl_pick(self
, args
) PyObject
*self
, *args
; {
536 return pick_select(args
, pick
);
539 static PyObject
*gl_endpick(self
, args
) PyObject
*self
, *args
; {
540 return endpick_select(args
, endpick
);
543 static PyObject
*gl_gselect(self
, args
) PyObject
*self
, *args
; {
544 return pick_select(args
, gselect
);
547 static PyObject
*gl_endselect(self
, args
) PyObject
*self
, *args
; {
548 return endpick_select(args
, endselect
);
552 /* XXX The generator botches this one. Here's a quick hack to fix it. */
554 /* XXX The generator botches this one. Here's a quick hack to fix it. */
558 gl_getmatrix(self
, args
)
568 return PyErr_NoMemory();
570 for (i
= 0; i
< 4; i
++) for (j
= 0; j
< 4; j
++) {
571 w
= mknewfloatobject(arg1
[i
][j
]);
576 PyList_SetItem(v
, i
*4+j
, w
);
581 /* Here's an alternate version that returns a 4x4 matrix instead of
582 a vector. Unfortunately it is incompatible with loadmatrix and
587 gl_altgetmatrix(self
, args
)
599 for (i
= 0; i
< 4; i
++) {
605 PyList_SetItem(v
, i
, w
);
607 for (i
= 0; i
< 4; i
++) {
608 for (j
= 0; j
< 4; j
++) {
609 w
= mknewfloatobject(arg1
[i
][j
]);
614 PyList_SetItem(PyList_GetItem(v
, i
), j
, w
);
622 gl_lrectwrite(self
, args
)
635 if (!PyArg_GetShort(args
, 5, 0, &x1
))
637 if (!PyArg_GetShort(args
, 5, 1, &y1
))
639 if (!PyArg_GetShort(args
, 5, 2, &x2
))
641 if (!PyArg_GetShort(args
, 5, 3, &y2
))
643 if (!PyArg_GetString(args
, 5, 4, &parray
))
645 if (!PyArg_GetObject(args
, 5, 4, &s
))
648 /* Don't check this, it breaks experiments with pixmode(PM_SIZE, ...) */
649 pixcount
= (long)(x2
+1-x1
) * (long)(y2
+1-y1
);
650 if (!PyString_Check(s
) || PyString_Size(s
) != pixcount
*sizeof(long)) {
651 PyErr_SetString(PyExc_RuntimeError
,
652 "string arg to lrectwrite has wrong size");
656 lrectwrite( x1
, y1
, x2
, y2
, (unsigned long *) parray
);
663 gl_lrectread(self
, args
)
673 if (!PyArg_GetShort(args
, 4, 0, &x1
))
675 if (!PyArg_GetShort(args
, 4, 1, &y1
))
677 if (!PyArg_GetShort(args
, 4, 2, &x2
))
679 if (!PyArg_GetShort(args
, 4, 3, &y2
))
681 pixcount
= (long)(x2
+1-x1
) * (long)(y2
+1-y1
);
682 parray
= PyString_FromStringAndSize((char *)NULL
, pixcount
*sizeof(long));
684 return NULL
; /* No memory */
685 lrectread(x1
, y1
, x2
, y2
, (unsigned long *) PyString_AsString(parray
));
691 gl_readdisplay(self
, args
)
695 short x1
, y1
, x2
, y2
;
696 unsigned long *parray
, hints
;
700 if ( !PyArg_Parse(args
, "hhhhl", &x1
, &y1
, &x2
, &y2
, &hints
) )
702 size
= (long)(x2
+1-x1
) * (long)(y2
+1-y1
);
703 rv
= PyString_FromStringAndSize((char *)NULL
, size
*sizeof(long));
706 parray
= (unsigned long *)PyString_AsString(rv
);
707 size_ret
= readdisplay(x1
, y1
, x2
, y2
, parray
, hints
);
708 if ( size_ret
!= size
) {
709 printf("gl_readdisplay: got %ld pixels, expected %ld\n",
711 PyErr_SetString(PyExc_RuntimeError
, "readdisplay returned unexpected length");
717 /* Desperately needed, here are tools to compress and decompress
718 the data manipulated by lrectread/lrectwrite.
720 gl.packrect(width, height, packfactor, bigdata) --> smalldata
721 makes 'bigdata' 4*(packfactor**2) times smaller by:
722 - turning it into B/W (a factor 4)
723 - replacing squares of size pacfactor by one
726 gl.unpackrect(width, height, packfactor, smalldata) --> bigdata
727 is the inverse; the numeric arguments must be *the same*.
729 Both work best if width and height are multiples of packfactor
730 (in fact unpackrect will leave garbage bytes).
735 gl_packrect(self
, args
)
739 long width
, height
, packfactor
;
741 PyObject
*unpacked
, *packed
;
742 int pixcount
, packedcount
, x
, y
, r
, g
, b
;
745 unsigned long *parray
;
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, &unpacked
))
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(unpacked
) != pixcount
*sizeof(long)) {
764 PyErr_SetString(PyExc_RuntimeError
,
765 "string arg to packrect has wrong size");
768 packed
= PyString_FromStringAndSize((char *)NULL
, packedcount
);
771 parray
= (unsigned long *) PyString_AsString(unpacked
);
772 p
= (unsigned char *) PyString_AsString(packed
);
773 for (y
= 0; y
< height
; y
+= packfactor
, parray
+= packfactor
*width
) {
774 for (x
= 0; x
< width
; x
+= packfactor
) {
777 g
= (pixel
>> 8) & 0xff;
778 b
= (pixel
>> 16) & 0xff;
779 *p
++ = (30*r
+59*g
+11*b
) / 100;
786 static unsigned long unpacktab
[256];
787 static int unpacktab_inited
= 0;
790 gl_unpackrect(self
, args
)
794 long width
, height
, packfactor
;
796 PyObject
*unpacked
, *packed
;
797 int pixcount
, packedcount
;
798 register unsigned char *p
;
799 register unsigned long *parray
;
800 if (!unpacktab_inited
) {
802 for (white
= 256; --white
>= 0; )
803 unpacktab
[white
] = white
* 0x010101L
;
806 if (!PyArg_GetLong(args
, 4, 0, &width
))
808 if (!PyArg_GetLong(args
, 4, 1, &height
))
810 if (!PyArg_GetLong(args
, 4, 2, &packfactor
))
812 if (!PyArg_GetString(args
, 4, 3, &s
)) /* For type checking only */
814 if (!PyArg_GetObject(args
, 4, 3, &packed
))
816 if (width
<= 0 || height
<= 0 || packfactor
<= 0) {
817 PyErr_SetString(PyExc_RuntimeError
, "packrect args must be > 0");
820 pixcount
= width
*height
;
821 packedcount
= ((width
+packfactor
-1)/packfactor
) *
822 ((height
+packfactor
-1)/packfactor
);
823 if (PyString_Size(packed
) != packedcount
) {
824 PyErr_SetString(PyExc_RuntimeError
,
825 "string arg to unpackrect has wrong size");
828 unpacked
= PyString_FromStringAndSize((char *)NULL
, pixcount
*sizeof(long));
829 if (unpacked
== NULL
)
831 parray
= (unsigned long *) PyString_AsString(unpacked
);
832 p
= (unsigned char *) PyString_AsString(packed
);
833 if (packfactor
== 1 && width
*height
> 0) {
834 /* Just expand bytes to longs */
835 register int x
= width
* height
;
837 *parray
++ = unpacktab
[*p
++];
842 for (y
= 0; y
< height
-packfactor
+1;
843 y
+= packfactor
, parray
+= packfactor
*width
) {
845 for (x
= 0; x
< width
-packfactor
+1; x
+= packfactor
) {
846 register unsigned long pixel
= unpacktab
[*p
++];
848 for (i
= packfactor
*width
; (i
-=width
) >= 0;) {
850 for (j
= packfactor
; --j
>= 0; )
851 parray
[i
+x
+j
] = pixel
;
860 gl_gversion(self
, args
)
866 return PyString_FromString(buf
);
870 /* void clear - Manual because of clash with termcap */
881 /* End of manually written stubs */
887 gl_getshade(self
, args
)
892 retval
= getshade( );
893 return mknewlongobject(retval
);
896 /* void devport short s long s */
899 gl_devport(self
, args
)
905 if (!getishortarg(args
, 2, 0, &arg1
))
907 if (!getilongarg(args
, 2, 1, &arg2
))
909 devport( arg1
, arg2
);
914 /* void rdr2i long s long s */
923 if (!getilongarg(args
, 2, 0, &arg1
))
925 if (!getilongarg(args
, 2, 1, &arg2
))
927 rdr2i( arg1
, arg2
);
932 /* void rectfs short s short s short s short s */
935 gl_rectfs(self
, args
)
943 if (!getishortarg(args
, 4, 0, &arg1
))
945 if (!getishortarg(args
, 4, 1, &arg2
))
947 if (!getishortarg(args
, 4, 2, &arg3
))
949 if (!getishortarg(args
, 4, 3, &arg4
))
951 rectfs( arg1
, arg2
, arg3
, arg4
);
956 /* void rects short s short s short s short s */
967 if (!getishortarg(args
, 4, 0, &arg1
))
969 if (!getishortarg(args
, 4, 1, &arg2
))
971 if (!getishortarg(args
, 4, 2, &arg3
))
973 if (!getishortarg(args
, 4, 3, &arg4
))
975 rects( arg1
, arg2
, arg3
, arg4
);
980 /* void rmv2i long s long s */
989 if (!getilongarg(args
, 2, 0, &arg1
))
991 if (!getilongarg(args
, 2, 1, &arg2
))
993 rmv2i( arg1
, arg2
);
1001 gl_noport(self
, args
)
1010 /* void popviewport */
1013 gl_popviewport(self
, args
)
1022 /* void clearhitcode */
1025 gl_clearhitcode(self
, args
)
1037 gl_closeobj(self
, args
)
1049 gl_cursoff(self
, args
)
1061 gl_curson(self
, args
)
1070 /* void doublebuffer */
1073 gl_doublebuffer(self
, args
)
1085 gl_finish(self
, args
)
1097 gl_gconfig(self
, args
)
1109 gl_ginit(self
, args
)
1121 gl_greset(self
, args
)
1133 gl_multimap(self
, args
)
1145 gl_onemap(self
, args
)
1154 /* void popattributes */
1157 gl_popattributes(self
, args
)
1166 /* void popmatrix */
1169 gl_popmatrix(self
, args
)
1178 /* void pushattributes */
1181 gl_pushattributes(self
, args
)
1190 /* void pushmatrix */
1193 gl_pushmatrix(self
, args
)
1202 /* void pushviewport */
1205 gl_pushviewport(self
, args
)
1217 gl_qreset(self
, args
)
1229 gl_RGBmode(self
, args
)
1238 /* void singlebuffer */
1241 gl_singlebuffer(self
, args
)
1250 /* void swapbuffers */
1253 gl_swapbuffers(self
, args
)
1265 gl_gsync(self
, args
)
1277 gl_gflush(self
, args
)
1301 gl_tpoff(self
, args
)
1313 gl_clkon(self
, args
)
1325 gl_clkoff(self
, args
)
1337 gl_ringbell(self
, args
)
1349 gl_gbegin(self
, args
)
1361 gl_textinit(self
, args
)
1370 /* void initnames */
1373 gl_initnames(self
, args
)
1385 gl_pclos(self
, args
)
1397 gl_popname(self
, args
)
1409 gl_spclos(self
, args
)
1421 gl_zclear(self
, args
)
1430 /* void screenspace */
1433 gl_screenspace(self
, args
)
1442 /* void reshapeviewport */
1445 gl_reshapeviewport(self
, args
)
1457 gl_winpush(self
, args
)
1469 gl_winpop(self
, args
)
1478 /* void foreground */
1481 gl_foreground(self
, args
)
1490 /* void endfullscrn */
1493 gl_endfullscrn(self
, args
)
1502 /* void endpupmode */
1505 gl_endpupmode(self
, args
)
1517 gl_fullscrn(self
, args
)
1529 gl_pupmode(self
, args
)
1538 /* void winconstraints */
1541 gl_winconstraints(self
, args
)
1550 /* void pagecolor short s */
1553 gl_pagecolor(self
, args
)
1558 if (!getishortarg(args
, 1, 0, &arg1
))
1565 /* void textcolor short s */
1568 gl_textcolor(self
, args
)
1573 if (!getishortarg(args
, 1, 0, &arg1
))
1580 /* void color short s */
1583 gl_color(self
, args
)
1588 if (!getishortarg(args
, 1, 0, &arg1
))
1595 /* void curveit short s */
1598 gl_curveit(self
, args
)
1603 if (!getishortarg(args
, 1, 0, &arg1
))
1610 /* void font short s */
1618 if (!getishortarg(args
, 1, 0, &arg1
))
1625 /* void linewidth short s */
1628 gl_linewidth(self
, args
)
1633 if (!getishortarg(args
, 1, 0, &arg1
))
1640 /* void setlinestyle short s */
1643 gl_setlinestyle(self
, args
)
1648 if (!getishortarg(args
, 1, 0, &arg1
))
1650 setlinestyle( arg1
);
1655 /* void setmap short s */
1658 gl_setmap(self
, args
)
1663 if (!getishortarg(args
, 1, 0, &arg1
))
1670 /* void swapinterval short s */
1673 gl_swapinterval(self
, args
)
1678 if (!getishortarg(args
, 1, 0, &arg1
))
1680 swapinterval( arg1
);
1685 /* void writemask short s */
1688 gl_writemask(self
, args
)
1693 if (!getishortarg(args
, 1, 0, &arg1
))
1700 /* void textwritemask short s */
1703 gl_textwritemask(self
, args
)
1708 if (!getishortarg(args
, 1, 0, &arg1
))
1710 textwritemask( arg1
);
1715 /* void qdevice short s */
1718 gl_qdevice(self
, args
)
1723 if (!getishortarg(args
, 1, 0, &arg1
))
1730 /* void unqdevice short s */
1733 gl_unqdevice(self
, args
)
1738 if (!getishortarg(args
, 1, 0, &arg1
))
1745 /* void curvebasis short s */
1748 gl_curvebasis(self
, args
)
1753 if (!getishortarg(args
, 1, 0, &arg1
))
1760 /* void curveprecision short s */
1763 gl_curveprecision(self
, args
)
1768 if (!getishortarg(args
, 1, 0, &arg1
))
1770 curveprecision( arg1
);
1775 /* void loadname short s */
1778 gl_loadname(self
, args
)
1783 if (!getishortarg(args
, 1, 0, &arg1
))
1790 /* void passthrough short s */
1793 gl_passthrough(self
, args
)
1798 if (!getishortarg(args
, 1, 0, &arg1
))
1800 passthrough( arg1
);
1805 /* void pushname short s */
1808 gl_pushname(self
, args
)
1813 if (!getishortarg(args
, 1, 0, &arg1
))
1820 /* void setmonitor short s */
1823 gl_setmonitor(self
, args
)
1828 if (!getishortarg(args
, 1, 0, &arg1
))
1835 /* void setshade short s */
1838 gl_setshade(self
, args
)
1843 if (!getishortarg(args
, 1, 0, &arg1
))
1850 /* void setpattern short s */
1853 gl_setpattern(self
, args
)
1858 if (!getishortarg(args
, 1, 0, &arg1
))
1865 /* void pagewritemask short s */
1868 gl_pagewritemask(self
, args
)
1873 if (!getishortarg(args
, 1, 0, &arg1
))
1875 pagewritemask( arg1
);
1880 /* void callobj long s */
1883 gl_callobj(self
, args
)
1888 if (!getilongarg(args
, 1, 0, &arg1
))
1895 /* void delobj long s */
1898 gl_delobj(self
, args
)
1903 if (!getilongarg(args
, 1, 0, &arg1
))
1910 /* void editobj long s */
1913 gl_editobj(self
, args
)
1918 if (!getilongarg(args
, 1, 0, &arg1
))
1925 /* void makeobj long s */
1928 gl_makeobj(self
, args
)
1933 if (!getilongarg(args
, 1, 0, &arg1
))
1940 /* void maketag long s */
1943 gl_maketag(self
, args
)
1948 if (!getilongarg(args
, 1, 0, &arg1
))
1955 /* void chunksize long s */
1958 gl_chunksize(self
, args
)
1963 if (!getilongarg(args
, 1, 0, &arg1
))
1970 /* void compactify long s */
1973 gl_compactify(self
, args
)
1978 if (!getilongarg(args
, 1, 0, &arg1
))
1985 /* void deltag long s */
1988 gl_deltag(self
, args
)
1993 if (!getilongarg(args
, 1, 0, &arg1
))
2000 /* void lsrepeat long s */
2003 gl_lsrepeat(self
, args
)
2008 if (!getilongarg(args
, 1, 0, &arg1
))
2015 /* void objinsert long s */
2018 gl_objinsert(self
, args
)
2023 if (!getilongarg(args
, 1, 0, &arg1
))
2030 /* void objreplace long s */
2033 gl_objreplace(self
, args
)
2038 if (!getilongarg(args
, 1, 0, &arg1
))
2045 /* void winclose long s */
2048 gl_winclose(self
, args
)
2053 if (!getilongarg(args
, 1, 0, &arg1
))
2060 /* void blanktime long s */
2063 gl_blanktime(self
, args
)
2068 if (!getilongarg(args
, 1, 0, &arg1
))
2075 /* void freepup long s */
2078 gl_freepup(self
, args
)
2083 if (!getilongarg(args
, 1, 0, &arg1
))
2090 /* void backbuffer long s */
2093 gl_backbuffer(self
, args
)
2098 if (!getilongarg(args
, 1, 0, &arg1
))
2105 /* void frontbuffer long s */
2108 gl_frontbuffer(self
, args
)
2113 if (!getilongarg(args
, 1, 0, &arg1
))
2115 frontbuffer( arg1
);
2120 /* void lsbackup long s */
2123 gl_lsbackup(self
, args
)
2128 if (!getilongarg(args
, 1, 0, &arg1
))
2135 /* void resetls long s */
2138 gl_resetls(self
, args
)
2143 if (!getilongarg(args
, 1, 0, &arg1
))
2150 /* void lampon long s */
2153 gl_lampon(self
, args
)
2158 if (!getilongarg(args
, 1, 0, &arg1
))
2165 /* void lampoff long s */
2168 gl_lampoff(self
, args
)
2173 if (!getilongarg(args
, 1, 0, &arg1
))
2180 /* void setbell long s */
2183 gl_setbell(self
, args
)
2188 if (!getilongarg(args
, 1, 0, &arg1
))
2195 /* void blankscreen long s */
2198 gl_blankscreen(self
, args
)
2203 if (!getilongarg(args
, 1, 0, &arg1
))
2205 blankscreen( arg1
);
2210 /* void depthcue long s */
2213 gl_depthcue(self
, args
)
2218 if (!getilongarg(args
, 1, 0, &arg1
))
2225 /* void zbuffer long s */
2228 gl_zbuffer(self
, args
)
2233 if (!getilongarg(args
, 1, 0, &arg1
))
2240 /* void backface long s */
2243 gl_backface(self
, args
)
2248 if (!getilongarg(args
, 1, 0, &arg1
))
2255 /* void cmov2i long s long s */
2258 gl_cmov2i(self
, args
)
2264 if (!getilongarg(args
, 2, 0, &arg1
))
2266 if (!getilongarg(args
, 2, 1, &arg2
))
2268 cmov2i( arg1
, arg2
);
2273 /* void draw2i long s long s */
2276 gl_draw2i(self
, args
)
2282 if (!getilongarg(args
, 2, 0, &arg1
))
2284 if (!getilongarg(args
, 2, 1, &arg2
))
2286 draw2i( arg1
, arg2
);
2291 /* void move2i long s long s */
2294 gl_move2i(self
, args
)
2300 if (!getilongarg(args
, 2, 0, &arg1
))
2302 if (!getilongarg(args
, 2, 1, &arg2
))
2304 move2i( arg1
, arg2
);
2309 /* void pnt2i long s long s */
2312 gl_pnt2i(self
, args
)
2318 if (!getilongarg(args
, 2, 0, &arg1
))
2320 if (!getilongarg(args
, 2, 1, &arg2
))
2322 pnt2i( arg1
, arg2
);
2327 /* void patchbasis long s long s */
2330 gl_patchbasis(self
, args
)
2336 if (!getilongarg(args
, 2, 0, &arg1
))
2338 if (!getilongarg(args
, 2, 1, &arg2
))
2340 patchbasis( arg1
, arg2
);
2345 /* void patchprecision long s long s */
2348 gl_patchprecision(self
, args
)
2354 if (!getilongarg(args
, 2, 0, &arg1
))
2356 if (!getilongarg(args
, 2, 1, &arg2
))
2358 patchprecision( arg1
, arg2
);
2363 /* void pdr2i long s long s */
2366 gl_pdr2i(self
, args
)
2372 if (!getilongarg(args
, 2, 0, &arg1
))
2374 if (!getilongarg(args
, 2, 1, &arg2
))
2376 pdr2i( arg1
, arg2
);
2381 /* void pmv2i long s long s */
2384 gl_pmv2i(self
, args
)
2390 if (!getilongarg(args
, 2, 0, &arg1
))
2392 if (!getilongarg(args
, 2, 1, &arg2
))
2394 pmv2i( arg1
, arg2
);
2399 /* void rpdr2i long s long s */
2402 gl_rpdr2i(self
, args
)
2408 if (!getilongarg(args
, 2, 0, &arg1
))
2410 if (!getilongarg(args
, 2, 1, &arg2
))
2412 rpdr2i( arg1
, arg2
);
2417 /* void rpmv2i long s long s */
2420 gl_rpmv2i(self
, args
)
2426 if (!getilongarg(args
, 2, 0, &arg1
))
2428 if (!getilongarg(args
, 2, 1, &arg2
))
2430 rpmv2i( arg1
, arg2
);
2435 /* void xfpt2i long s long s */
2438 gl_xfpt2i(self
, args
)
2444 if (!getilongarg(args
, 2, 0, &arg1
))
2446 if (!getilongarg(args
, 2, 1, &arg2
))
2448 xfpt2i( arg1
, arg2
);
2453 /* void objdelete long s long s */
2456 gl_objdelete(self
, args
)
2462 if (!getilongarg(args
, 2, 0, &arg1
))
2464 if (!getilongarg(args
, 2, 1, &arg2
))
2466 objdelete( arg1
, arg2
);
2471 /* void patchcurves long s long s */
2474 gl_patchcurves(self
, args
)
2480 if (!getilongarg(args
, 2, 0, &arg1
))
2482 if (!getilongarg(args
, 2, 1, &arg2
))
2484 patchcurves( arg1
, arg2
);
2489 /* void minsize long s long s */
2492 gl_minsize(self
, args
)
2498 if (!getilongarg(args
, 2, 0, &arg1
))
2500 if (!getilongarg(args
, 2, 1, &arg2
))
2502 minsize( arg1
, arg2
);
2507 /* void maxsize long s long s */
2510 gl_maxsize(self
, args
)
2516 if (!getilongarg(args
, 2, 0, &arg1
))
2518 if (!getilongarg(args
, 2, 1, &arg2
))
2520 maxsize( arg1
, arg2
);
2525 /* void keepaspect long s long s */
2528 gl_keepaspect(self
, args
)
2534 if (!getilongarg(args
, 2, 0, &arg1
))
2536 if (!getilongarg(args
, 2, 1, &arg2
))
2538 keepaspect( arg1
, arg2
);
2543 /* void prefsize long s long s */
2546 gl_prefsize(self
, args
)
2552 if (!getilongarg(args
, 2, 0, &arg1
))
2554 if (!getilongarg(args
, 2, 1, &arg2
))
2556 prefsize( arg1
, arg2
);
2561 /* void stepunit long s long s */
2564 gl_stepunit(self
, args
)
2570 if (!getilongarg(args
, 2, 0, &arg1
))
2572 if (!getilongarg(args
, 2, 1, &arg2
))
2574 stepunit( arg1
, arg2
);
2579 /* void fudge long s long s */
2582 gl_fudge(self
, args
)
2588 if (!getilongarg(args
, 2, 0, &arg1
))
2590 if (!getilongarg(args
, 2, 1, &arg2
))
2592 fudge( arg1
, arg2
);
2597 /* void winmove long s long s */
2600 gl_winmove(self
, args
)
2606 if (!getilongarg(args
, 2, 0, &arg1
))
2608 if (!getilongarg(args
, 2, 1, &arg2
))
2610 winmove( arg1
, arg2
);
2615 /* void attachcursor short s short s */
2618 gl_attachcursor(self
, args
)
2624 if (!getishortarg(args
, 2, 0, &arg1
))
2626 if (!getishortarg(args
, 2, 1, &arg2
))
2628 attachcursor( arg1
, arg2
);
2633 /* void deflinestyle short s short s */
2636 gl_deflinestyle(self
, args
)
2642 if (!getishortarg(args
, 2, 0, &arg1
))
2644 if (!getishortarg(args
, 2, 1, &arg2
))
2646 deflinestyle( arg1
, arg2
);
2651 /* void noise short s short s */
2654 gl_noise(self
, args
)
2660 if (!getishortarg(args
, 2, 0, &arg1
))
2662 if (!getishortarg(args
, 2, 1, &arg2
))
2664 noise( arg1
, arg2
);
2669 /* void picksize short s short s */
2672 gl_picksize(self
, args
)
2678 if (!getishortarg(args
, 2, 0, &arg1
))
2680 if (!getishortarg(args
, 2, 1, &arg2
))
2682 picksize( arg1
, arg2
);
2687 /* void qenter short s short s */
2690 gl_qenter(self
, args
)
2696 if (!getishortarg(args
, 2, 0, &arg1
))
2698 if (!getishortarg(args
, 2, 1, &arg2
))
2700 qenter( arg1
, arg2
);
2705 /* void setdepth short s short s */
2708 gl_setdepth(self
, args
)
2714 if (!getishortarg(args
, 2, 0, &arg1
))
2716 if (!getishortarg(args
, 2, 1, &arg2
))
2718 setdepth( arg1
, arg2
);
2723 /* void cmov2s short s short s */
2726 gl_cmov2s(self
, args
)
2732 if (!getishortarg(args
, 2, 0, &arg1
))
2734 if (!getishortarg(args
, 2, 1, &arg2
))
2736 cmov2s( arg1
, arg2
);
2741 /* void draw2s short s short s */
2744 gl_draw2s(self
, args
)
2750 if (!getishortarg(args
, 2, 0, &arg1
))
2752 if (!getishortarg(args
, 2, 1, &arg2
))
2754 draw2s( arg1
, arg2
);
2759 /* void move2s short s short s */
2762 gl_move2s(self
, args
)
2768 if (!getishortarg(args
, 2, 0, &arg1
))
2770 if (!getishortarg(args
, 2, 1, &arg2
))
2772 move2s( arg1
, arg2
);
2777 /* void pdr2s short s short s */
2780 gl_pdr2s(self
, args
)
2786 if (!getishortarg(args
, 2, 0, &arg1
))
2788 if (!getishortarg(args
, 2, 1, &arg2
))
2790 pdr2s( arg1
, arg2
);
2795 /* void pmv2s short s short s */
2798 gl_pmv2s(self
, args
)
2804 if (!getishortarg(args
, 2, 0, &arg1
))
2806 if (!getishortarg(args
, 2, 1, &arg2
))
2808 pmv2s( arg1
, arg2
);
2813 /* void pnt2s short s short s */
2816 gl_pnt2s(self
, args
)
2822 if (!getishortarg(args
, 2, 0, &arg1
))
2824 if (!getishortarg(args
, 2, 1, &arg2
))
2826 pnt2s( arg1
, arg2
);
2831 /* void rdr2s short s short s */
2834 gl_rdr2s(self
, args
)
2840 if (!getishortarg(args
, 2, 0, &arg1
))
2842 if (!getishortarg(args
, 2, 1, &arg2
))
2844 rdr2s( arg1
, arg2
);
2849 /* void rmv2s short s short s */
2852 gl_rmv2s(self
, args
)
2858 if (!getishortarg(args
, 2, 0, &arg1
))
2860 if (!getishortarg(args
, 2, 1, &arg2
))
2862 rmv2s( arg1
, arg2
);
2867 /* void rpdr2s short s short s */
2870 gl_rpdr2s(self
, args
)
2876 if (!getishortarg(args
, 2, 0, &arg1
))
2878 if (!getishortarg(args
, 2, 1, &arg2
))
2880 rpdr2s( arg1
, arg2
);
2885 /* void rpmv2s short s short s */
2888 gl_rpmv2s(self
, args
)
2894 if (!getishortarg(args
, 2, 0, &arg1
))
2896 if (!getishortarg(args
, 2, 1, &arg2
))
2898 rpmv2s( arg1
, arg2
);
2903 /* void xfpt2s short s short s */
2906 gl_xfpt2s(self
, args
)
2912 if (!getishortarg(args
, 2, 0, &arg1
))
2914 if (!getishortarg(args
, 2, 1, &arg2
))
2916 xfpt2s( arg1
, arg2
);
2921 /* void cmov2 float s float s */
2924 gl_cmov2(self
, args
)
2930 if (!getifloatarg(args
, 2, 0, &arg1
))
2932 if (!getifloatarg(args
, 2, 1, &arg2
))
2934 cmov2( arg1
, arg2
);
2939 /* void draw2 float s float s */
2942 gl_draw2(self
, args
)
2948 if (!getifloatarg(args
, 2, 0, &arg1
))
2950 if (!getifloatarg(args
, 2, 1, &arg2
))
2952 draw2( arg1
, arg2
);
2957 /* void move2 float s float s */
2960 gl_move2(self
, args
)
2966 if (!getifloatarg(args
, 2, 0, &arg1
))
2968 if (!getifloatarg(args
, 2, 1, &arg2
))
2970 move2( arg1
, arg2
);
2975 /* void pnt2 float s float s */
2984 if (!getifloatarg(args
, 2, 0, &arg1
))
2986 if (!getifloatarg(args
, 2, 1, &arg2
))
2988 pnt2( arg1
, arg2
);
2993 /* void pdr2 float s float s */
3002 if (!getifloatarg(args
, 2, 0, &arg1
))
3004 if (!getifloatarg(args
, 2, 1, &arg2
))
3006 pdr2( arg1
, arg2
);
3011 /* void pmv2 float s float s */
3020 if (!getifloatarg(args
, 2, 0, &arg1
))
3022 if (!getifloatarg(args
, 2, 1, &arg2
))
3024 pmv2( arg1
, arg2
);
3029 /* void rdr2 float s float s */
3038 if (!getifloatarg(args
, 2, 0, &arg1
))
3040 if (!getifloatarg(args
, 2, 1, &arg2
))
3042 rdr2( arg1
, arg2
);
3047 /* void rmv2 float s float s */
3056 if (!getifloatarg(args
, 2, 0, &arg1
))
3058 if (!getifloatarg(args
, 2, 1, &arg2
))
3060 rmv2( arg1
, arg2
);
3065 /* void rpdr2 float s float s */
3068 gl_rpdr2(self
, args
)
3074 if (!getifloatarg(args
, 2, 0, &arg1
))
3076 if (!getifloatarg(args
, 2, 1, &arg2
))
3078 rpdr2( arg1
, arg2
);
3083 /* void rpmv2 float s float s */
3086 gl_rpmv2(self
, args
)
3092 if (!getifloatarg(args
, 2, 0, &arg1
))
3094 if (!getifloatarg(args
, 2, 1, &arg2
))
3096 rpmv2( arg1
, arg2
);
3101 /* void xfpt2 float s float s */
3104 gl_xfpt2(self
, args
)
3110 if (!getifloatarg(args
, 2, 0, &arg1
))
3112 if (!getifloatarg(args
, 2, 1, &arg2
))
3114 xfpt2( arg1
, arg2
);
3119 /* void loadmatrix float s[4*4] */
3122 gl_loadmatrix(self
, args
)
3126 float arg1
[ 4 ] [ 4 ] ;
3127 if (!getifloatarray(args
, 1, 0, 4 * 4 , (float *) arg1
))
3134 /* void multmatrix float s[4*4] */
3137 gl_multmatrix(self
, args
)
3141 float arg1
[ 4 ] [ 4 ] ;
3142 if (!getifloatarray(args
, 1, 0, 4 * 4 , (float *) arg1
))
3149 /* void crv float s[3*4] */
3156 float arg1
[ 4 ] [ 3 ] ;
3157 if (!getifloatarray(args
, 1, 0, 3 * 4 , (float *) arg1
))
3164 /* void rcrv float s[4*4] */
3171 float arg1
[ 4 ] [ 4 ] ;
3172 if (!getifloatarray(args
, 1, 0, 4 * 4 , (float *) arg1
))
3179 /* void addtopup long s char *s long s */
3182 gl_addtopup(self
, args
)
3189 if (!getilongarg(args
, 3, 0, &arg1
))
3191 if (!getistringarg(args
, 3, 1, &arg2
))
3193 if (!getilongarg(args
, 3, 2, &arg3
))
3195 addtopup( arg1
, arg2
, arg3
);
3200 /* void charstr char *s */
3203 gl_charstr(self
, args
)
3208 if (!getistringarg(args
, 1, 0, &arg1
))
3215 /* void getport char *s */
3218 gl_getport(self
, args
)
3223 if (!getistringarg(args
, 1, 0, &arg1
))
3230 /* long strwidth char *s */
3233 gl_strwidth(self
, args
)
3239 if (!getistringarg(args
, 1, 0, &arg1
))
3241 retval
= strwidth( arg1
);
3242 return mknewlongobject(retval
);
3245 /* long winopen char *s */
3248 gl_winopen(self
, args
)
3254 if (!getistringarg(args
, 1, 0, &arg1
))
3256 retval
= winopen( arg1
);
3257 return mknewlongobject(retval
);
3260 /* void wintitle char *s */
3263 gl_wintitle(self
, args
)
3268 if (!getistringarg(args
, 1, 0, &arg1
))
3275 /* void polf long s float s[3*arg1] */
3283 float (* arg2
) [ 3 ] ;
3284 if (!getilongarraysize(args
, 1, 0, &arg1
))
3287 if ((arg2
= (float(*)[3]) PyMem_NEW(float , 3 * arg1
)) == NULL
)
3288 return PyErr_NoMemory();
3289 if (!getifloatarray(args
, 1, 0, 3 * arg1
, (float *) arg2
))
3291 polf( arg1
, arg2
);
3297 /* void polf2 long s float s[2*arg1] */
3300 gl_polf2(self
, args
)
3305 float (* arg2
) [ 2 ] ;
3306 if (!getilongarraysize(args
, 1, 0, &arg1
))
3309 if ((arg2
= (float(*)[2]) PyMem_NEW(float , 2 * arg1
)) == NULL
)
3310 return PyErr_NoMemory();
3311 if (!getifloatarray(args
, 1, 0, 2 * arg1
, (float *) arg2
))
3313 polf2( arg1
, arg2
);
3319 /* void poly long s float s[3*arg1] */
3327 float (* arg2
) [ 3 ] ;
3328 if (!getilongarraysize(args
, 1, 0, &arg1
))
3331 if ((arg2
= (float(*)[3]) PyMem_NEW(float , 3 * arg1
)) == NULL
)
3332 return PyErr_NoMemory();
3333 if (!getifloatarray(args
, 1, 0, 3 * arg1
, (float *) arg2
))
3335 poly( arg1
, arg2
);
3341 /* void poly2 long s float s[2*arg1] */
3344 gl_poly2(self
, args
)
3349 float (* arg2
) [ 2 ] ;
3350 if (!getilongarraysize(args
, 1, 0, &arg1
))
3353 if ((arg2
= (float(*)[2]) PyMem_NEW(float , 2 * arg1
)) == NULL
)
3354 return PyErr_NoMemory();
3355 if (!getifloatarray(args
, 1, 0, 2 * arg1
, (float *) arg2
))
3357 poly2( arg1
, arg2
);
3363 /* void crvn long s float s[3*arg1] */
3371 float (* arg2
) [ 3 ] ;
3372 if (!getilongarraysize(args
, 1, 0, &arg1
))
3375 if ((arg2
= (float(*)[3]) PyMem_NEW(float , 3 * arg1
)) == NULL
)
3376 return PyErr_NoMemory();
3377 if (!getifloatarray(args
, 1, 0, 3 * arg1
, (float *) arg2
))
3379 crvn( arg1
, arg2
);
3385 /* void rcrvn long s float s[4*arg1] */
3388 gl_rcrvn(self
, args
)
3393 float (* arg2
) [ 4 ] ;
3394 if (!getilongarraysize(args
, 1, 0, &arg1
))
3397 if ((arg2
= (float(*)[4]) PyMem_NEW(float , 4 * arg1
)) == NULL
)
3398 return PyErr_NoMemory();
3399 if (!getifloatarray(args
, 1, 0, 4 * arg1
, (float *) arg2
))
3401 rcrvn( arg1
, arg2
);
3407 /* void polf2i long s long s[2*arg1] */
3410 gl_polf2i(self
, args
)
3415 long (* arg2
) [ 2 ] ;
3416 if (!getilongarraysize(args
, 1, 0, &arg1
))
3419 if ((arg2
= (long(*)[2]) PyMem_NEW(long , 2 * arg1
)) == NULL
)
3420 return PyErr_NoMemory();
3421 if (!getilongarray(args
, 1, 0, 2 * arg1
, (long *) arg2
))
3423 polf2i( arg1
, arg2
);
3429 /* void polfi long s long s[3*arg1] */
3432 gl_polfi(self
, args
)
3437 long (* arg2
) [ 3 ] ;
3438 if (!getilongarraysize(args
, 1, 0, &arg1
))
3441 if ((arg2
= (long(*)[3]) PyMem_NEW(long , 3 * arg1
)) == NULL
)
3442 return PyErr_NoMemory();
3443 if (!getilongarray(args
, 1, 0, 3 * arg1
, (long *) arg2
))
3445 polfi( arg1
, arg2
);
3451 /* void poly2i long s long s[2*arg1] */
3454 gl_poly2i(self
, args
)
3459 long (* arg2
) [ 2 ] ;
3460 if (!getilongarraysize(args
, 1, 0, &arg1
))
3463 if ((arg2
= (long(*)[2]) PyMem_NEW(long , 2 * arg1
)) == NULL
)
3464 return PyErr_NoMemory();
3465 if (!getilongarray(args
, 1, 0, 2 * arg1
, (long *) arg2
))
3467 poly2i( arg1
, arg2
);
3473 /* void polyi long s long s[3*arg1] */
3476 gl_polyi(self
, args
)
3481 long (* arg2
) [ 3 ] ;
3482 if (!getilongarraysize(args
, 1, 0, &arg1
))
3485 if ((arg2
= (long(*)[3]) PyMem_NEW(long , 3 * arg1
)) == NULL
)
3486 return PyErr_NoMemory();
3487 if (!getilongarray(args
, 1, 0, 3 * arg1
, (long *) arg2
))
3489 polyi( arg1
, arg2
);
3495 /* void polf2s long s short s[2*arg1] */
3498 gl_polf2s(self
, args
)
3503 short (* arg2
) [ 2 ] ;
3504 if (!getilongarraysize(args
, 1, 0, &arg1
))
3507 if ((arg2
= (short(*)[2]) PyMem_NEW(short , 2 * arg1
)) == NULL
)
3508 return PyErr_NoMemory();
3509 if (!getishortarray(args
, 1, 0, 2 * arg1
, (short *) arg2
))
3511 polf2s( arg1
, arg2
);
3517 /* void polfs long s short s[3*arg1] */
3520 gl_polfs(self
, args
)
3525 short (* arg2
) [ 3 ] ;
3526 if (!getilongarraysize(args
, 1, 0, &arg1
))
3529 if ((arg2
= (short(*)[3]) PyMem_NEW(short , 3 * arg1
)) == NULL
)
3530 return PyErr_NoMemory();
3531 if (!getishortarray(args
, 1, 0, 3 * arg1
, (short *) arg2
))
3533 polfs( arg1
, arg2
);
3539 /* void polys long s short s[3*arg1] */
3542 gl_polys(self
, args
)
3547 short (* arg2
) [ 3 ] ;
3548 if (!getilongarraysize(args
, 1, 0, &arg1
))
3551 if ((arg2
= (short(*)[3]) PyMem_NEW(short , 3 * arg1
)) == NULL
)
3552 return PyErr_NoMemory();
3553 if (!getishortarray(args
, 1, 0, 3 * arg1
, (short *) arg2
))
3555 polys( arg1
, arg2
);
3561 /* void poly2s long s short s[2*arg1] */
3564 gl_poly2s(self
, args
)
3569 short (* arg2
) [ 2 ] ;
3570 if (!getilongarraysize(args
, 1, 0, &arg1
))
3573 if ((arg2
= (short(*)[2]) PyMem_NEW(short , 2 * arg1
)) == NULL
)
3574 return PyErr_NoMemory();
3575 if (!getishortarray(args
, 1, 0, 2 * arg1
, (short *) arg2
))
3577 poly2s( arg1
, arg2
);
3583 /* void defcursor short s u_short s[128] */
3586 gl_defcursor(self
, args
)
3591 unsigned short arg2
[ 128 ] ;
3592 if (!getishortarg(args
, 2, 0, &arg1
))
3594 if (!getishortarray(args
, 2, 1, 128 , (short *) arg2
))
3596 defcursor( arg1
, arg2
);
3601 /* void writepixels short s u_short s[arg1] */
3604 gl_writepixels(self
, args
)
3609 unsigned short * arg2
;
3610 if (!getishortarraysize(args
, 1, 0, &arg1
))
3612 if ((arg2
= PyMem_NEW(unsigned short , arg1
)) == NULL
)
3613 return PyErr_NoMemory();
3614 if (!getishortarray(args
, 1, 0, arg1
, (short *) arg2
))
3616 writepixels( arg1
, arg2
);
3622 /* void defbasis long s float s[4*4] */
3625 gl_defbasis(self
, args
)
3630 float arg2
[ 4 ] [ 4 ] ;
3631 if (!getilongarg(args
, 2, 0, &arg1
))
3633 if (!getifloatarray(args
, 2, 1, 4 * 4 , (float *) arg2
))
3635 defbasis( arg1
, arg2
);
3640 /* void gewrite short s short s[arg1] */
3643 gl_gewrite(self
, args
)
3649 if (!getishortarraysize(args
, 1, 0, &arg1
))
3651 if ((arg2
= PyMem_NEW(short , arg1
)) == NULL
)
3652 return PyErr_NoMemory();
3653 if (!getishortarray(args
, 1, 0, arg1
, arg2
))
3655 gewrite( arg1
, arg2
);
3661 /* void rotate short s char s */
3664 gl_rotate(self
, args
)
3670 if (!getishortarg(args
, 2, 0, &arg1
))
3672 if (!getichararg(args
, 2, 1, &arg2
))
3674 rotate( arg1
, arg2
);
3679 /* void rot float s char s */
3688 if (!getifloatarg(args
, 2, 0, &arg1
))
3690 if (!getichararg(args
, 2, 1, &arg2
))
3697 /* void circfi long s long s long s */
3700 gl_circfi(self
, args
)
3707 if (!getilongarg(args
, 3, 0, &arg1
))
3709 if (!getilongarg(args
, 3, 1, &arg2
))
3711 if (!getilongarg(args
, 3, 2, &arg3
))
3713 circfi( arg1
, arg2
, arg3
);
3718 /* void circi long s long s long s */
3721 gl_circi(self
, args
)
3728 if (!getilongarg(args
, 3, 0, &arg1
))
3730 if (!getilongarg(args
, 3, 1, &arg2
))
3732 if (!getilongarg(args
, 3, 2, &arg3
))
3734 circi( arg1
, arg2
, arg3
);
3739 /* void cmovi long s long s long s */
3742 gl_cmovi(self
, args
)
3749 if (!getilongarg(args
, 3, 0, &arg1
))
3751 if (!getilongarg(args
, 3, 1, &arg2
))
3753 if (!getilongarg(args
, 3, 2, &arg3
))
3755 cmovi( arg1
, arg2
, arg3
);
3760 /* void drawi long s long s long s */
3763 gl_drawi(self
, args
)
3770 if (!getilongarg(args
, 3, 0, &arg1
))
3772 if (!getilongarg(args
, 3, 1, &arg2
))
3774 if (!getilongarg(args
, 3, 2, &arg3
))
3776 drawi( arg1
, arg2
, arg3
);
3781 /* void movei long s long s long s */
3784 gl_movei(self
, args
)
3791 if (!getilongarg(args
, 3, 0, &arg1
))
3793 if (!getilongarg(args
, 3, 1, &arg2
))
3795 if (!getilongarg(args
, 3, 2, &arg3
))
3797 movei( arg1
, arg2
, arg3
);
3802 /* void pnti long s long s long s */
3812 if (!getilongarg(args
, 3, 0, &arg1
))
3814 if (!getilongarg(args
, 3, 1, &arg2
))
3816 if (!getilongarg(args
, 3, 2, &arg3
))
3818 pnti( arg1
, arg2
, arg3
);
3823 /* void newtag long s long s long s */
3826 gl_newtag(self
, args
)
3833 if (!getilongarg(args
, 3, 0, &arg1
))
3835 if (!getilongarg(args
, 3, 1, &arg2
))
3837 if (!getilongarg(args
, 3, 2, &arg3
))
3839 newtag( arg1
, arg2
, arg3
);
3844 /* void pdri long s long s long s */
3854 if (!getilongarg(args
, 3, 0, &arg1
))
3856 if (!getilongarg(args
, 3, 1, &arg2
))
3858 if (!getilongarg(args
, 3, 2, &arg3
))
3860 pdri( arg1
, arg2
, arg3
);
3865 /* void pmvi long s long s long s */
3875 if (!getilongarg(args
, 3, 0, &arg1
))
3877 if (!getilongarg(args
, 3, 1, &arg2
))
3879 if (!getilongarg(args
, 3, 2, &arg3
))
3881 pmvi( arg1
, arg2
, arg3
);
3886 /* void rdri long s long s long s */
3896 if (!getilongarg(args
, 3, 0, &arg1
))
3898 if (!getilongarg(args
, 3, 1, &arg2
))
3900 if (!getilongarg(args
, 3, 2, &arg3
))
3902 rdri( arg1
, arg2
, arg3
);
3907 /* void rmvi long s long s long s */
3917 if (!getilongarg(args
, 3, 0, &arg1
))
3919 if (!getilongarg(args
, 3, 1, &arg2
))
3921 if (!getilongarg(args
, 3, 2, &arg3
))
3923 rmvi( arg1
, arg2
, arg3
);
3928 /* void rpdri long s long s long s */
3931 gl_rpdri(self
, args
)
3938 if (!getilongarg(args
, 3, 0, &arg1
))
3940 if (!getilongarg(args
, 3, 1, &arg2
))
3942 if (!getilongarg(args
, 3, 2, &arg3
))
3944 rpdri( arg1
, arg2
, arg3
);
3949 /* void rpmvi long s long s long s */
3952 gl_rpmvi(self
, args
)
3959 if (!getilongarg(args
, 3, 0, &arg1
))
3961 if (!getilongarg(args
, 3, 1, &arg2
))
3963 if (!getilongarg(args
, 3, 2, &arg3
))
3965 rpmvi( arg1
, arg2
, arg3
);
3970 /* void xfpti long s long s long s */
3973 gl_xfpti(self
, args
)
3980 if (!getilongarg(args
, 3, 0, &arg1
))
3982 if (!getilongarg(args
, 3, 1, &arg2
))
3984 if (!getilongarg(args
, 3, 2, &arg3
))
3986 xfpti( arg1
, arg2
, arg3
);
3991 /* void circ float s float s float s */
4001 if (!getifloatarg(args
, 3, 0, &arg1
))
4003 if (!getifloatarg(args
, 3, 1, &arg2
))
4005 if (!getifloatarg(args
, 3, 2, &arg3
))
4007 circ( arg1
, arg2
, arg3
);
4012 /* void circf float s float s float s */
4015 gl_circf(self
, args
)
4022 if (!getifloatarg(args
, 3, 0, &arg1
))
4024 if (!getifloatarg(args
, 3, 1, &arg2
))
4026 if (!getifloatarg(args
, 3, 2, &arg3
))
4028 circf( arg1
, arg2
, arg3
);
4033 /* void cmov float s float s float s */
4043 if (!getifloatarg(args
, 3, 0, &arg1
))
4045 if (!getifloatarg(args
, 3, 1, &arg2
))
4047 if (!getifloatarg(args
, 3, 2, &arg3
))
4049 cmov( arg1
, arg2
, arg3
);
4054 /* void draw float s float s float s */
4064 if (!getifloatarg(args
, 3, 0, &arg1
))
4066 if (!getifloatarg(args
, 3, 1, &arg2
))
4068 if (!getifloatarg(args
, 3, 2, &arg3
))
4070 draw( arg1
, arg2
, arg3
);
4075 /* void move float s float s float s */
4085 if (!getifloatarg(args
, 3, 0, &arg1
))
4087 if (!getifloatarg(args
, 3, 1, &arg2
))
4089 if (!getifloatarg(args
, 3, 2, &arg3
))
4091 move( arg1
, arg2
, arg3
);
4096 /* void pnt float s float s float s */
4106 if (!getifloatarg(args
, 3, 0, &arg1
))
4108 if (!getifloatarg(args
, 3, 1, &arg2
))
4110 if (!getifloatarg(args
, 3, 2, &arg3
))
4112 pnt( arg1
, arg2
, arg3
);
4117 /* void scale float s float s float s */
4120 gl_scale(self
, args
)
4127 if (!getifloatarg(args
, 3, 0, &arg1
))
4129 if (!getifloatarg(args
, 3, 1, &arg2
))
4131 if (!getifloatarg(args
, 3, 2, &arg3
))
4133 scale( arg1
, arg2
, arg3
);
4138 /* void translate float s float s float s */
4141 gl_translate(self
, args
)
4148 if (!getifloatarg(args
, 3, 0, &arg1
))
4150 if (!getifloatarg(args
, 3, 1, &arg2
))
4152 if (!getifloatarg(args
, 3, 2, &arg3
))
4154 translate( arg1
, arg2
, arg3
);
4159 /* void pdr float s float s float s */
4169 if (!getifloatarg(args
, 3, 0, &arg1
))
4171 if (!getifloatarg(args
, 3, 1, &arg2
))
4173 if (!getifloatarg(args
, 3, 2, &arg3
))
4175 pdr( arg1
, arg2
, arg3
);
4180 /* void pmv float s float s float s */
4190 if (!getifloatarg(args
, 3, 0, &arg1
))
4192 if (!getifloatarg(args
, 3, 1, &arg2
))
4194 if (!getifloatarg(args
, 3, 2, &arg3
))
4196 pmv( arg1
, arg2
, arg3
);
4201 /* void rdr float s float s float s */
4211 if (!getifloatarg(args
, 3, 0, &arg1
))
4213 if (!getifloatarg(args
, 3, 1, &arg2
))
4215 if (!getifloatarg(args
, 3, 2, &arg3
))
4217 rdr( arg1
, arg2
, arg3
);
4222 /* void rmv float s float s float s */
4232 if (!getifloatarg(args
, 3, 0, &arg1
))
4234 if (!getifloatarg(args
, 3, 1, &arg2
))
4236 if (!getifloatarg(args
, 3, 2, &arg3
))
4238 rmv( arg1
, arg2
, arg3
);
4243 /* void rpdr float s float s float s */
4253 if (!getifloatarg(args
, 3, 0, &arg1
))
4255 if (!getifloatarg(args
, 3, 1, &arg2
))
4257 if (!getifloatarg(args
, 3, 2, &arg3
))
4259 rpdr( arg1
, arg2
, arg3
);
4264 /* void rpmv float s float s float s */
4274 if (!getifloatarg(args
, 3, 0, &arg1
))
4276 if (!getifloatarg(args
, 3, 1, &arg2
))
4278 if (!getifloatarg(args
, 3, 2, &arg3
))
4280 rpmv( arg1
, arg2
, arg3
);
4285 /* void xfpt float s float s float s */
4295 if (!getifloatarg(args
, 3, 0, &arg1
))
4297 if (!getifloatarg(args
, 3, 1, &arg2
))
4299 if (!getifloatarg(args
, 3, 2, &arg3
))
4301 xfpt( arg1
, arg2
, arg3
);
4306 /* void RGBcolor short s short s short s */
4309 gl_RGBcolor(self
, args
)
4316 if (!getishortarg(args
, 3, 0, &arg1
))
4318 if (!getishortarg(args
, 3, 1, &arg2
))
4320 if (!getishortarg(args
, 3, 2, &arg3
))
4322 RGBcolor( arg1
, arg2
, arg3
);
4327 /* void RGBwritemask short s short s short s */
4330 gl_RGBwritemask(self
, args
)
4337 if (!getishortarg(args
, 3, 0, &arg1
))
4339 if (!getishortarg(args
, 3, 1, &arg2
))
4341 if (!getishortarg(args
, 3, 2, &arg3
))
4343 RGBwritemask( arg1
, arg2
, arg3
);
4348 /* void setcursor short s short s short s */
4351 gl_setcursor(self
, args
)
4358 if (!getishortarg(args
, 3, 0, &arg1
))
4360 if (!getishortarg(args
, 3, 1, &arg2
))
4362 if (!getishortarg(args
, 3, 2, &arg3
))
4364 setcursor( arg1
, arg2
, arg3
);
4369 /* void tie short s short s short s */
4379 if (!getishortarg(args
, 3, 0, &arg1
))
4381 if (!getishortarg(args
, 3, 1, &arg2
))
4383 if (!getishortarg(args
, 3, 2, &arg3
))
4385 tie( arg1
, arg2
, arg3
);
4390 /* void circfs short s short s short s */
4393 gl_circfs(self
, args
)
4400 if (!getishortarg(args
, 3, 0, &arg1
))
4402 if (!getishortarg(args
, 3, 1, &arg2
))
4404 if (!getishortarg(args
, 3, 2, &arg3
))
4406 circfs( arg1
, arg2
, arg3
);
4411 /* void circs short s short s short s */
4414 gl_circs(self
, args
)
4421 if (!getishortarg(args
, 3, 0, &arg1
))
4423 if (!getishortarg(args
, 3, 1, &arg2
))
4425 if (!getishortarg(args
, 3, 2, &arg3
))
4427 circs( arg1
, arg2
, arg3
);
4432 /* void cmovs short s short s short s */
4435 gl_cmovs(self
, args
)
4442 if (!getishortarg(args
, 3, 0, &arg1
))
4444 if (!getishortarg(args
, 3, 1, &arg2
))
4446 if (!getishortarg(args
, 3, 2, &arg3
))
4448 cmovs( arg1
, arg2
, arg3
);
4453 /* void draws short s short s short s */
4456 gl_draws(self
, args
)
4463 if (!getishortarg(args
, 3, 0, &arg1
))
4465 if (!getishortarg(args
, 3, 1, &arg2
))
4467 if (!getishortarg(args
, 3, 2, &arg3
))
4469 draws( arg1
, arg2
, arg3
);
4474 /* void moves short s short s short s */
4477 gl_moves(self
, args
)
4484 if (!getishortarg(args
, 3, 0, &arg1
))
4486 if (!getishortarg(args
, 3, 1, &arg2
))
4488 if (!getishortarg(args
, 3, 2, &arg3
))
4490 moves( arg1
, arg2
, arg3
);
4495 /* void pdrs short s short s short s */
4505 if (!getishortarg(args
, 3, 0, &arg1
))
4507 if (!getishortarg(args
, 3, 1, &arg2
))
4509 if (!getishortarg(args
, 3, 2, &arg3
))
4511 pdrs( arg1
, arg2
, arg3
);
4516 /* void pmvs short s short s short s */
4526 if (!getishortarg(args
, 3, 0, &arg1
))
4528 if (!getishortarg(args
, 3, 1, &arg2
))
4530 if (!getishortarg(args
, 3, 2, &arg3
))
4532 pmvs( arg1
, arg2
, arg3
);
4537 /* void pnts short s short s short s */
4547 if (!getishortarg(args
, 3, 0, &arg1
))
4549 if (!getishortarg(args
, 3, 1, &arg2
))
4551 if (!getishortarg(args
, 3, 2, &arg3
))
4553 pnts( arg1
, arg2
, arg3
);
4558 /* void rdrs short s short s short s */
4568 if (!getishortarg(args
, 3, 0, &arg1
))
4570 if (!getishortarg(args
, 3, 1, &arg2
))
4572 if (!getishortarg(args
, 3, 2, &arg3
))
4574 rdrs( arg1
, arg2
, arg3
);
4579 /* void rmvs short s short s short s */
4589 if (!getishortarg(args
, 3, 0, &arg1
))
4591 if (!getishortarg(args
, 3, 1, &arg2
))
4593 if (!getishortarg(args
, 3, 2, &arg3
))
4595 rmvs( arg1
, arg2
, arg3
);
4600 /* void rpdrs short s short s short s */
4603 gl_rpdrs(self
, args
)
4610 if (!getishortarg(args
, 3, 0, &arg1
))
4612 if (!getishortarg(args
, 3, 1, &arg2
))
4614 if (!getishortarg(args
, 3, 2, &arg3
))
4616 rpdrs( arg1
, arg2
, arg3
);
4621 /* void rpmvs short s short s short s */
4624 gl_rpmvs(self
, args
)
4631 if (!getishortarg(args
, 3, 0, &arg1
))
4633 if (!getishortarg(args
, 3, 1, &arg2
))
4635 if (!getishortarg(args
, 3, 2, &arg3
))
4637 rpmvs( arg1
, arg2
, arg3
);
4642 /* void xfpts short s short s short s */
4645 gl_xfpts(self
, args
)
4652 if (!getishortarg(args
, 3, 0, &arg1
))
4654 if (!getishortarg(args
, 3, 1, &arg2
))
4656 if (!getishortarg(args
, 3, 2, &arg3
))
4658 xfpts( arg1
, arg2
, arg3
);
4663 /* void curorigin short s short s short s */
4666 gl_curorigin(self
, args
)
4673 if (!getishortarg(args
, 3, 0, &arg1
))
4675 if (!getishortarg(args
, 3, 1, &arg2
))
4677 if (!getishortarg(args
, 3, 2, &arg3
))
4679 curorigin( arg1
, arg2
, arg3
);
4684 /* void cyclemap short s short s short s */
4687 gl_cyclemap(self
, args
)
4694 if (!getishortarg(args
, 3, 0, &arg1
))
4696 if (!getishortarg(args
, 3, 1, &arg2
))
4698 if (!getishortarg(args
, 3, 2, &arg3
))
4700 cyclemap( arg1
, arg2
, arg3
);
4705 /* void patch float s[4*4] float s[4*4] float s[4*4] */
4708 gl_patch(self
, args
)
4712 float arg1
[ 4 ] [ 4 ] ;
4713 float arg2
[ 4 ] [ 4 ] ;
4714 float arg3
[ 4 ] [ 4 ] ;
4715 if (!getifloatarray(args
, 3, 0, 4 * 4 , (float *) arg1
))
4717 if (!getifloatarray(args
, 3, 1, 4 * 4 , (float *) arg2
))
4719 if (!getifloatarray(args
, 3, 2, 4 * 4 , (float *) arg3
))
4721 patch( arg1
, arg2
, arg3
);
4726 /* void splf long s float s[3*arg1] u_short s[arg1] */
4734 float (* arg2
) [ 3 ] ;
4735 unsigned short * arg3
;
4736 if (!getilongarraysize(args
, 2, 0, &arg1
))
4739 if ((arg2
= (float(*)[3]) PyMem_NEW(float , 3 * arg1
)) == NULL
)
4740 return PyErr_NoMemory();
4741 if (!getifloatarray(args
, 2, 0, 3 * arg1
, (float *) arg2
))
4743 if ((arg3
= PyMem_NEW(unsigned short , arg1
)) == NULL
)
4744 return PyErr_NoMemory();
4745 if (!getishortarray(args
, 2, 1, arg1
, (short *) arg3
))
4747 splf( arg1
, arg2
, arg3
);
4754 /* void splf2 long s float s[2*arg1] u_short s[arg1] */
4757 gl_splf2(self
, args
)
4762 float (* arg2
) [ 2 ] ;
4763 unsigned short * arg3
;
4764 if (!getilongarraysize(args
, 2, 0, &arg1
))
4767 if ((arg2
= (float(*)[2]) PyMem_NEW(float , 2 * arg1
)) == NULL
)
4768 return PyErr_NoMemory();
4769 if (!getifloatarray(args
, 2, 0, 2 * arg1
, (float *) arg2
))
4771 if ((arg3
= PyMem_NEW(unsigned short , arg1
)) == NULL
)
4772 return PyErr_NoMemory();
4773 if (!getishortarray(args
, 2, 1, arg1
, (short *) arg3
))
4775 splf2( arg1
, arg2
, arg3
);
4782 /* void splfi long s long s[3*arg1] u_short s[arg1] */
4785 gl_splfi(self
, args
)
4790 long (* arg2
) [ 3 ] ;
4791 unsigned short * arg3
;
4792 if (!getilongarraysize(args
, 2, 0, &arg1
))
4795 if ((arg2
= (long(*)[3]) PyMem_NEW(long , 3 * arg1
)) == NULL
)
4796 return PyErr_NoMemory();
4797 if (!getilongarray(args
, 2, 0, 3 * arg1
, (long *) arg2
))
4799 if ((arg3
= PyMem_NEW(unsigned short , arg1
)) == NULL
)
4800 return PyErr_NoMemory();
4801 if (!getishortarray(args
, 2, 1, arg1
, (short *) arg3
))
4803 splfi( arg1
, arg2
, arg3
);
4810 /* void splf2i long s long s[2*arg1] u_short s[arg1] */
4813 gl_splf2i(self
, args
)
4818 long (* arg2
) [ 2 ] ;
4819 unsigned short * arg3
;
4820 if (!getilongarraysize(args
, 2, 0, &arg1
))
4823 if ((arg2
= (long(*)[2]) PyMem_NEW(long , 2 * arg1
)) == NULL
)
4824 return PyErr_NoMemory();
4825 if (!getilongarray(args
, 2, 0, 2 * arg1
, (long *) arg2
))
4827 if ((arg3
= PyMem_NEW(unsigned short , arg1
)) == NULL
)
4828 return PyErr_NoMemory();
4829 if (!getishortarray(args
, 2, 1, arg1
, (short *) arg3
))
4831 splf2i( arg1
, arg2
, arg3
);
4838 /* void splfs long s short s[3*arg1] u_short s[arg1] */
4841 gl_splfs(self
, args
)
4846 short (* arg2
) [ 3 ] ;
4847 unsigned short * arg3
;
4848 if (!getilongarraysize(args
, 2, 0, &arg1
))
4851 if ((arg2
= (short(*)[3]) PyMem_NEW(short , 3 * arg1
)) == NULL
)
4852 return PyErr_NoMemory();
4853 if (!getishortarray(args
, 2, 0, 3 * arg1
, (short *) arg2
))
4855 if ((arg3
= PyMem_NEW(unsigned short , arg1
)) == NULL
)
4856 return PyErr_NoMemory();
4857 if (!getishortarray(args
, 2, 1, arg1
, (short *) arg3
))
4859 splfs( arg1
, arg2
, arg3
);
4866 /* void splf2s long s short s[2*arg1] u_short s[arg1] */
4869 gl_splf2s(self
, args
)
4874 short (* arg2
) [ 2 ] ;
4875 unsigned short * arg3
;
4876 if (!getilongarraysize(args
, 2, 0, &arg1
))
4879 if ((arg2
= (short(*)[2]) PyMem_NEW(short , 2 * arg1
)) == NULL
)
4880 return PyErr_NoMemory();
4881 if (!getishortarray(args
, 2, 0, 2 * arg1
, (short *) arg2
))
4883 if ((arg3
= PyMem_NEW(unsigned short , arg1
)) == NULL
)
4884 return PyErr_NoMemory();
4885 if (!getishortarray(args
, 2, 1, arg1
, (short *) arg3
))
4887 splf2s( arg1
, arg2
, arg3
);
4894 /* void rpatch float s[4*4] float s[4*4] float s[4*4] float s[4*4] */
4897 gl_rpatch(self
, args
)
4901 float arg1
[ 4 ] [ 4 ] ;
4902 float arg2
[ 4 ] [ 4 ] ;
4903 float arg3
[ 4 ] [ 4 ] ;
4904 float arg4
[ 4 ] [ 4 ] ;
4905 if (!getifloatarray(args
, 4, 0, 4 * 4 , (float *) arg1
))
4907 if (!getifloatarray(args
, 4, 1, 4 * 4 , (float *) arg2
))
4909 if (!getifloatarray(args
, 4, 2, 4 * 4 , (float *) arg3
))
4911 if (!getifloatarray(args
, 4, 3, 4 * 4 , (float *) arg4
))
4913 rpatch( arg1
, arg2
, arg3
, arg4
);
4918 /* void ortho2 float s float s float s float s */
4921 gl_ortho2(self
, args
)
4929 if (!getifloatarg(args
, 4, 0, &arg1
))
4931 if (!getifloatarg(args
, 4, 1, &arg2
))
4933 if (!getifloatarg(args
, 4, 2, &arg3
))
4935 if (!getifloatarg(args
, 4, 3, &arg4
))
4937 ortho2( arg1
, arg2
, arg3
, arg4
);
4942 /* void rect float s float s float s float s */
4953 if (!getifloatarg(args
, 4, 0, &arg1
))
4955 if (!getifloatarg(args
, 4, 1, &arg2
))
4957 if (!getifloatarg(args
, 4, 2, &arg3
))
4959 if (!getifloatarg(args
, 4, 3, &arg4
))
4961 rect( arg1
, arg2
, arg3
, arg4
);
4966 /* void rectf float s float s float s float s */
4969 gl_rectf(self
, args
)
4977 if (!getifloatarg(args
, 4, 0, &arg1
))
4979 if (!getifloatarg(args
, 4, 1, &arg2
))
4981 if (!getifloatarg(args
, 4, 2, &arg3
))
4983 if (!getifloatarg(args
, 4, 3, &arg4
))
4985 rectf( arg1
, arg2
, arg3
, arg4
);
4990 /* void xfpt4 float s float s float s float s */
4993 gl_xfpt4(self
, args
)
5001 if (!getifloatarg(args
, 4, 0, &arg1
))
5003 if (!getifloatarg(args
, 4, 1, &arg2
))
5005 if (!getifloatarg(args
, 4, 2, &arg3
))
5007 if (!getifloatarg(args
, 4, 3, &arg4
))
5009 xfpt4( arg1
, arg2
, arg3
, arg4
);
5014 /* void textport short s short s short s short s */
5017 gl_textport(self
, args
)
5025 if (!getishortarg(args
, 4, 0, &arg1
))
5027 if (!getishortarg(args
, 4, 1, &arg2
))
5029 if (!getishortarg(args
, 4, 2, &arg3
))
5031 if (!getishortarg(args
, 4, 3, &arg4
))
5033 textport( arg1
, arg2
, arg3
, arg4
);
5038 /* void mapcolor short s short s short s short s */
5041 gl_mapcolor(self
, args
)
5049 if (!getishortarg(args
, 4, 0, &arg1
))
5051 if (!getishortarg(args
, 4, 1, &arg2
))
5053 if (!getishortarg(args
, 4, 2, &arg3
))
5055 if (!getishortarg(args
, 4, 3, &arg4
))
5057 mapcolor( arg1
, arg2
, arg3
, arg4
);
5062 /* void scrmask short s short s short s short s */
5065 gl_scrmask(self
, args
)
5073 if (!getishortarg(args
, 4, 0, &arg1
))
5075 if (!getishortarg(args
, 4, 1, &arg2
))
5077 if (!getishortarg(args
, 4, 2, &arg3
))
5079 if (!getishortarg(args
, 4, 3, &arg4
))
5081 scrmask( arg1
, arg2
, arg3
, arg4
);
5086 /* void setvaluator short s short s short s short s */
5089 gl_setvaluator(self
, args
)
5097 if (!getishortarg(args
, 4, 0, &arg1
))
5099 if (!getishortarg(args
, 4, 1, &arg2
))
5101 if (!getishortarg(args
, 4, 2, &arg3
))
5103 if (!getishortarg(args
, 4, 3, &arg4
))
5105 setvaluator( arg1
, arg2
, arg3
, arg4
);
5110 /* void viewport short s short s short s short s */
5113 gl_viewport(self
, args
)
5121 if (!getishortarg(args
, 4, 0, &arg1
))
5123 if (!getishortarg(args
, 4, 1, &arg2
))
5125 if (!getishortarg(args
, 4, 2, &arg3
))
5127 if (!getishortarg(args
, 4, 3, &arg4
))
5129 viewport( arg1
, arg2
, arg3
, arg4
);
5134 /* void shaderange short s short s short s short s */
5137 gl_shaderange(self
, args
)
5145 if (!getishortarg(args
, 4, 0, &arg1
))
5147 if (!getishortarg(args
, 4, 1, &arg2
))
5149 if (!getishortarg(args
, 4, 2, &arg3
))
5151 if (!getishortarg(args
, 4, 3, &arg4
))
5153 shaderange( arg1
, arg2
, arg3
, arg4
);
5158 /* void xfpt4s short s short s short s short s */
5161 gl_xfpt4s(self
, args
)
5169 if (!getishortarg(args
, 4, 0, &arg1
))
5171 if (!getishortarg(args
, 4, 1, &arg2
))
5173 if (!getishortarg(args
, 4, 2, &arg3
))
5175 if (!getishortarg(args
, 4, 3, &arg4
))
5177 xfpt4s( arg1
, arg2
, arg3
, arg4
);
5182 /* void rectfi long s long s long s long s */
5185 gl_rectfi(self
, args
)
5193 if (!getilongarg(args
, 4, 0, &arg1
))
5195 if (!getilongarg(args
, 4, 1, &arg2
))
5197 if (!getilongarg(args
, 4, 2, &arg3
))
5199 if (!getilongarg(args
, 4, 3, &arg4
))
5201 rectfi( arg1
, arg2
, arg3
, arg4
);
5206 /* void recti long s long s long s long s */
5209 gl_recti(self
, args
)
5217 if (!getilongarg(args
, 4, 0, &arg1
))
5219 if (!getilongarg(args
, 4, 1, &arg2
))
5221 if (!getilongarg(args
, 4, 2, &arg3
))
5223 if (!getilongarg(args
, 4, 3, &arg4
))
5225 recti( arg1
, arg2
, arg3
, arg4
);
5230 /* void xfpt4i long s long s long s long s */
5233 gl_xfpt4i(self
, args
)
5241 if (!getilongarg(args
, 4, 0, &arg1
))
5243 if (!getilongarg(args
, 4, 1, &arg2
))
5245 if (!getilongarg(args
, 4, 2, &arg3
))
5247 if (!getilongarg(args
, 4, 3, &arg4
))
5249 xfpt4i( arg1
, arg2
, arg3
, arg4
);
5254 /* void prefposition long s long s long s long s */
5257 gl_prefposition(self
, args
)
5265 if (!getilongarg(args
, 4, 0, &arg1
))
5267 if (!getilongarg(args
, 4, 1, &arg2
))
5269 if (!getilongarg(args
, 4, 2, &arg3
))
5271 if (!getilongarg(args
, 4, 3, &arg4
))
5273 prefposition( arg1
, arg2
, arg3
, arg4
);
5278 /* void arc float s float s float s short s short s */
5290 if (!getifloatarg(args
, 5, 0, &arg1
))
5292 if (!getifloatarg(args
, 5, 1, &arg2
))
5294 if (!getifloatarg(args
, 5, 2, &arg3
))
5296 if (!getishortarg(args
, 5, 3, &arg4
))
5298 if (!getishortarg(args
, 5, 4, &arg5
))
5300 arc( arg1
, arg2
, arg3
, arg4
, arg5
);
5305 /* void arcf float s float s float s short s short s */
5317 if (!getifloatarg(args
, 5, 0, &arg1
))
5319 if (!getifloatarg(args
, 5, 1, &arg2
))
5321 if (!getifloatarg(args
, 5, 2, &arg3
))
5323 if (!getishortarg(args
, 5, 3, &arg4
))
5325 if (!getishortarg(args
, 5, 4, &arg5
))
5327 arcf( arg1
, arg2
, arg3
, arg4
, arg5
);
5332 /* void arcfi long s long s long s short s short s */
5335 gl_arcfi(self
, args
)
5344 if (!getilongarg(args
, 5, 0, &arg1
))
5346 if (!getilongarg(args
, 5, 1, &arg2
))
5348 if (!getilongarg(args
, 5, 2, &arg3
))
5350 if (!getishortarg(args
, 5, 3, &arg4
))
5352 if (!getishortarg(args
, 5, 4, &arg5
))
5354 arcfi( arg1
, arg2
, arg3
, arg4
, arg5
);
5359 /* void arci long s long s long s short s short s */
5371 if (!getilongarg(args
, 5, 0, &arg1
))
5373 if (!getilongarg(args
, 5, 1, &arg2
))
5375 if (!getilongarg(args
, 5, 2, &arg3
))
5377 if (!getishortarg(args
, 5, 3, &arg4
))
5379 if (!getishortarg(args
, 5, 4, &arg5
))
5381 arci( arg1
, arg2
, arg3
, arg4
, arg5
);
5386 /* void bbox2 short s short s float s float s float s float s */
5389 gl_bbox2(self
, args
)
5399 if (!getishortarg(args
, 6, 0, &arg1
))
5401 if (!getishortarg(args
, 6, 1, &arg2
))
5403 if (!getifloatarg(args
, 6, 2, &arg3
))
5405 if (!getifloatarg(args
, 6, 3, &arg4
))
5407 if (!getifloatarg(args
, 6, 4, &arg5
))
5409 if (!getifloatarg(args
, 6, 5, &arg6
))
5411 bbox2( arg1
, arg2
, arg3
, arg4
, arg5
, arg6
);
5416 /* void bbox2i short s short s long s long s long s long s */
5419 gl_bbox2i(self
, args
)
5429 if (!getishortarg(args
, 6, 0, &arg1
))
5431 if (!getishortarg(args
, 6, 1, &arg2
))
5433 if (!getilongarg(args
, 6, 2, &arg3
))
5435 if (!getilongarg(args
, 6, 3, &arg4
))
5437 if (!getilongarg(args
, 6, 4, &arg5
))
5439 if (!getilongarg(args
, 6, 5, &arg6
))
5441 bbox2i( arg1
, arg2
, arg3
, arg4
, arg5
, arg6
);
5446 /* void bbox2s short s short s short s short s short s short s */
5449 gl_bbox2s(self
, args
)
5459 if (!getishortarg(args
, 6, 0, &arg1
))
5461 if (!getishortarg(args
, 6, 1, &arg2
))
5463 if (!getishortarg(args
, 6, 2, &arg3
))
5465 if (!getishortarg(args
, 6, 3, &arg4
))
5467 if (!getishortarg(args
, 6, 4, &arg5
))
5469 if (!getishortarg(args
, 6, 5, &arg6
))
5471 bbox2s( arg1
, arg2
, arg3
, arg4
, arg5
, arg6
);
5476 /* void blink short s short s short s short s short s */
5479 gl_blink(self
, args
)
5488 if (!getishortarg(args
, 5, 0, &arg1
))
5490 if (!getishortarg(args
, 5, 1, &arg2
))
5492 if (!getishortarg(args
, 5, 2, &arg3
))
5494 if (!getishortarg(args
, 5, 3, &arg4
))
5496 if (!getishortarg(args
, 5, 4, &arg5
))
5498 blink( arg1
, arg2
, arg3
, arg4
, arg5
);
5503 /* void ortho float s float s float s float s float s float s */
5506 gl_ortho(self
, args
)
5516 if (!getifloatarg(args
, 6, 0, &arg1
))
5518 if (!getifloatarg(args
, 6, 1, &arg2
))
5520 if (!getifloatarg(args
, 6, 2, &arg3
))
5522 if (!getifloatarg(args
, 6, 3, &arg4
))
5524 if (!getifloatarg(args
, 6, 4, &arg5
))
5526 if (!getifloatarg(args
, 6, 5, &arg6
))
5528 ortho( arg1
, arg2
, arg3
, arg4
, arg5
, arg6
);
5533 /* void window float s float s float s float s float s float s */
5536 gl_window(self
, args
)
5546 if (!getifloatarg(args
, 6, 0, &arg1
))
5548 if (!getifloatarg(args
, 6, 1, &arg2
))
5550 if (!getifloatarg(args
, 6, 2, &arg3
))
5552 if (!getifloatarg(args
, 6, 3, &arg4
))
5554 if (!getifloatarg(args
, 6, 4, &arg5
))
5556 if (!getifloatarg(args
, 6, 5, &arg6
))
5558 window( arg1
, arg2
, arg3
, arg4
, arg5
, arg6
);
5563 /* void lookat float s float s float s float s float s float s short s */
5566 gl_lookat(self
, args
)
5577 if (!getifloatarg(args
, 7, 0, &arg1
))
5579 if (!getifloatarg(args
, 7, 1, &arg2
))
5581 if (!getifloatarg(args
, 7, 2, &arg3
))
5583 if (!getifloatarg(args
, 7, 3, &arg4
))
5585 if (!getifloatarg(args
, 7, 4, &arg5
))
5587 if (!getifloatarg(args
, 7, 5, &arg6
))
5589 if (!getishortarg(args
, 7, 6, &arg7
))
5591 lookat( arg1
, arg2
, arg3
, arg4
, arg5
, arg6
, arg7
);
5596 /* void perspective short s float s float s float s */
5599 gl_perspective(self
, args
)
5607 if (!getishortarg(args
, 4, 0, &arg1
))
5609 if (!getifloatarg(args
, 4, 1, &arg2
))
5611 if (!getifloatarg(args
, 4, 2, &arg3
))
5613 if (!getifloatarg(args
, 4, 3, &arg4
))
5615 perspective( arg1
, arg2
, arg3
, arg4
);
5620 /* void polarview float s short s short s short s */
5623 gl_polarview(self
, args
)
5631 if (!getifloatarg(args
, 4, 0, &arg1
))
5633 if (!getishortarg(args
, 4, 1, &arg2
))
5635 if (!getishortarg(args
, 4, 2, &arg3
))
5637 if (!getishortarg(args
, 4, 3, &arg4
))
5639 polarview( arg1
, arg2
, arg3
, arg4
);
5644 /* void arcfs short s short s short s short s short s */
5647 gl_arcfs(self
, args
)
5656 if (!getishortarg(args
, 5, 0, &arg1
))
5658 if (!getishortarg(args
, 5, 1, &arg2
))
5660 if (!getishortarg(args
, 5, 2, &arg3
))
5662 if (!getishortarg(args
, 5, 3, &arg4
))
5664 if (!getishortarg(args
, 5, 4, &arg5
))
5666 arcfs( arg1
, arg2
, arg3
, arg4
, arg5
);
5671 /* void arcs short s short s short s short s short s */
5683 if (!getishortarg(args
, 5, 0, &arg1
))
5685 if (!getishortarg(args
, 5, 1, &arg2
))
5687 if (!getishortarg(args
, 5, 2, &arg3
))
5689 if (!getishortarg(args
, 5, 3, &arg4
))
5691 if (!getishortarg(args
, 5, 4, &arg5
))
5693 arcs( arg1
, arg2
, arg3
, arg4
, arg5
);
5698 /* void rectcopy short s short s short s short s short s short s */
5701 gl_rectcopy(self
, args
)
5711 if (!getishortarg(args
, 6, 0, &arg1
))
5713 if (!getishortarg(args
, 6, 1, &arg2
))
5715 if (!getishortarg(args
, 6, 2, &arg3
))
5717 if (!getishortarg(args
, 6, 3, &arg4
))
5719 if (!getishortarg(args
, 6, 4, &arg5
))
5721 if (!getishortarg(args
, 6, 5, &arg6
))
5723 rectcopy( arg1
, arg2
, arg3
, arg4
, arg5
, arg6
);
5728 /* void RGBcursor short s short s short s short s short s short s short s */
5731 gl_RGBcursor(self
, args
)
5742 if (!getishortarg(args
, 7, 0, &arg1
))
5744 if (!getishortarg(args
, 7, 1, &arg2
))
5746 if (!getishortarg(args
, 7, 2, &arg3
))
5748 if (!getishortarg(args
, 7, 3, &arg4
))
5750 if (!getishortarg(args
, 7, 4, &arg5
))
5752 if (!getishortarg(args
, 7, 5, &arg6
))
5754 if (!getishortarg(args
, 7, 6, &arg7
))
5756 RGBcursor( arg1
, arg2
, arg3
, arg4
, arg5
, arg6
, arg7
);
5761 /* long getbutton short s */
5764 gl_getbutton(self
, args
)
5770 if (!getishortarg(args
, 1, 0, &arg1
))
5772 retval
= getbutton( arg1
);
5773 return mknewlongobject(retval
);
5776 /* long getcmmode */
5779 gl_getcmmode(self
, args
)
5784 retval
= getcmmode( );
5785 return mknewlongobject(retval
);
5788 /* long getlsbackup */
5791 gl_getlsbackup(self
, args
)
5796 retval
= getlsbackup( );
5797 return mknewlongobject(retval
);
5800 /* long getresetls */
5803 gl_getresetls(self
, args
)
5808 retval
= getresetls( );
5809 return mknewlongobject(retval
);
5815 gl_getdcm(self
, args
)
5821 return mknewlongobject(retval
);
5824 /* long getzbuffer */
5827 gl_getzbuffer(self
, args
)
5832 retval
= getzbuffer( );
5833 return mknewlongobject(retval
);
5839 gl_ismex(self
, args
)
5845 return mknewlongobject(retval
);
5848 /* long isobj long s */
5851 gl_isobj(self
, args
)
5857 if (!getilongarg(args
, 1, 0, &arg1
))
5859 retval
= isobj( arg1
);
5860 return mknewlongobject(retval
);
5863 /* long isqueued short s */
5866 gl_isqueued(self
, args
)
5872 if (!getishortarg(args
, 1, 0, &arg1
))
5874 retval
= isqueued( arg1
);
5875 return mknewlongobject(retval
);
5878 /* long istag long s */
5881 gl_istag(self
, args
)
5887 if (!getilongarg(args
, 1, 0, &arg1
))
5889 retval
= istag( arg1
);
5890 return mknewlongobject(retval
);
5896 gl_genobj(self
, args
)
5902 return mknewlongobject(retval
);
5908 gl_gentag(self
, args
)
5914 return mknewlongobject(retval
);
5917 /* long getbuffer */
5920 gl_getbuffer(self
, args
)
5925 retval
= getbuffer( );
5926 return mknewlongobject(retval
);
5932 gl_getcolor(self
, args
)
5937 retval
= getcolor( );
5938 return mknewlongobject(retval
);
5941 /* long getdisplaymode */
5944 gl_getdisplaymode(self
, args
)
5949 retval
= getdisplaymode( );
5950 return mknewlongobject(retval
);
5956 gl_getfont(self
, args
)
5961 retval
= getfont( );
5962 return mknewlongobject(retval
);
5965 /* long getheight */
5968 gl_getheight(self
, args
)
5973 retval
= getheight( );
5974 return mknewlongobject(retval
);
5977 /* long gethitcode */
5980 gl_gethitcode(self
, args
)
5985 retval
= gethitcode( );
5986 return mknewlongobject(retval
);
5989 /* long getlstyle */
5992 gl_getlstyle(self
, args
)
5997 retval
= getlstyle( );
5998 return mknewlongobject(retval
);
6001 /* long getlwidth */
6004 gl_getlwidth(self
, args
)
6009 retval
= getlwidth( );
6010 return mknewlongobject(retval
);
6016 gl_getmap(self
, args
)
6022 return mknewlongobject(retval
);
6025 /* long getplanes */
6028 gl_getplanes(self
, args
)
6033 retval
= getplanes( );
6034 return mknewlongobject(retval
);
6037 /* long getwritemask */
6040 gl_getwritemask(self
, args
)
6045 retval
= getwritemask( );
6046 return mknewlongobject(retval
);
6052 gl_qtest(self
, args
)
6058 return mknewlongobject(retval
);
6061 /* long getlsrepeat */
6064 gl_getlsrepeat(self
, args
)
6069 retval
= getlsrepeat( );
6070 return mknewlongobject(retval
);
6073 /* long getmonitor */
6076 gl_getmonitor(self
, args
)
6081 retval
= getmonitor( );
6082 return mknewlongobject(retval
);
6085 /* long getopenobj */
6088 gl_getopenobj(self
, args
)
6093 retval
= getopenobj( );
6094 return mknewlongobject(retval
);
6097 /* long getpattern */
6100 gl_getpattern(self
, args
)
6105 retval
= getpattern( );
6106 return mknewlongobject(retval
);
6112 gl_winget(self
, args
)
6118 return mknewlongobject(retval
);
6121 /* long winattach */
6124 gl_winattach(self
, args
)
6129 retval
= winattach( );
6130 return mknewlongobject(retval
);
6133 /* long getothermonitor */
6136 gl_getothermonitor(self
, args
)
6141 retval
= getothermonitor( );
6142 return mknewlongobject(retval
);
6148 gl_newpup(self
, args
)
6154 return mknewlongobject(retval
);
6157 /* long getvaluator short s */
6160 gl_getvaluator(self
, args
)
6166 if (!getishortarg(args
, 1, 0, &arg1
))
6168 retval
= getvaluator( arg1
);
6169 return mknewlongobject(retval
);
6172 /* void winset long s */
6175 gl_winset(self
, args
)
6180 if (!getilongarg(args
, 1, 0, &arg1
))
6187 /* long dopup long s */
6190 gl_dopup(self
, args
)
6196 if (!getilongarg(args
, 1, 0, &arg1
))
6198 retval
= dopup( arg1
);
6199 return mknewlongobject(retval
);
6202 /* void getdepth short r short r */
6205 gl_getdepth(self
, args
)
6211 getdepth( & arg1
, & arg2
);
6212 { PyObject
*v
= PyTuple_New( 2 );
6213 if (v
== NULL
) return NULL
;
6214 PyTuple_SetItem(v
, 0, mknewshortobject(arg1
));
6215 PyTuple_SetItem(v
, 1, mknewshortobject(arg2
));
6220 /* void getcpos short r short r */
6223 gl_getcpos(self
, args
)
6229 getcpos( & arg1
, & arg2
);
6230 { PyObject
*v
= PyTuple_New( 2 );
6231 if (v
== NULL
) return NULL
;
6232 PyTuple_SetItem(v
, 0, mknewshortobject(arg1
));
6233 PyTuple_SetItem(v
, 1, mknewshortobject(arg2
));
6238 /* void getsize long r long r */
6241 gl_getsize(self
, args
)
6247 getsize( & arg1
, & arg2
);
6248 { PyObject
*v
= PyTuple_New( 2 );
6249 if (v
== NULL
) return NULL
;
6250 PyTuple_SetItem(v
, 0, mknewlongobject(arg1
));
6251 PyTuple_SetItem(v
, 1, mknewlongobject(arg2
));
6256 /* void getorigin long r long r */
6259 gl_getorigin(self
, args
)
6265 getorigin( & arg1
, & arg2
);
6266 { PyObject
*v
= PyTuple_New( 2 );
6267 if (v
== NULL
) return NULL
;
6268 PyTuple_SetItem(v
, 0, mknewlongobject(arg1
));
6269 PyTuple_SetItem(v
, 1, mknewlongobject(arg2
));
6274 /* void getviewport short r short r short r short r */
6277 gl_getviewport(self
, args
)
6285 getviewport( & arg1
, & arg2
, & arg3
, & arg4
);
6286 { PyObject
*v
= PyTuple_New( 4 );
6287 if (v
== NULL
) return NULL
;
6288 PyTuple_SetItem(v
, 0, mknewshortobject(arg1
));
6289 PyTuple_SetItem(v
, 1, mknewshortobject(arg2
));
6290 PyTuple_SetItem(v
, 2, mknewshortobject(arg3
));
6291 PyTuple_SetItem(v
, 3, mknewshortobject(arg4
));
6296 /* void gettp short r short r short r short r */
6299 gl_gettp(self
, args
)
6307 gettp( & arg1
, & arg2
, & arg3
, & arg4
);
6308 { PyObject
*v
= PyTuple_New( 4 );
6309 if (v
== NULL
) return NULL
;
6310 PyTuple_SetItem(v
, 0, mknewshortobject(arg1
));
6311 PyTuple_SetItem(v
, 1, mknewshortobject(arg2
));
6312 PyTuple_SetItem(v
, 2, mknewshortobject(arg3
));
6313 PyTuple_SetItem(v
, 3, mknewshortobject(arg4
));
6318 /* void getgpos float r float r float r float r */
6321 gl_getgpos(self
, args
)
6329 getgpos( & arg1
, & arg2
, & arg3
, & arg4
);
6330 { PyObject
*v
= PyTuple_New( 4 );
6331 if (v
== NULL
) return NULL
;
6332 PyTuple_SetItem(v
, 0, mknewfloatobject(arg1
));
6333 PyTuple_SetItem(v
, 1, mknewfloatobject(arg2
));
6334 PyTuple_SetItem(v
, 2, mknewfloatobject(arg3
));
6335 PyTuple_SetItem(v
, 3, mknewfloatobject(arg4
));
6340 /* void winposition long s long s long s long s */
6343 gl_winposition(self
, args
)
6351 if (!getilongarg(args
, 4, 0, &arg1
))
6353 if (!getilongarg(args
, 4, 1, &arg2
))
6355 if (!getilongarg(args
, 4, 2, &arg3
))
6357 if (!getilongarg(args
, 4, 3, &arg4
))
6359 winposition( arg1
, arg2
, arg3
, arg4
);
6364 /* void gRGBcolor short r short r short r */
6367 gl_gRGBcolor(self
, args
)
6374 gRGBcolor( & arg1
, & arg2
, & arg3
);
6375 { PyObject
*v
= PyTuple_New( 3 );
6376 if (v
== NULL
) return NULL
;
6377 PyTuple_SetItem(v
, 0, mknewshortobject(arg1
));
6378 PyTuple_SetItem(v
, 1, mknewshortobject(arg2
));
6379 PyTuple_SetItem(v
, 2, mknewshortobject(arg3
));
6384 /* void gRGBmask short r short r short r */
6387 gl_gRGBmask(self
, args
)
6394 gRGBmask( & arg1
, & arg2
, & arg3
);
6395 { PyObject
*v
= PyTuple_New( 3 );
6396 if (v
== NULL
) return NULL
;
6397 PyTuple_SetItem(v
, 0, mknewshortobject(arg1
));
6398 PyTuple_SetItem(v
, 1, mknewshortobject(arg2
));
6399 PyTuple_SetItem(v
, 2, mknewshortobject(arg3
));
6404 /* void getscrmask short r short r short r short r */
6407 gl_getscrmask(self
, args
)
6415 getscrmask( & arg1
, & arg2
, & arg3
, & arg4
);
6416 { PyObject
*v
= PyTuple_New( 4 );
6417 if (v
== NULL
) return NULL
;
6418 PyTuple_SetItem(v
, 0, mknewshortobject(arg1
));
6419 PyTuple_SetItem(v
, 1, mknewshortobject(arg2
));
6420 PyTuple_SetItem(v
, 2, mknewshortobject(arg3
));
6421 PyTuple_SetItem(v
, 3, mknewshortobject(arg4
));
6426 /* void getmcolor short s short r short r short r */
6429 gl_getmcolor(self
, args
)
6437 if (!getishortarg(args
, 1, 0, &arg1
))
6439 getmcolor( arg1
, & arg2
, & arg3
, & arg4
);
6440 { PyObject
*v
= PyTuple_New( 3 );
6441 if (v
== NULL
) return NULL
;
6442 PyTuple_SetItem(v
, 0, mknewshortobject(arg2
));
6443 PyTuple_SetItem(v
, 1, mknewshortobject(arg3
));
6444 PyTuple_SetItem(v
, 2, mknewshortobject(arg4
));
6449 /* void mapw long s short s short s float r float r float r float r float r float r */
6465 if (!getilongarg(args
, 3, 0, &arg1
))
6467 if (!getishortarg(args
, 3, 1, &arg2
))
6469 if (!getishortarg(args
, 3, 2, &arg3
))
6471 mapw( arg1
, arg2
, arg3
, & arg4
, & arg5
, & arg6
, & arg7
, & arg8
, & arg9
);
6472 { PyObject
*v
= PyTuple_New( 6 );
6473 if (v
== NULL
) return NULL
;
6474 PyTuple_SetItem(v
, 0, mknewfloatobject(arg4
));
6475 PyTuple_SetItem(v
, 1, mknewfloatobject(arg5
));
6476 PyTuple_SetItem(v
, 2, mknewfloatobject(arg6
));
6477 PyTuple_SetItem(v
, 3, mknewfloatobject(arg7
));
6478 PyTuple_SetItem(v
, 4, mknewfloatobject(arg8
));
6479 PyTuple_SetItem(v
, 5, mknewfloatobject(arg9
));
6484 /* void mapw2 long s short s short s float r float r */
6487 gl_mapw2(self
, args
)
6496 if (!getilongarg(args
, 3, 0, &arg1
))
6498 if (!getishortarg(args
, 3, 1, &arg2
))
6500 if (!getishortarg(args
, 3, 2, &arg3
))
6502 mapw2( arg1
, arg2
, arg3
, & arg4
, & arg5
);
6503 { PyObject
*v
= PyTuple_New( 2 );
6504 if (v
== NULL
) return NULL
;
6505 PyTuple_SetItem(v
, 0, mknewfloatobject(arg4
));
6506 PyTuple_SetItem(v
, 1, mknewfloatobject(arg5
));
6511 /* void getcursor short r u_short r u_short r long r */
6514 gl_getcursor(self
, args
)
6519 unsigned short arg2
;
6520 unsigned short arg3
;
6522 getcursor( & arg1
, & arg2
, & arg3
, & arg4
);
6523 { PyObject
*v
= PyTuple_New( 4 );
6524 if (v
== NULL
) return NULL
;
6525 PyTuple_SetItem(v
, 0, mknewshortobject(arg1
));
6526 PyTuple_SetItem(v
, 1, mknewshortobject((short) arg2
));
6527 PyTuple_SetItem(v
, 2, mknewshortobject((short) arg3
));
6528 PyTuple_SetItem(v
, 3, mknewlongobject(arg4
));
6536 gl_cmode(self
, args
)
6545 /* void concave long s */
6548 gl_concave(self
, args
)
6553 if (!getilongarg(args
, 1, 0, &arg1
))
6560 /* void curstype long s */
6563 gl_curstype(self
, args
)
6568 if (!getilongarg(args
, 1, 0, &arg1
))
6575 /* void drawmode long s */
6578 gl_drawmode(self
, args
)
6583 if (!getilongarg(args
, 1, 0, &arg1
))
6590 /* void gammaramp short s[256] short s[256] short s[256] */
6593 gl_gammaramp(self
, args
)
6597 short arg1
[ 256 ] ;
6598 short arg2
[ 256 ] ;
6599 short arg3
[ 256 ] ;
6600 if (!getishortarray(args
, 3, 0, 256 , arg1
))
6602 if (!getishortarray(args
, 3, 1, 256 , arg2
))
6604 if (!getishortarray(args
, 3, 2, 256 , arg3
))
6606 gammaramp( arg1
, arg2
, arg3
);
6611 /* long getbackface */
6614 gl_getbackface(self
, args
)
6619 retval
= getbackface( );
6620 return mknewlongobject(retval
);
6623 /* long getdescender */
6626 gl_getdescender(self
, args
)
6631 retval
= getdescender( );
6632 return mknewlongobject(retval
);
6635 /* long getdrawmode */
6638 gl_getdrawmode(self
, args
)
6643 retval
= getdrawmode( );
6644 return mknewlongobject(retval
);
6650 gl_getmmode(self
, args
)
6655 retval
= getmmode( );
6656 return mknewlongobject(retval
);
6662 gl_getsm(self
, args
)
6668 return mknewlongobject(retval
);
6671 /* long getvideo long s */
6674 gl_getvideo(self
, args
)
6680 if (!getilongarg(args
, 1, 0, &arg1
))
6682 retval
= getvideo( arg1
);
6683 return mknewlongobject(retval
);
6686 /* void imakebackground */
6689 gl_imakebackground(self
, args
)
6698 /* void lmbind short s short s */
6701 gl_lmbind(self
, args
)
6707 if (!getishortarg(args
, 2, 0, &arg1
))
6709 if (!getishortarg(args
, 2, 1, &arg2
))
6711 lmbind( arg1
, arg2
);
6716 /* void lmdef long s long s long s float s[arg3] */
6719 gl_lmdef(self
, args
)
6727 if (!getilongarg(args
, 3, 0, &arg1
))
6729 if (!getilongarg(args
, 3, 1, &arg2
))
6731 if (!getilongarraysize(args
, 3, 2, &arg3
))
6733 if ((arg4
= PyMem_NEW(float , arg3
)) == NULL
)
6734 return PyErr_NoMemory();
6735 if (!getifloatarray(args
, 3, 2, arg3
, arg4
))
6737 lmdef( arg1
, arg2
, arg3
, arg4
);
6743 /* void mmode long s */
6746 gl_mmode(self
, args
)
6751 if (!getilongarg(args
, 1, 0, &arg1
))
6758 /* void normal float s[3] */
6761 gl_normal(self
, args
)
6766 if (!getifloatarray(args
, 1, 0, 3 , arg1
))
6773 /* void overlay long s */
6776 gl_overlay(self
, args
)
6781 if (!getilongarg(args
, 1, 0, &arg1
))
6788 /* void RGBrange short s short s short s short s short s short s short s short s */
6791 gl_RGBrange(self
, args
)
6803 if (!getishortarg(args
, 8, 0, &arg1
))
6805 if (!getishortarg(args
, 8, 1, &arg2
))
6807 if (!getishortarg(args
, 8, 2, &arg3
))
6809 if (!getishortarg(args
, 8, 3, &arg4
))
6811 if (!getishortarg(args
, 8, 4, &arg5
))
6813 if (!getishortarg(args
, 8, 5, &arg6
))
6815 if (!getishortarg(args
, 8, 6, &arg7
))
6817 if (!getishortarg(args
, 8, 7, &arg8
))
6819 RGBrange( arg1
, arg2
, arg3
, arg4
, arg5
, arg6
, arg7
, arg8
);
6824 /* void setvideo long s long s */
6827 gl_setvideo(self
, args
)
6833 if (!getilongarg(args
, 2, 0, &arg1
))
6835 if (!getilongarg(args
, 2, 1, &arg2
))
6837 setvideo( arg1
, arg2
);
6842 /* void shademodel long s */
6845 gl_shademodel(self
, args
)
6850 if (!getilongarg(args
, 1, 0, &arg1
))
6857 /* void underlay long s */
6860 gl_underlay(self
, args
)
6865 if (!getilongarg(args
, 1, 0, &arg1
))
6872 /* void bgnclosedline */
6875 gl_bgnclosedline(self
, args
)
6887 gl_bgnline(self
, args
)
6899 gl_bgnpoint(self
, args
)
6908 /* void bgnpolygon */
6911 gl_bgnpolygon(self
, args
)
6920 /* void bgnsurface */
6923 gl_bgnsurface(self
, args
)
6935 gl_bgntmesh(self
, args
)
6947 gl_bgntrim(self
, args
)
6956 /* void endclosedline */
6959 gl_endclosedline(self
, args
)
6971 gl_endline(self
, args
)
6983 gl_endpoint(self
, args
)
6992 /* void endpolygon */
6995 gl_endpolygon(self
, args
)
7004 /* void endsurface */
7007 gl_endsurface(self
, args
)
7019 gl_endtmesh(self
, args
)
7031 gl_endtrim(self
, args
)
7040 /* void blendfunction long s long s */
7043 gl_blendfunction(self
, args
)
7049 if (!getilongarg(args
, 2, 0, &arg1
))
7051 if (!getilongarg(args
, 2, 1, &arg2
))
7053 blendfunction( arg1
, arg2
);
7058 /* void c3f float s[3] */
7066 if (!getifloatarray(args
, 1, 0, 3 , arg1
))
7073 /* void c3i long s[3] */
7081 if (!getilongarray(args
, 1, 0, 3 , arg1
))
7088 /* void c3s short s[3] */
7096 if (!getishortarray(args
, 1, 0, 3 , arg1
))
7103 /* void c4f float s[4] */
7111 if (!getifloatarray(args
, 1, 0, 4 , arg1
))
7118 /* void c4i long s[4] */
7126 if (!getilongarray(args
, 1, 0, 4 , arg1
))
7133 /* void c4s short s[4] */
7141 if (!getishortarray(args
, 1, 0, 4 , arg1
))
7148 /* void colorf float s */
7151 gl_colorf(self
, args
)
7156 if (!getifloatarg(args
, 1, 0, &arg1
))
7163 /* void cpack long s */
7166 gl_cpack(self
, args
)
7171 if (!getilongarg(args
, 1, 0, &arg1
))
7178 /* void czclear long s long s */
7181 gl_czclear(self
, args
)
7187 if (!getilongarg(args
, 2, 0, &arg1
))
7189 if (!getilongarg(args
, 2, 1, &arg2
))
7191 czclear( arg1
, arg2
);
7196 /* void dglclose long s */
7199 gl_dglclose(self
, args
)
7204 if (!getilongarg(args
, 1, 0, &arg1
))
7211 /* long dglopen char *s long s */
7214 gl_dglopen(self
, args
)
7221 if (!getistringarg(args
, 2, 0, &arg1
))
7223 if (!getilongarg(args
, 2, 1, &arg2
))
7225 retval
= dglopen( arg1
, arg2
);
7226 return mknewlongobject(retval
);
7229 /* long getgdesc long s */
7232 gl_getgdesc(self
, args
)
7238 if (!getilongarg(args
, 1, 0, &arg1
))
7240 retval
= getgdesc( arg1
);
7241 return mknewlongobject(retval
);
7244 /* void getnurbsproperty long s float r */
7247 gl_getnurbsproperty(self
, args
)
7253 if (!getilongarg(args
, 1, 0, &arg1
))
7255 getnurbsproperty( arg1
, & arg2
);
7256 return mknewfloatobject(arg2
);
7259 /* void glcompat long s long s */
7262 gl_glcompat(self
, args
)
7268 if (!getilongarg(args
, 2, 0, &arg1
))
7270 if (!getilongarg(args
, 2, 1, &arg2
))
7272 glcompat( arg1
, arg2
);
7277 /* void iconsize long s long s */
7280 gl_iconsize(self
, args
)
7286 if (!getilongarg(args
, 2, 0, &arg1
))
7288 if (!getilongarg(args
, 2, 1, &arg2
))
7290 iconsize( arg1
, arg2
);
7295 /* void icontitle char *s */
7298 gl_icontitle(self
, args
)
7303 if (!getistringarg(args
, 1, 0, &arg1
))
7310 /* void lRGBrange short s short s short s short s short s short s long s long s */
7313 gl_lRGBrange(self
, args
)
7325 if (!getishortarg(args
, 8, 0, &arg1
))
7327 if (!getishortarg(args
, 8, 1, &arg2
))
7329 if (!getishortarg(args
, 8, 2, &arg3
))
7331 if (!getishortarg(args
, 8, 3, &arg4
))
7333 if (!getishortarg(args
, 8, 4, &arg5
))
7335 if (!getishortarg(args
, 8, 5, &arg6
))
7337 if (!getilongarg(args
, 8, 6, &arg7
))
7339 if (!getilongarg(args
, 8, 7, &arg8
))
7341 lRGBrange( arg1
, arg2
, arg3
, arg4
, arg5
, arg6
, arg7
, arg8
);
7346 /* void linesmooth long s */
7349 gl_linesmooth(self
, args
)
7354 if (!getilongarg(args
, 1, 0, &arg1
))
7361 /* void lmcolor long s */
7364 gl_lmcolor(self
, args
)
7369 if (!getilongarg(args
, 1, 0, &arg1
))
7376 /* void logicop long s */
7379 gl_logicop(self
, args
)
7384 if (!getilongarg(args
, 1, 0, &arg1
))
7391 /* void lsetdepth long s long s */
7394 gl_lsetdepth(self
, args
)
7400 if (!getilongarg(args
, 2, 0, &arg1
))
7402 if (!getilongarg(args
, 2, 1, &arg2
))
7404 lsetdepth( arg1
, arg2
);
7409 /* void lshaderange short s short s long s long s */
7412 gl_lshaderange(self
, args
)
7420 if (!getishortarg(args
, 4, 0, &arg1
))
7422 if (!getishortarg(args
, 4, 1, &arg2
))
7424 if (!getilongarg(args
, 4, 2, &arg3
))
7426 if (!getilongarg(args
, 4, 3, &arg4
))
7428 lshaderange( arg1
, arg2
, arg3
, arg4
);
7433 /* void n3f float s[3] */
7441 if (!getifloatarray(args
, 1, 0, 3 , arg1
))
7451 gl_noborder(self
, args
)
7460 /* void pntsmooth long s */
7463 gl_pntsmooth(self
, args
)
7468 if (!getilongarg(args
, 1, 0, &arg1
))
7475 /* void readsource long s */
7478 gl_readsource(self
, args
)
7483 if (!getilongarg(args
, 1, 0, &arg1
))
7490 /* void rectzoom float s float s */
7493 gl_rectzoom(self
, args
)
7499 if (!getifloatarg(args
, 2, 0, &arg1
))
7501 if (!getifloatarg(args
, 2, 1, &arg2
))
7503 rectzoom( arg1
, arg2
);
7508 /* void sbox float s float s float s float s */
7519 if (!getifloatarg(args
, 4, 0, &arg1
))
7521 if (!getifloatarg(args
, 4, 1, &arg2
))
7523 if (!getifloatarg(args
, 4, 2, &arg3
))
7525 if (!getifloatarg(args
, 4, 3, &arg4
))
7527 sbox( arg1
, arg2
, arg3
, arg4
);
7532 /* void sboxi long s long s long s long s */
7535 gl_sboxi(self
, args
)
7543 if (!getilongarg(args
, 4, 0, &arg1
))
7545 if (!getilongarg(args
, 4, 1, &arg2
))
7547 if (!getilongarg(args
, 4, 2, &arg3
))
7549 if (!getilongarg(args
, 4, 3, &arg4
))
7551 sboxi( arg1
, arg2
, arg3
, arg4
);
7556 /* void sboxs short s short s short s short s */
7559 gl_sboxs(self
, args
)
7567 if (!getishortarg(args
, 4, 0, &arg1
))
7569 if (!getishortarg(args
, 4, 1, &arg2
))
7571 if (!getishortarg(args
, 4, 2, &arg3
))
7573 if (!getishortarg(args
, 4, 3, &arg4
))
7575 sboxs( arg1
, arg2
, arg3
, arg4
);
7580 /* void sboxf float s float s float s float s */
7583 gl_sboxf(self
, args
)
7591 if (!getifloatarg(args
, 4, 0, &arg1
))
7593 if (!getifloatarg(args
, 4, 1, &arg2
))
7595 if (!getifloatarg(args
, 4, 2, &arg3
))
7597 if (!getifloatarg(args
, 4, 3, &arg4
))
7599 sboxf( arg1
, arg2
, arg3
, arg4
);
7604 /* void sboxfi long s long s long s long s */
7607 gl_sboxfi(self
, args
)
7615 if (!getilongarg(args
, 4, 0, &arg1
))
7617 if (!getilongarg(args
, 4, 1, &arg2
))
7619 if (!getilongarg(args
, 4, 2, &arg3
))
7621 if (!getilongarg(args
, 4, 3, &arg4
))
7623 sboxfi( arg1
, arg2
, arg3
, arg4
);
7628 /* void sboxfs short s short s short s short s */
7631 gl_sboxfs(self
, args
)
7639 if (!getishortarg(args
, 4, 0, &arg1
))
7641 if (!getishortarg(args
, 4, 1, &arg2
))
7643 if (!getishortarg(args
, 4, 2, &arg3
))
7645 if (!getishortarg(args
, 4, 3, &arg4
))
7647 sboxfs( arg1
, arg2
, arg3
, arg4
);
7652 /* void setnurbsproperty long s float s */
7655 gl_setnurbsproperty(self
, args
)
7661 if (!getilongarg(args
, 2, 0, &arg1
))
7663 if (!getifloatarg(args
, 2, 1, &arg2
))
7665 setnurbsproperty( arg1
, arg2
);
7670 /* void setpup long s long s long s */
7673 gl_setpup(self
, args
)
7680 if (!getilongarg(args
, 3, 0, &arg1
))
7682 if (!getilongarg(args
, 3, 1, &arg2
))
7684 if (!getilongarg(args
, 3, 2, &arg3
))
7686 setpup( arg1
, arg2
, arg3
);
7691 /* void smoothline long s */
7694 gl_smoothline(self
, args
)
7699 if (!getilongarg(args
, 1, 0, &arg1
))
7706 /* void subpixel long s */
7709 gl_subpixel(self
, args
)
7714 if (!getilongarg(args
, 1, 0, &arg1
))
7721 /* void swaptmesh */
7724 gl_swaptmesh(self
, args
)
7733 /* long swinopen long s */
7736 gl_swinopen(self
, args
)
7742 if (!getilongarg(args
, 1, 0, &arg1
))
7744 retval
= swinopen( arg1
);
7745 return mknewlongobject(retval
);
7748 /* void v2f float s[2] */
7756 if (!getifloatarray(args
, 1, 0, 2 , arg1
))
7763 /* void v2i long s[2] */
7771 if (!getilongarray(args
, 1, 0, 2 , arg1
))
7778 /* void v2s short s[2] */
7786 if (!getishortarray(args
, 1, 0, 2 , arg1
))
7793 /* void v3f float s[3] */
7801 if (!getifloatarray(args
, 1, 0, 3 , arg1
))
7808 /* void v3i long s[3] */
7816 if (!getilongarray(args
, 1, 0, 3 , arg1
))
7823 /* void v3s short s[3] */
7831 if (!getishortarray(args
, 1, 0, 3 , arg1
))
7838 /* void v4f float s[4] */
7846 if (!getifloatarray(args
, 1, 0, 4 , arg1
))
7853 /* void v4i long s[4] */
7861 if (!getilongarray(args
, 1, 0, 4 , arg1
))
7868 /* void v4s short s[4] */
7876 if (!getishortarray(args
, 1, 0, 4 , arg1
))
7883 /* void videocmd long s */
7886 gl_videocmd(self
, args
)
7891 if (!getilongarg(args
, 1, 0, &arg1
))
7898 /* long windepth long s */
7901 gl_windepth(self
, args
)
7907 if (!getilongarg(args
, 1, 0, &arg1
))
7909 retval
= windepth( arg1
);
7910 return mknewlongobject(retval
);
7913 /* void wmpack long s */
7916 gl_wmpack(self
, args
)
7921 if (!getilongarg(args
, 1, 0, &arg1
))
7928 /* void zdraw long s */
7931 gl_zdraw(self
, args
)
7936 if (!getilongarg(args
, 1, 0, &arg1
))
7943 /* void zfunction long s */
7946 gl_zfunction(self
, args
)
7951 if (!getilongarg(args
, 1, 0, &arg1
))
7958 /* void zsource long s */
7961 gl_zsource(self
, args
)
7966 if (!getilongarg(args
, 1, 0, &arg1
))
7973 /* void zwritemask long s */
7976 gl_zwritemask(self
, args
)
7981 if (!getilongarg(args
, 1, 0, &arg1
))
7988 /* void v2d double s[2] */
7996 if (!getidoublearray(args
, 1, 0, 2 , arg1
))
8003 /* void v3d double s[3] */
8011 if (!getidoublearray(args
, 1, 0, 3 , arg1
))
8018 /* void v4d double s[4] */
8026 if (!getidoublearray(args
, 1, 0, 4 , arg1
))
8033 /* void pixmode long s long s */
8036 gl_pixmode(self
, args
)
8042 if (!getilongarg(args
, 2, 0, &arg1
))
8044 if (!getilongarg(args
, 2, 1, &arg2
))
8046 pixmode( arg1
, arg2
);
8054 gl_qgetfd(self
, args
)
8060 return mknewlongobject(retval
);
8063 /* void dither long s */
8066 gl_dither(self
, args
)
8071 if (!getilongarg(args
, 1, 0, &arg1
))
8078 static struct PyMethodDef gl_methods
[] = {
8079 {"qread", gl_qread
},
8080 {"varray", gl_varray
},
8081 {"nvarray", gl_nvarray
},
8082 {"vnarray", gl_vnarray
},
8083 {"nurbssurface", gl_nurbssurface
},
8084 {"nurbscurve", gl_nurbscurve
},
8085 {"pwlcurve", gl_pwlcurve
},
8087 {"endpick", gl_endpick
},
8088 {"gselect", gl_gselect
},
8089 {"endselect", gl_endselect
},
8090 {"getmatrix", gl_getmatrix
},
8091 {"altgetmatrix", gl_altgetmatrix
},
8092 {"lrectwrite", gl_lrectwrite
},
8093 {"lrectread", gl_lrectread
},
8094 {"readdisplay", gl_readdisplay
},
8095 {"packrect", gl_packrect
},
8096 {"unpackrect", gl_unpackrect
},
8097 {"gversion", gl_gversion
},
8098 {"clear", gl_clear
},
8099 {"getshade", gl_getshade
},
8100 {"devport", gl_devport
},
8101 {"rdr2i", gl_rdr2i
},
8102 {"rectfs", gl_rectfs
},
8103 {"rects", gl_rects
},
8104 {"rmv2i", gl_rmv2i
},
8105 {"noport", gl_noport
},
8106 {"popviewport", gl_popviewport
},
8107 {"clearhitcode", gl_clearhitcode
},
8108 {"closeobj", gl_closeobj
},
8109 {"cursoff", gl_cursoff
},
8110 {"curson", gl_curson
},
8111 {"doublebuffer", gl_doublebuffer
},
8112 {"finish", gl_finish
},
8113 {"gconfig", gl_gconfig
},
8114 {"ginit", gl_ginit
},
8115 {"greset", gl_greset
},
8116 {"multimap", gl_multimap
},
8117 {"onemap", gl_onemap
},
8118 {"popattributes", gl_popattributes
},
8119 {"popmatrix", gl_popmatrix
},
8120 {"pushattributes", gl_pushattributes
},
8121 {"pushmatrix", gl_pushmatrix
},
8122 {"pushviewport", gl_pushviewport
},
8123 {"qreset", gl_qreset
},
8124 {"RGBmode", gl_RGBmode
},
8125 {"singlebuffer", gl_singlebuffer
},
8126 {"swapbuffers", gl_swapbuffers
},
8127 {"gsync", gl_gsync
},
8128 {"gflush", gl_gflush
},
8130 {"tpoff", gl_tpoff
},
8131 {"clkon", gl_clkon
},
8132 {"clkoff", gl_clkoff
},
8133 {"ringbell", gl_ringbell
},
8134 {"gbegin", gl_gbegin
},
8135 {"textinit", gl_textinit
},
8136 {"initnames", gl_initnames
},
8137 {"pclos", gl_pclos
},
8138 {"popname", gl_popname
},
8139 {"spclos", gl_spclos
},
8140 {"zclear", gl_zclear
},
8141 {"screenspace", gl_screenspace
},
8142 {"reshapeviewport", gl_reshapeviewport
},
8143 {"winpush", gl_winpush
},
8144 {"winpop", gl_winpop
},
8145 {"foreground", gl_foreground
},
8146 {"endfullscrn", gl_endfullscrn
},
8147 {"endpupmode", gl_endpupmode
},
8148 {"fullscrn", gl_fullscrn
},
8149 {"pupmode", gl_pupmode
},
8150 {"winconstraints", gl_winconstraints
},
8151 {"pagecolor", gl_pagecolor
},
8152 {"textcolor", gl_textcolor
},
8153 {"color", gl_color
},
8154 {"curveit", gl_curveit
},
8156 {"linewidth", gl_linewidth
},
8157 {"setlinestyle", gl_setlinestyle
},
8158 {"setmap", gl_setmap
},
8159 {"swapinterval", gl_swapinterval
},
8160 {"writemask", gl_writemask
},
8161 {"textwritemask", gl_textwritemask
},
8162 {"qdevice", gl_qdevice
},
8163 {"unqdevice", gl_unqdevice
},
8164 {"curvebasis", gl_curvebasis
},
8165 {"curveprecision", gl_curveprecision
},
8166 {"loadname", gl_loadname
},
8167 {"passthrough", gl_passthrough
},
8168 {"pushname", gl_pushname
},
8169 {"setmonitor", gl_setmonitor
},
8170 {"setshade", gl_setshade
},
8171 {"setpattern", gl_setpattern
},
8172 {"pagewritemask", gl_pagewritemask
},
8173 {"callobj", gl_callobj
},
8174 {"delobj", gl_delobj
},
8175 {"editobj", gl_editobj
},
8176 {"makeobj", gl_makeobj
},
8177 {"maketag", gl_maketag
},
8178 {"chunksize", gl_chunksize
},
8179 {"compactify", gl_compactify
},
8180 {"deltag", gl_deltag
},
8181 {"lsrepeat", gl_lsrepeat
},
8182 {"objinsert", gl_objinsert
},
8183 {"objreplace", gl_objreplace
},
8184 {"winclose", gl_winclose
},
8185 {"blanktime", gl_blanktime
},
8186 {"freepup", gl_freepup
},
8187 {"backbuffer", gl_backbuffer
},
8188 {"frontbuffer", gl_frontbuffer
},
8189 {"lsbackup", gl_lsbackup
},
8190 {"resetls", gl_resetls
},
8191 {"lampon", gl_lampon
},
8192 {"lampoff", gl_lampoff
},
8193 {"setbell", gl_setbell
},
8194 {"blankscreen", gl_blankscreen
},
8195 {"depthcue", gl_depthcue
},
8196 {"zbuffer", gl_zbuffer
},
8197 {"backface", gl_backface
},
8198 {"cmov2i", gl_cmov2i
},
8199 {"draw2i", gl_draw2i
},
8200 {"move2i", gl_move2i
},
8201 {"pnt2i", gl_pnt2i
},
8202 {"patchbasis", gl_patchbasis
},
8203 {"patchprecision", gl_patchprecision
},
8204 {"pdr2i", gl_pdr2i
},
8205 {"pmv2i", gl_pmv2i
},
8206 {"rpdr2i", gl_rpdr2i
},
8207 {"rpmv2i", gl_rpmv2i
},
8208 {"xfpt2i", gl_xfpt2i
},
8209 {"objdelete", gl_objdelete
},
8210 {"patchcurves", gl_patchcurves
},
8211 {"minsize", gl_minsize
},
8212 {"maxsize", gl_maxsize
},
8213 {"keepaspect", gl_keepaspect
},
8214 {"prefsize", gl_prefsize
},
8215 {"stepunit", gl_stepunit
},
8216 {"fudge", gl_fudge
},
8217 {"winmove", gl_winmove
},
8218 {"attachcursor", gl_attachcursor
},
8219 {"deflinestyle", gl_deflinestyle
},
8220 {"noise", gl_noise
},
8221 {"picksize", gl_picksize
},
8222 {"qenter", gl_qenter
},
8223 {"setdepth", gl_setdepth
},
8224 {"cmov2s", gl_cmov2s
},
8225 {"draw2s", gl_draw2s
},
8226 {"move2s", gl_move2s
},
8227 {"pdr2s", gl_pdr2s
},
8228 {"pmv2s", gl_pmv2s
},
8229 {"pnt2s", gl_pnt2s
},
8230 {"rdr2s", gl_rdr2s
},
8231 {"rmv2s", gl_rmv2s
},
8232 {"rpdr2s", gl_rpdr2s
},
8233 {"rpmv2s", gl_rpmv2s
},
8234 {"xfpt2s", gl_xfpt2s
},
8235 {"cmov2", gl_cmov2
},
8236 {"draw2", gl_draw2
},
8237 {"move2", gl_move2
},
8243 {"rpdr2", gl_rpdr2
},
8244 {"rpmv2", gl_rpmv2
},
8245 {"xfpt2", gl_xfpt2
},
8246 {"loadmatrix", gl_loadmatrix
},
8247 {"multmatrix", gl_multmatrix
},
8250 {"addtopup", gl_addtopup
},
8251 {"charstr", gl_charstr
},
8252 {"getport", gl_getport
},
8253 {"strwidth", gl_strwidth
},
8254 {"winopen", gl_winopen
},
8255 {"wintitle", gl_wintitle
},
8257 {"polf2", gl_polf2
},
8259 {"poly2", gl_poly2
},
8261 {"rcrvn", gl_rcrvn
},
8262 {"polf2i", gl_polf2i
},
8263 {"polfi", gl_polfi
},
8264 {"poly2i", gl_poly2i
},
8265 {"polyi", gl_polyi
},
8266 {"polf2s", gl_polf2s
},
8267 {"polfs", gl_polfs
},
8268 {"polys", gl_polys
},
8269 {"poly2s", gl_poly2s
},
8270 {"defcursor", gl_defcursor
},
8271 {"writepixels", gl_writepixels
},
8272 {"defbasis", gl_defbasis
},
8273 {"gewrite", gl_gewrite
},
8274 {"rotate", gl_rotate
},
8276 {"circfi", gl_circfi
},
8277 {"circi", gl_circi
},
8278 {"cmovi", gl_cmovi
},
8279 {"drawi", gl_drawi
},
8280 {"movei", gl_movei
},
8282 {"newtag", gl_newtag
},
8287 {"rpdri", gl_rpdri
},
8288 {"rpmvi", gl_rpmvi
},
8289 {"xfpti", gl_xfpti
},
8291 {"circf", gl_circf
},
8296 {"scale", gl_scale
},
8297 {"translate", gl_translate
},
8305 {"RGBcolor", gl_RGBcolor
},
8306 {"RGBwritemask", gl_RGBwritemask
},
8307 {"setcursor", gl_setcursor
},
8309 {"circfs", gl_circfs
},
8310 {"circs", gl_circs
},
8311 {"cmovs", gl_cmovs
},
8312 {"draws", gl_draws
},
8313 {"moves", gl_moves
},
8319 {"rpdrs", gl_rpdrs
},
8320 {"rpmvs", gl_rpmvs
},
8321 {"xfpts", gl_xfpts
},
8322 {"curorigin", gl_curorigin
},
8323 {"cyclemap", gl_cyclemap
},
8324 {"patch", gl_patch
},
8326 {"splf2", gl_splf2
},
8327 {"splfi", gl_splfi
},
8328 {"splf2i", gl_splf2i
},
8329 {"splfs", gl_splfs
},
8330 {"splf2s", gl_splf2s
},
8331 {"rpatch", gl_rpatch
},
8332 {"ortho2", gl_ortho2
},
8334 {"rectf", gl_rectf
},
8335 {"xfpt4", gl_xfpt4
},
8336 {"textport", gl_textport
},
8337 {"mapcolor", gl_mapcolor
},
8338 {"scrmask", gl_scrmask
},
8339 {"setvaluator", gl_setvaluator
},
8340 {"viewport", gl_viewport
},
8341 {"shaderange", gl_shaderange
},
8342 {"xfpt4s", gl_xfpt4s
},
8343 {"rectfi", gl_rectfi
},
8344 {"recti", gl_recti
},
8345 {"xfpt4i", gl_xfpt4i
},
8346 {"prefposition", gl_prefposition
},
8349 {"arcfi", gl_arcfi
},
8351 {"bbox2", gl_bbox2
},
8352 {"bbox2i", gl_bbox2i
},
8353 {"bbox2s", gl_bbox2s
},
8354 {"blink", gl_blink
},
8355 {"ortho", gl_ortho
},
8356 {"window", gl_window
},
8357 {"lookat", gl_lookat
},
8358 {"perspective", gl_perspective
},
8359 {"polarview", gl_polarview
},
8360 {"arcfs", gl_arcfs
},
8362 {"rectcopy", gl_rectcopy
},
8363 {"RGBcursor", gl_RGBcursor
},
8364 {"getbutton", gl_getbutton
},
8365 {"getcmmode", gl_getcmmode
},
8366 {"getlsbackup", gl_getlsbackup
},
8367 {"getresetls", gl_getresetls
},
8368 {"getdcm", gl_getdcm
},
8369 {"getzbuffer", gl_getzbuffer
},
8370 {"ismex", gl_ismex
},
8371 {"isobj", gl_isobj
},
8372 {"isqueued", gl_isqueued
},
8373 {"istag", gl_istag
},
8374 {"genobj", gl_genobj
},
8375 {"gentag", gl_gentag
},
8376 {"getbuffer", gl_getbuffer
},
8377 {"getcolor", gl_getcolor
},
8378 {"getdisplaymode", gl_getdisplaymode
},
8379 {"getfont", gl_getfont
},
8380 {"getheight", gl_getheight
},
8381 {"gethitcode", gl_gethitcode
},
8382 {"getlstyle", gl_getlstyle
},
8383 {"getlwidth", gl_getlwidth
},
8384 {"getmap", gl_getmap
},
8385 {"getplanes", gl_getplanes
},
8386 {"getwritemask", gl_getwritemask
},
8387 {"qtest", gl_qtest
},
8388 {"getlsrepeat", gl_getlsrepeat
},
8389 {"getmonitor", gl_getmonitor
},
8390 {"getopenobj", gl_getopenobj
},
8391 {"getpattern", gl_getpattern
},
8392 {"winget", gl_winget
},
8393 {"winattach", gl_winattach
},
8394 {"getothermonitor", gl_getothermonitor
},
8395 {"newpup", gl_newpup
},
8396 {"getvaluator", gl_getvaluator
},
8397 {"winset", gl_winset
},
8398 {"dopup", gl_dopup
},
8399 {"getdepth", gl_getdepth
},
8400 {"getcpos", gl_getcpos
},
8401 {"getsize", gl_getsize
},
8402 {"getorigin", gl_getorigin
},
8403 {"getviewport", gl_getviewport
},
8404 {"gettp", gl_gettp
},
8405 {"getgpos", gl_getgpos
},
8406 {"winposition", gl_winposition
},
8407 {"gRGBcolor", gl_gRGBcolor
},
8408 {"gRGBmask", gl_gRGBmask
},
8409 {"getscrmask", gl_getscrmask
},
8410 {"getmcolor", gl_getmcolor
},
8412 {"mapw2", gl_mapw2
},
8413 {"getcursor", gl_getcursor
},
8414 {"cmode", gl_cmode
},
8415 {"concave", gl_concave
},
8416 {"curstype", gl_curstype
},
8417 {"drawmode", gl_drawmode
},
8418 {"gammaramp", gl_gammaramp
},
8419 {"getbackface", gl_getbackface
},
8420 {"getdescender", gl_getdescender
},
8421 {"getdrawmode", gl_getdrawmode
},
8422 {"getmmode", gl_getmmode
},
8423 {"getsm", gl_getsm
},
8424 {"getvideo", gl_getvideo
},
8425 {"imakebackground", gl_imakebackground
},
8426 {"lmbind", gl_lmbind
},
8427 {"lmdef", gl_lmdef
},
8428 {"mmode", gl_mmode
},
8429 {"normal", gl_normal
},
8430 {"overlay", gl_overlay
},
8431 {"RGBrange", gl_RGBrange
},
8432 {"setvideo", gl_setvideo
},
8433 {"shademodel", gl_shademodel
},
8434 {"underlay", gl_underlay
},
8435 {"bgnclosedline", gl_bgnclosedline
},
8436 {"bgnline", gl_bgnline
},
8437 {"bgnpoint", gl_bgnpoint
},
8438 {"bgnpolygon", gl_bgnpolygon
},
8439 {"bgnsurface", gl_bgnsurface
},
8440 {"bgntmesh", gl_bgntmesh
},
8441 {"bgntrim", gl_bgntrim
},
8442 {"endclosedline", gl_endclosedline
},
8443 {"endline", gl_endline
},
8444 {"endpoint", gl_endpoint
},
8445 {"endpolygon", gl_endpolygon
},
8446 {"endsurface", gl_endsurface
},
8447 {"endtmesh", gl_endtmesh
},
8448 {"endtrim", gl_endtrim
},
8449 {"blendfunction", gl_blendfunction
},
8456 {"colorf", gl_colorf
},
8457 {"cpack", gl_cpack
},
8458 {"czclear", gl_czclear
},
8459 {"dglclose", gl_dglclose
},
8460 {"dglopen", gl_dglopen
},
8461 {"getgdesc", gl_getgdesc
},
8462 {"getnurbsproperty", gl_getnurbsproperty
},
8463 {"glcompat", gl_glcompat
},
8464 {"iconsize", gl_iconsize
},
8465 {"icontitle", gl_icontitle
},
8466 {"lRGBrange", gl_lRGBrange
},
8467 {"linesmooth", gl_linesmooth
},
8468 {"lmcolor", gl_lmcolor
},
8469 {"logicop", gl_logicop
},
8470 {"lsetdepth", gl_lsetdepth
},
8471 {"lshaderange", gl_lshaderange
},
8473 {"noborder", gl_noborder
},
8474 {"pntsmooth", gl_pntsmooth
},
8475 {"readsource", gl_readsource
},
8476 {"rectzoom", gl_rectzoom
},
8478 {"sboxi", gl_sboxi
},
8479 {"sboxs", gl_sboxs
},
8480 {"sboxf", gl_sboxf
},
8481 {"sboxfi", gl_sboxfi
},
8482 {"sboxfs", gl_sboxfs
},
8483 {"setnurbsproperty", gl_setnurbsproperty
},
8484 {"setpup", gl_setpup
},
8485 {"smoothline", gl_smoothline
},
8486 {"subpixel", gl_subpixel
},
8487 {"swaptmesh", gl_swaptmesh
},
8488 {"swinopen", gl_swinopen
},
8498 {"videocmd", gl_videocmd
},
8499 {"windepth", gl_windepth
},
8500 {"wmpack", gl_wmpack
},
8501 {"zdraw", gl_zdraw
},
8502 {"zfunction", gl_zfunction
},
8503 {"zsource", gl_zsource
},
8504 {"zwritemask", gl_zwritemask
},
8508 {"pixmode", gl_pixmode
},
8509 {"qgetfd", gl_qgetfd
},
8510 {"dither", gl_dither
},
8511 {NULL
, NULL
} /* Sentinel */
8517 (void) Py_InitModule("gl", gl_methods
);