Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1 | /*********************************************************** |
Guido van Rossum | fd71b9e | 2000-06-30 23:50:40 +0000 | [diff] [blame] | 2 | Copyright (c) 2000, BeOpen.com. |
| 3 | Copyright (c) 1995-2000, Corporation for National Research Initiatives. |
| 4 | Copyright (c) 1990-1995, Stichting Mathematisch Centrum. |
| 5 | All rights reserved. |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6 | |
Guido van Rossum | fd71b9e | 2000-06-30 23:50:40 +0000 | [diff] [blame] | 7 | See the file "Misc/COPYRIGHT" for information on usage and |
| 8 | redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 9 | ******************************************************************/ |
| 10 | |
| 11 | /* |
| 12 | Input used to generate the Python module "glmodule.c". |
| 13 | The stub generator is a Python script called "cgen.py". |
| 14 | |
| 15 | Each definition must be contained on one line: |
| 16 | |
| 17 | <returntype> <name> <type> <arg> <type> <arg> |
| 18 | |
| 19 | <returntype> can be: void, short, long (XXX maybe others?) |
| 20 | |
| 21 | <type> can be: char, string, short, float, long, or double |
| 22 | string indicates a null terminated string; |
| 23 | if <type> is char and <arg> begins with a *, the * is stripped |
| 24 | and <type> is changed into string |
| 25 | |
| 26 | <arg> has the form <mode> or <mode>[<subscript>] |
| 27 | where <mode> can be |
| 28 | s: arg is sent |
| 29 | r: arg is received (arg is a pointer) |
| 30 | and <subscript> can be (N and I are numbers): |
| 31 | N |
| 32 | argI |
| 33 | retval |
| 34 | N*argI |
| 35 | N*I |
| 36 | N*retval |
| 37 | In the case where the subscript consists of two parts |
| 38 | separated by *, the first part is the width of the matrix, and |
| 39 | the second part is the length of the matrix. This order is |
| 40 | opposite from the order used in C to declare a two-dimensional |
| 41 | matrix. |
| 42 | */ |
| 43 | |
| 44 | /* |
| 45 | * An attempt has been made to make this module switch threads on qread |
| 46 | * calls. It is far from safe, though. |
| 47 | */ |
| 48 | |
| 49 | #include <gl.h> |
| 50 | #include <device.h> |
| 51 | |
| 52 | #ifdef __sgi |
| 53 | extern int devport(); |
| 54 | extern int textwritemask(); |
| 55 | extern int pagewritemask(); |
| 56 | extern int gewrite(); |
| 57 | extern int gettp(); |
| 58 | #endif |
| 59 | |
| 60 | #include "Python.h" |
| 61 | #include "cgensupport.h" |
| 62 | |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 63 | /* |
| 64 | Some stubs are too complicated for the stub generator. |
| 65 | We can include manually written versions of them here. |
| 66 | A line starting with '%' gives the name of the function so the stub |
| 67 | generator can include it in the table of functions. |
| 68 | */ |
| 69 | |
| 70 | |
| 71 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 72 | gl_qread(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 73 | { |
| 74 | long retval; |
| 75 | short arg1 ; |
| 76 | Py_BEGIN_ALLOW_THREADS |
| 77 | retval = qread( & arg1 ); |
| 78 | Py_END_ALLOW_THREADS |
| 79 | { PyObject *v = PyTuple_New( 2 ); |
| 80 | if (v == NULL) return NULL; |
| 81 | PyTuple_SetItem(v, 0, mknewlongobject(retval)); |
| 82 | PyTuple_SetItem(v, 1, mknewshortobject(arg1)); |
| 83 | return v; |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | |
| 88 | /* |
| 89 | varray -- an array of v.. calls. |
| 90 | The argument is an array (maybe list or tuple) of points. |
| 91 | Each point must be a tuple or list of coordinates (x, y, z). |
| 92 | The points may be 2- or 3-dimensional but must all have the |
| 93 | same dimension. Float and int values may be mixed however. |
| 94 | The points are always converted to 3D double precision points |
| 95 | by assuming z=0.0 if necessary (as indicated in the man page), |
| 96 | and for each point v3d() is called. |
| 97 | */ |
| 98 | |
| 99 | |
| 100 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 101 | gl_varray(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 102 | { |
| 103 | PyObject *v, *w=NULL; |
| 104 | int i, n, width; |
| 105 | double vec[3]; |
Tim Peters | dbd9ba6 | 2000-07-09 03:09:57 +0000 | [diff] [blame] | 106 | PyObject * (*getitem)(PyObject *, int); |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 107 | |
| 108 | if (!PyArg_GetObject(args, 1, 0, &v)) |
| 109 | return NULL; |
| 110 | |
| 111 | if (PyList_Check(v)) { |
| 112 | n = PyList_Size(v); |
| 113 | getitem = PyList_GetItem; |
| 114 | } |
| 115 | else if (PyTuple_Check(v)) { |
| 116 | n = PyTuple_Size(v); |
| 117 | getitem = PyTuple_GetItem; |
| 118 | } |
| 119 | else { |
| 120 | PyErr_BadArgument(); |
| 121 | return NULL; |
| 122 | } |
| 123 | |
| 124 | if (n == 0) { |
| 125 | Py_INCREF(Py_None); |
| 126 | return Py_None; |
| 127 | } |
| 128 | if (n > 0) |
| 129 | w = (*getitem)(v, 0); |
| 130 | |
| 131 | width = 0; |
| 132 | if (w == NULL) { |
| 133 | } |
| 134 | else if (PyList_Check(w)) { |
| 135 | width = PyList_Size(w); |
| 136 | } |
| 137 | else if (PyTuple_Check(w)) { |
| 138 | width = PyTuple_Size(w); |
| 139 | } |
| 140 | |
| 141 | switch (width) { |
| 142 | case 2: |
| 143 | vec[2] = 0.0; |
| 144 | /* Fall through */ |
| 145 | case 3: |
| 146 | break; |
| 147 | default: |
| 148 | PyErr_BadArgument(); |
| 149 | return NULL; |
| 150 | } |
| 151 | |
| 152 | for (i = 0; i < n; i++) { |
| 153 | w = (*getitem)(v, i); |
| 154 | if (!PyArg_GetDoubleArray(w, 1, 0, width, vec)) |
| 155 | return NULL; |
| 156 | v3d(vec); |
| 157 | } |
| 158 | |
| 159 | Py_INCREF(Py_None); |
| 160 | return Py_None; |
| 161 | } |
| 162 | |
| 163 | /* |
| 164 | vnarray, nvarray -- an array of n3f and v3f calls. |
| 165 | The argument is an array (list or tuple) of pairs of points and normals. |
| 166 | Each pair is a tuple (NOT a list) of a point and a normal for that point. |
| 167 | Each point or normal must be a tuple (NOT a list) of coordinates (x, y, z). |
| 168 | Three coordinates must be given. Float and int values may be mixed. |
| 169 | For each pair, n3f() is called for the normal, and then v3f() is called |
| 170 | for the vector. |
| 171 | |
| 172 | vnarray and nvarray differ only in the order of the vector and normal in |
| 173 | the pair: vnarray expects (v, n) while nvarray expects (n, v). |
| 174 | */ |
| 175 | |
| 176 | static PyObject *gen_nvarray(); /* Forward */ |
| 177 | |
| 178 | |
| 179 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 180 | gl_nvarray(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 181 | { |
| 182 | return gen_nvarray(args, 0); |
| 183 | } |
| 184 | |
| 185 | |
| 186 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 187 | gl_vnarray(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 188 | { |
| 189 | return gen_nvarray(args, 1); |
| 190 | } |
| 191 | |
| 192 | /* Generic, internal version of {nv,nv}array: inorm indicates the |
| 193 | argument order, 0: normal first, 1: vector first. */ |
| 194 | |
| 195 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 196 | gen_nvarray(PyObject *args, int inorm) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 197 | { |
| 198 | PyObject *v, *w, *wnorm, *wvec; |
| 199 | int i, n; |
| 200 | float norm[3], vec[3]; |
Tim Peters | dbd9ba6 | 2000-07-09 03:09:57 +0000 | [diff] [blame] | 201 | PyObject * (*getitem)(PyObject *, int); |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 202 | |
| 203 | if (!PyArg_GetObject(args, 1, 0, &v)) |
| 204 | return NULL; |
| 205 | |
| 206 | if (PyList_Check(v)) { |
| 207 | n = PyList_Size(v); |
| 208 | getitem = PyList_GetItem; |
| 209 | } |
| 210 | else if (PyTuple_Check(v)) { |
| 211 | n = PyTuple_Size(v); |
| 212 | getitem = PyTuple_GetItem; |
| 213 | } |
| 214 | else { |
| 215 | PyErr_BadArgument(); |
| 216 | return NULL; |
| 217 | } |
| 218 | |
| 219 | for (i = 0; i < n; i++) { |
| 220 | w = (*getitem)(v, i); |
| 221 | if (!PyTuple_Check(w) || PyTuple_Size(w) != 2) { |
| 222 | PyErr_BadArgument(); |
| 223 | return NULL; |
| 224 | } |
| 225 | wnorm = PyTuple_GetItem(w, inorm); |
| 226 | wvec = PyTuple_GetItem(w, 1 - inorm); |
| 227 | if (!PyArg_GetFloatArray(wnorm, 1, 0, 3, norm) || |
| 228 | !PyArg_GetFloatArray(wvec, 1, 0, 3, vec)) |
| 229 | return NULL; |
| 230 | n3f(norm); |
| 231 | v3f(vec); |
| 232 | } |
| 233 | |
| 234 | Py_INCREF(Py_None); |
| 235 | return Py_None; |
| 236 | } |
| 237 | |
| 238 | /* nurbssurface(s_knots[], t_knots[], ctl[][], s_order, t_order, type). |
| 239 | The dimensions of ctl[] are computed as follows: |
| 240 | [len(s_knots) - s_order], [len(t_knots) - t_order] |
| 241 | */ |
| 242 | |
| 243 | |
| 244 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 245 | gl_nurbssurface(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 246 | { |
| 247 | long arg1 ; |
| 248 | double * arg2 ; |
| 249 | long arg3 ; |
| 250 | double * arg4 ; |
| 251 | double *arg5 ; |
| 252 | long arg6 ; |
| 253 | long arg7 ; |
| 254 | long arg8 ; |
| 255 | long ncoords; |
| 256 | long s_byte_stride, t_byte_stride; |
| 257 | long s_nctl, t_nctl; |
| 258 | long s, t; |
| 259 | PyObject *v, *w, *pt; |
| 260 | double *pnext; |
| 261 | if (!PyArg_GetLongArraySize(args, 6, 0, &arg1)) |
| 262 | return NULL; |
| 263 | if ((arg2 = PyMem_NEW(double, arg1 )) == NULL) { |
| 264 | return PyErr_NoMemory(); |
| 265 | } |
| 266 | if (!PyArg_GetDoubleArray(args, 6, 0, arg1 , arg2)) |
| 267 | return NULL; |
| 268 | if (!PyArg_GetLongArraySize(args, 6, 1, &arg3)) |
| 269 | return NULL; |
| 270 | if ((arg4 = PyMem_NEW(double, arg3 )) == NULL) { |
| 271 | return PyErr_NoMemory(); |
| 272 | } |
| 273 | if (!PyArg_GetDoubleArray(args, 6, 1, arg3 , arg4)) |
| 274 | return NULL; |
| 275 | if (!PyArg_GetLong(args, 6, 3, &arg6)) |
| 276 | return NULL; |
| 277 | if (!PyArg_GetLong(args, 6, 4, &arg7)) |
| 278 | return NULL; |
| 279 | if (!PyArg_GetLong(args, 6, 5, &arg8)) |
| 280 | return NULL; |
| 281 | if (arg8 == N_XYZ) |
| 282 | ncoords = 3; |
| 283 | else if (arg8 == N_XYZW) |
| 284 | ncoords = 4; |
| 285 | else { |
| 286 | PyErr_BadArgument(); |
| 287 | return NULL; |
| 288 | } |
| 289 | s_nctl = arg1 - arg6; |
| 290 | t_nctl = arg3 - arg7; |
| 291 | if (!PyArg_GetObject(args, 6, 2, &v)) |
| 292 | return NULL; |
| 293 | if (!PyList_Check(v) || PyList_Size(v) != s_nctl) { |
| 294 | PyErr_BadArgument(); |
| 295 | return NULL; |
| 296 | } |
| 297 | if ((arg5 = PyMem_NEW(double, s_nctl*t_nctl*ncoords )) == NULL) { |
| 298 | return PyErr_NoMemory(); |
| 299 | } |
| 300 | pnext = arg5; |
| 301 | for (s = 0; s < s_nctl; s++) { |
| 302 | w = PyList_GetItem(v, s); |
| 303 | if (w == NULL || !PyList_Check(w) || |
| 304 | PyList_Size(w) != t_nctl) { |
| 305 | PyErr_BadArgument(); |
| 306 | return NULL; |
| 307 | } |
| 308 | for (t = 0; t < t_nctl; t++) { |
| 309 | pt = PyList_GetItem(w, t); |
| 310 | if (!PyArg_GetDoubleArray(pt, 1, 0, ncoords, pnext)) |
| 311 | return NULL; |
| 312 | pnext += ncoords; |
| 313 | } |
| 314 | } |
| 315 | s_byte_stride = sizeof(double) * ncoords; |
| 316 | t_byte_stride = s_byte_stride * s_nctl; |
| 317 | nurbssurface( arg1 , arg2 , arg3 , arg4 , |
| 318 | s_byte_stride , t_byte_stride , arg5 , arg6 , arg7 , arg8 ); |
| 319 | PyMem_DEL(arg2); |
| 320 | PyMem_DEL(arg4); |
| 321 | PyMem_DEL(arg5); |
| 322 | Py_INCREF(Py_None); |
| 323 | return Py_None; |
| 324 | } |
| 325 | |
| 326 | /* nurbscurve(knots, ctlpoints, order, type). |
| 327 | The length of ctlpoints is len(knots)-order. */ |
| 328 | |
| 329 | |
| 330 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 331 | gl_nurbscurve(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 332 | { |
| 333 | long arg1 ; |
| 334 | double * arg2 ; |
| 335 | long arg3 ; |
| 336 | double * arg4 ; |
| 337 | long arg5 ; |
| 338 | long arg6 ; |
| 339 | int ncoords, npoints; |
| 340 | int i; |
| 341 | PyObject *v; |
| 342 | double *pnext; |
| 343 | if (!PyArg_GetLongArraySize(args, 4, 0, &arg1)) |
| 344 | return NULL; |
| 345 | if ((arg2 = PyMem_NEW(double, arg1 )) == NULL) { |
| 346 | return PyErr_NoMemory(); |
| 347 | } |
| 348 | if (!PyArg_GetDoubleArray(args, 4, 0, arg1 , arg2)) |
| 349 | return NULL; |
| 350 | if (!PyArg_GetLong(args, 4, 2, &arg5)) |
| 351 | return NULL; |
| 352 | if (!PyArg_GetLong(args, 4, 3, &arg6)) |
| 353 | return NULL; |
| 354 | if (arg6 == N_ST) |
| 355 | ncoords = 2; |
| 356 | else if (arg6 == N_STW) |
| 357 | ncoords = 3; |
| 358 | else { |
| 359 | PyErr_BadArgument(); |
| 360 | return NULL; |
| 361 | } |
| 362 | npoints = arg1 - arg5; |
| 363 | if (!PyArg_GetObject(args, 4, 1, &v)) |
| 364 | return NULL; |
| 365 | if (!PyList_Check(v) || PyList_Size(v) != npoints) { |
| 366 | PyErr_BadArgument(); |
| 367 | return NULL; |
| 368 | } |
| 369 | if ((arg4 = PyMem_NEW(double, npoints*ncoords )) == NULL) { |
| 370 | return PyErr_NoMemory(); |
| 371 | } |
| 372 | pnext = arg4; |
| 373 | for (i = 0; i < npoints; i++) { |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 374 | if (!PyArg_GetDoubleArray(PyList_GetItem(v, i), 1, 0, ncoords, pnext)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 375 | return NULL; |
| 376 | pnext += ncoords; |
| 377 | } |
| 378 | arg3 = (sizeof(double)) * ncoords; |
| 379 | nurbscurve( arg1 , arg2 , arg3 , arg4 , arg5 , arg6 ); |
| 380 | PyMem_DEL(arg2); |
| 381 | PyMem_DEL(arg4); |
| 382 | Py_INCREF(Py_None); |
| 383 | return Py_None; |
| 384 | } |
| 385 | |
| 386 | /* pwlcurve(points, type). |
| 387 | Points is a list of points. Type must be N_ST. */ |
| 388 | |
| 389 | |
| 390 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 391 | gl_pwlcurve(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 392 | { |
| 393 | PyObject *v; |
| 394 | long type; |
| 395 | double *data, *pnext; |
| 396 | long npoints, ncoords; |
| 397 | int i; |
| 398 | if (!PyArg_GetObject(args, 2, 0, &v)) |
| 399 | return NULL; |
| 400 | if (!PyArg_GetLong(args, 2, 1, &type)) |
| 401 | return NULL; |
| 402 | if (!PyList_Check(v)) { |
| 403 | PyErr_BadArgument(); |
| 404 | return NULL; |
| 405 | } |
| 406 | npoints = PyList_Size(v); |
| 407 | if (type == N_ST) |
| 408 | ncoords = 2; |
| 409 | else { |
| 410 | PyErr_BadArgument(); |
| 411 | return NULL; |
| 412 | } |
| 413 | if ((data = PyMem_NEW(double, npoints*ncoords)) == NULL) { |
| 414 | return PyErr_NoMemory(); |
| 415 | } |
| 416 | pnext = data; |
| 417 | for (i = 0; i < npoints; i++) { |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 418 | if (!PyArg_GetDoubleArray(PyList_GetItem(v, i), 1, 0, ncoords, pnext)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 419 | return NULL; |
| 420 | pnext += ncoords; |
| 421 | } |
| 422 | pwlcurve(npoints, data, sizeof(double)*ncoords, type); |
| 423 | PyMem_DEL(data); |
| 424 | Py_INCREF(Py_None); |
| 425 | return Py_None; |
| 426 | } |
| 427 | |
| 428 | |
| 429 | /* Picking and Selecting */ |
| 430 | |
| 431 | static short *pickbuffer = NULL; |
| 432 | static long pickbuffersize; |
| 433 | |
| 434 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 435 | pick_select(PyObject *args, void (*func)()) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 436 | { |
| 437 | if (!PyArg_GetLong(args, 1, 0, &pickbuffersize)) |
| 438 | return NULL; |
| 439 | if (pickbuffer != NULL) { |
| 440 | PyErr_SetString(PyExc_RuntimeError, |
| 441 | "pick/gselect: already picking/selecting"); |
| 442 | return NULL; |
| 443 | } |
| 444 | if ((pickbuffer = PyMem_NEW(short, pickbuffersize)) == NULL) { |
| 445 | return PyErr_NoMemory(); |
| 446 | } |
| 447 | (*func)(pickbuffer, pickbuffersize); |
| 448 | Py_INCREF(Py_None); |
| 449 | return Py_None; |
| 450 | } |
| 451 | |
| 452 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 453 | endpick_select(PyObject *args, long (*func)()) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 454 | { |
| 455 | PyObject *v, *w; |
| 456 | int i, nhits, n; |
| 457 | if (!PyArg_NoArgs(args)) |
| 458 | return NULL; |
| 459 | if (pickbuffer == NULL) { |
| 460 | PyErr_SetString(PyExc_RuntimeError, |
| 461 | "endpick/endselect: not in pick/select mode"); |
| 462 | return NULL; |
| 463 | } |
| 464 | nhits = (*func)(pickbuffer); |
| 465 | if (nhits < 0) { |
| 466 | nhits = -nhits; /* How to report buffer overflow otherwise? */ |
| 467 | } |
| 468 | /* Scan the buffer to see how many integers */ |
| 469 | n = 0; |
| 470 | for (; nhits > 0; nhits--) { |
| 471 | n += 1 + pickbuffer[n]; |
| 472 | } |
| 473 | v = PyList_New(n); |
| 474 | if (v == NULL) |
| 475 | return NULL; |
| 476 | /* XXX Could do it nicer and interpret the data structure here, |
| 477 | returning a list of lists. But this can be done in Python... */ |
| 478 | for (i = 0; i < n; i++) { |
| 479 | w = PyInt_FromLong((long)pickbuffer[i]); |
| 480 | if (w == NULL) { |
| 481 | Py_DECREF(v); |
| 482 | return NULL; |
| 483 | } |
| 484 | PyList_SetItem(v, i, w); |
| 485 | } |
| 486 | PyMem_DEL(pickbuffer); |
| 487 | pickbuffer = NULL; |
| 488 | return v; |
| 489 | } |
| 490 | |
| 491 | extern void pick(), gselect(); |
| 492 | extern long endpick(), endselect(); |
| 493 | |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 494 | static PyObject *gl_pick(PyObject *self, PyObject *args) |
| 495 | { |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 496 | return pick_select(args, pick); |
| 497 | } |
| 498 | |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 499 | static PyObject *gl_endpick(PyObject *self, PyObject *args) |
| 500 | { |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 501 | return endpick_select(args, endpick); |
| 502 | } |
| 503 | |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 504 | static PyObject *gl_gselect(PyObject *self, PyObject *args) |
| 505 | { |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 506 | return pick_select(args, gselect); |
| 507 | } |
| 508 | |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 509 | static PyObject *gl_endselect(PyObject *self, PyObject *args) |
| 510 | { |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 511 | return endpick_select(args, endselect); |
| 512 | } |
| 513 | |
| 514 | |
| 515 | /* XXX The generator botches this one. Here's a quick hack to fix it. */ |
| 516 | |
| 517 | /* XXX The generator botches this one. Here's a quick hack to fix it. */ |
| 518 | |
| 519 | |
| 520 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 521 | gl_getmatrix(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 522 | { |
| 523 | Matrix arg1; |
| 524 | PyObject *v, *w; |
| 525 | int i, j; |
| 526 | getmatrix( arg1 ); |
| 527 | v = PyList_New(16); |
| 528 | if (v == NULL) { |
| 529 | return PyErr_NoMemory(); |
| 530 | } |
| 531 | for (i = 0; i < 4; i++) for (j = 0; j < 4; j++) { |
| 532 | w = mknewfloatobject(arg1[i][j]); |
| 533 | if (w == NULL) { |
| 534 | Py_DECREF(v); |
| 535 | return NULL; |
| 536 | } |
| 537 | PyList_SetItem(v, i*4+j, w); |
| 538 | } |
| 539 | return v; |
| 540 | } |
| 541 | |
| 542 | /* Here's an alternate version that returns a 4x4 matrix instead of |
| 543 | a vector. Unfortunately it is incompatible with loadmatrix and |
| 544 | multmatrix... */ |
| 545 | |
| 546 | |
| 547 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 548 | gl_altgetmatrix(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 549 | { |
| 550 | Matrix arg1; |
| 551 | PyObject *v, *w; |
| 552 | int i, j; |
| 553 | getmatrix( arg1 ); |
| 554 | v = PyList_New(4); |
| 555 | if (v == NULL) { |
| 556 | return NULL; |
| 557 | } |
| 558 | for (i = 0; i < 4; i++) { |
| 559 | w = PyList_New(4); |
| 560 | if (w == NULL) { |
| 561 | Py_DECREF(v); |
| 562 | return NULL; |
| 563 | } |
| 564 | PyList_SetItem(v, i, w); |
| 565 | } |
| 566 | for (i = 0; i < 4; i++) { |
| 567 | for (j = 0; j < 4; j++) { |
| 568 | w = mknewfloatobject(arg1[i][j]); |
| 569 | if (w == NULL) { |
| 570 | Py_DECREF(v); |
| 571 | return NULL; |
| 572 | } |
| 573 | PyList_SetItem(PyList_GetItem(v, i), j, w); |
| 574 | } |
| 575 | } |
| 576 | return v; |
| 577 | } |
| 578 | |
| 579 | |
| 580 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 581 | gl_lrectwrite(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 582 | { |
| 583 | short x1 ; |
| 584 | short y1 ; |
| 585 | short x2 ; |
| 586 | short y2 ; |
| 587 | string parray ; |
| 588 | PyObject *s; |
| 589 | #if 0 |
| 590 | int pixcount; |
| 591 | #endif |
| 592 | if (!PyArg_GetShort(args, 5, 0, &x1)) |
| 593 | return NULL; |
| 594 | if (!PyArg_GetShort(args, 5, 1, &y1)) |
| 595 | return NULL; |
| 596 | if (!PyArg_GetShort(args, 5, 2, &x2)) |
| 597 | return NULL; |
| 598 | if (!PyArg_GetShort(args, 5, 3, &y2)) |
| 599 | return NULL; |
| 600 | if (!PyArg_GetString(args, 5, 4, &parray)) |
| 601 | return NULL; |
| 602 | if (!PyArg_GetObject(args, 5, 4, &s)) |
| 603 | return NULL; |
| 604 | #if 0 |
| 605 | /* Don't check this, it breaks experiments with pixmode(PM_SIZE, ...) */ |
| 606 | pixcount = (long)(x2+1-x1) * (long)(y2+1-y1); |
| 607 | if (!PyString_Check(s) || PyString_Size(s) != pixcount*sizeof(long)) { |
| 608 | PyErr_SetString(PyExc_RuntimeError, |
| 609 | "string arg to lrectwrite has wrong size"); |
| 610 | return NULL; |
| 611 | } |
| 612 | #endif |
| 613 | lrectwrite( x1 , y1 , x2 , y2 , (unsigned long *) parray ); |
| 614 | Py_INCREF(Py_None); |
| 615 | return Py_None; |
| 616 | } |
| 617 | |
| 618 | |
| 619 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 620 | gl_lrectread(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 621 | { |
| 622 | short x1 ; |
| 623 | short y1 ; |
| 624 | short x2 ; |
| 625 | short y2 ; |
| 626 | PyObject *parray; |
| 627 | int pixcount; |
| 628 | if (!PyArg_GetShort(args, 4, 0, &x1)) |
| 629 | return NULL; |
| 630 | if (!PyArg_GetShort(args, 4, 1, &y1)) |
| 631 | return NULL; |
| 632 | if (!PyArg_GetShort(args, 4, 2, &x2)) |
| 633 | return NULL; |
| 634 | if (!PyArg_GetShort(args, 4, 3, &y2)) |
| 635 | return NULL; |
| 636 | pixcount = (long)(x2+1-x1) * (long)(y2+1-y1); |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 637 | parray = PyString_FromStringAndSize((char *)NULL, pixcount*sizeof(long)); |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 638 | if (parray == NULL) |
| 639 | return NULL; /* No memory */ |
| 640 | lrectread(x1, y1, x2, y2, (unsigned long *) PyString_AsString(parray)); |
| 641 | return parray; |
| 642 | } |
| 643 | |
| 644 | |
| 645 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 646 | gl_readdisplay(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 647 | { |
| 648 | short x1, y1, x2, y2; |
| 649 | unsigned long *parray, hints; |
| 650 | long size, size_ret; |
| 651 | PyObject *rv; |
| 652 | |
| 653 | if ( !PyArg_Parse(args, "hhhhl", &x1, &y1, &x2, &y2, &hints) ) |
| 654 | return 0; |
| 655 | size = (long)(x2+1-x1) * (long)(y2+1-y1); |
| 656 | rv = PyString_FromStringAndSize((char *)NULL, size*sizeof(long)); |
| 657 | if ( rv == NULL ) |
| 658 | return NULL; |
| 659 | parray = (unsigned long *)PyString_AsString(rv); |
| 660 | size_ret = readdisplay(x1, y1, x2, y2, parray, hints); |
| 661 | if ( size_ret != size ) { |
| 662 | printf("gl_readdisplay: got %ld pixels, expected %ld\n", |
| 663 | size_ret, size); |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 664 | PyErr_SetString(PyExc_RuntimeError, "readdisplay returned unexpected length"); |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 665 | return NULL; |
| 666 | } |
| 667 | return rv; |
| 668 | } |
| 669 | |
| 670 | /* Desperately needed, here are tools to compress and decompress |
| 671 | the data manipulated by lrectread/lrectwrite. |
| 672 | |
| 673 | gl.packrect(width, height, packfactor, bigdata) --> smalldata |
| 674 | makes 'bigdata' 4*(packfactor**2) times smaller by: |
| 675 | - turning it into B/W (a factor 4) |
| 676 | - replacing squares of size pacfactor by one |
| 677 | representative |
| 678 | |
| 679 | gl.unpackrect(width, height, packfactor, smalldata) --> bigdata |
| 680 | is the inverse; the numeric arguments must be *the same*. |
| 681 | |
| 682 | Both work best if width and height are multiples of packfactor |
| 683 | (in fact unpackrect will leave garbage bytes). |
| 684 | */ |
| 685 | |
| 686 | |
| 687 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 688 | gl_packrect(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 689 | { |
| 690 | long width, height, packfactor; |
| 691 | char *s; |
| 692 | PyObject *unpacked, *packed; |
| 693 | int pixcount, packedcount, x, y, r, g, b; |
| 694 | unsigned long pixel; |
| 695 | unsigned char *p; |
| 696 | unsigned long *parray; |
| 697 | if (!PyArg_GetLong(args, 4, 0, &width)) |
| 698 | return NULL; |
| 699 | if (!PyArg_GetLong(args, 4, 1, &height)) |
| 700 | return NULL; |
| 701 | if (!PyArg_GetLong(args, 4, 2, &packfactor)) |
| 702 | return NULL; |
| 703 | if (!PyArg_GetString(args, 4, 3, &s)) /* For type checking only */ |
| 704 | return NULL; |
| 705 | if (!PyArg_GetObject(args, 4, 3, &unpacked)) |
| 706 | return NULL; |
| 707 | if (width <= 0 || height <= 0 || packfactor <= 0) { |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 708 | PyErr_SetString(PyExc_RuntimeError, "packrect args must be > 0"); |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 709 | return NULL; |
| 710 | } |
| 711 | pixcount = width*height; |
| 712 | packedcount = ((width+packfactor-1)/packfactor) * |
| 713 | ((height+packfactor-1)/packfactor); |
| 714 | if (PyString_Size(unpacked) != pixcount*sizeof(long)) { |
| 715 | PyErr_SetString(PyExc_RuntimeError, |
| 716 | "string arg to packrect has wrong size"); |
| 717 | return NULL; |
| 718 | } |
| 719 | packed = PyString_FromStringAndSize((char *)NULL, packedcount); |
| 720 | if (packed == NULL) |
| 721 | return NULL; |
| 722 | parray = (unsigned long *) PyString_AsString(unpacked); |
| 723 | p = (unsigned char *) PyString_AsString(packed); |
| 724 | for (y = 0; y < height; y += packfactor, parray += packfactor*width) { |
| 725 | for (x = 0; x < width; x += packfactor) { |
| 726 | pixel = parray[x]; |
| 727 | r = pixel & 0xff; |
| 728 | g = (pixel >> 8) & 0xff; |
| 729 | b = (pixel >> 16) & 0xff; |
| 730 | *p++ = (30*r+59*g+11*b) / 100; |
| 731 | } |
| 732 | } |
| 733 | return packed; |
| 734 | } |
| 735 | |
| 736 | |
| 737 | static unsigned long unpacktab[256]; |
| 738 | static int unpacktab_inited = 0; |
| 739 | |
| 740 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 741 | gl_unpackrect(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 742 | { |
| 743 | long width, height, packfactor; |
| 744 | char *s; |
| 745 | PyObject *unpacked, *packed; |
| 746 | int pixcount, packedcount; |
| 747 | register unsigned char *p; |
| 748 | register unsigned long *parray; |
| 749 | if (!unpacktab_inited) { |
| 750 | register int white; |
| 751 | for (white = 256; --white >= 0; ) |
| 752 | unpacktab[white] = white * 0x010101L; |
| 753 | unpacktab_inited++; |
| 754 | } |
| 755 | if (!PyArg_GetLong(args, 4, 0, &width)) |
| 756 | return NULL; |
| 757 | if (!PyArg_GetLong(args, 4, 1, &height)) |
| 758 | return NULL; |
| 759 | if (!PyArg_GetLong(args, 4, 2, &packfactor)) |
| 760 | return NULL; |
| 761 | if (!PyArg_GetString(args, 4, 3, &s)) /* For type checking only */ |
| 762 | return NULL; |
| 763 | if (!PyArg_GetObject(args, 4, 3, &packed)) |
| 764 | return NULL; |
| 765 | if (width <= 0 || height <= 0 || packfactor <= 0) { |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 766 | PyErr_SetString(PyExc_RuntimeError, "packrect args must be > 0"); |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 767 | return NULL; |
| 768 | } |
| 769 | pixcount = width*height; |
| 770 | packedcount = ((width+packfactor-1)/packfactor) * |
| 771 | ((height+packfactor-1)/packfactor); |
| 772 | if (PyString_Size(packed) != packedcount) { |
| 773 | PyErr_SetString(PyExc_RuntimeError, |
| 774 | "string arg to unpackrect has wrong size"); |
| 775 | return NULL; |
| 776 | } |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 777 | unpacked = PyString_FromStringAndSize((char *)NULL, pixcount*sizeof(long)); |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 778 | if (unpacked == NULL) |
| 779 | return NULL; |
| 780 | parray = (unsigned long *) PyString_AsString(unpacked); |
| 781 | p = (unsigned char *) PyString_AsString(packed); |
| 782 | if (packfactor == 1 && width*height > 0) { |
| 783 | /* Just expand bytes to longs */ |
| 784 | register int x = width * height; |
| 785 | do { |
| 786 | *parray++ = unpacktab[*p++]; |
| 787 | } while (--x >= 0); |
| 788 | } |
| 789 | else { |
| 790 | register int y; |
| 791 | for (y = 0; y < height-packfactor+1; |
| 792 | y += packfactor, parray += packfactor*width) { |
| 793 | register int x; |
| 794 | for (x = 0; x < width-packfactor+1; x += packfactor) { |
| 795 | register unsigned long pixel = unpacktab[*p++]; |
| 796 | register int i; |
| 797 | for (i = packfactor*width; (i-=width) >= 0;) { |
| 798 | register int j; |
| 799 | for (j = packfactor; --j >= 0; ) |
| 800 | parray[i+x+j] = pixel; |
| 801 | } |
| 802 | } |
| 803 | } |
| 804 | } |
| 805 | return unpacked; |
| 806 | } |
| 807 | |
| 808 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 809 | gl_gversion(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 810 | { |
| 811 | char buf[20]; |
| 812 | gversion(buf); |
| 813 | return PyString_FromString(buf); |
| 814 | } |
| 815 | |
| 816 | |
Guido van Rossum | 89733a8 | 1998-10-21 16:10:40 +0000 | [diff] [blame] | 817 | /* void clear - Manual because of clash with termcap */ |
| 818 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 819 | gl_clear(PyObject *self, PyObject *args) |
Guido van Rossum | 89733a8 | 1998-10-21 16:10:40 +0000 | [diff] [blame] | 820 | { |
| 821 | __GLclear( ); |
| 822 | Py_INCREF(Py_None); |
| 823 | return Py_None; |
| 824 | } |
| 825 | |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 826 | /* End of manually written stubs */ |
| 827 | |
| 828 | |
| 829 | /* long getshade */ |
| 830 | |
| 831 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 832 | gl_getshade(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 833 | { |
| 834 | long retval; |
| 835 | retval = getshade( ); |
| 836 | return mknewlongobject(retval); |
| 837 | } |
| 838 | |
| 839 | /* void devport short s long s */ |
| 840 | |
| 841 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 842 | gl_devport(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 843 | { |
| 844 | short arg1 ; |
| 845 | long arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 846 | if (!getishortarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 847 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 848 | if (!getilongarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 849 | return NULL; |
| 850 | devport( arg1 , arg2 ); |
| 851 | Py_INCREF(Py_None); |
| 852 | return Py_None; |
| 853 | } |
| 854 | |
| 855 | /* void rdr2i long s long s */ |
| 856 | |
| 857 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 858 | gl_rdr2i(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 859 | { |
| 860 | long arg1 ; |
| 861 | long arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 862 | if (!getilongarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 863 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 864 | if (!getilongarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 865 | return NULL; |
| 866 | rdr2i( arg1 , arg2 ); |
| 867 | Py_INCREF(Py_None); |
| 868 | return Py_None; |
| 869 | } |
| 870 | |
| 871 | /* void rectfs short s short s short s short s */ |
| 872 | |
| 873 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 874 | gl_rectfs(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 875 | { |
| 876 | short arg1 ; |
| 877 | short arg2 ; |
| 878 | short arg3 ; |
| 879 | short arg4 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 880 | if (!getishortarg(args, 4, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 881 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 882 | if (!getishortarg(args, 4, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 883 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 884 | if (!getishortarg(args, 4, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 885 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 886 | if (!getishortarg(args, 4, 3, &arg4)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 887 | return NULL; |
| 888 | rectfs( arg1 , arg2 , arg3 , arg4 ); |
| 889 | Py_INCREF(Py_None); |
| 890 | return Py_None; |
| 891 | } |
| 892 | |
| 893 | /* void rects short s short s short s short s */ |
| 894 | |
| 895 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 896 | gl_rects(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 897 | { |
| 898 | short arg1 ; |
| 899 | short arg2 ; |
| 900 | short arg3 ; |
| 901 | short arg4 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 902 | if (!getishortarg(args, 4, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 903 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 904 | if (!getishortarg(args, 4, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 905 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 906 | if (!getishortarg(args, 4, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 907 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 908 | if (!getishortarg(args, 4, 3, &arg4)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 909 | return NULL; |
| 910 | rects( arg1 , arg2 , arg3 , arg4 ); |
| 911 | Py_INCREF(Py_None); |
| 912 | return Py_None; |
| 913 | } |
| 914 | |
| 915 | /* void rmv2i long s long s */ |
| 916 | |
| 917 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 918 | gl_rmv2i(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 919 | { |
| 920 | long arg1 ; |
| 921 | long arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 922 | if (!getilongarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 923 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 924 | if (!getilongarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 925 | return NULL; |
| 926 | rmv2i( arg1 , arg2 ); |
| 927 | Py_INCREF(Py_None); |
| 928 | return Py_None; |
| 929 | } |
| 930 | |
| 931 | /* void noport */ |
| 932 | |
| 933 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 934 | gl_noport(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 935 | { |
| 936 | noport( ); |
| 937 | Py_INCREF(Py_None); |
| 938 | return Py_None; |
| 939 | } |
| 940 | |
| 941 | /* void popviewport */ |
| 942 | |
| 943 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 944 | gl_popviewport(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 945 | { |
| 946 | popviewport( ); |
| 947 | Py_INCREF(Py_None); |
| 948 | return Py_None; |
| 949 | } |
| 950 | |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 951 | /* void clearhitcode */ |
| 952 | |
| 953 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 954 | gl_clearhitcode(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 955 | { |
| 956 | clearhitcode( ); |
| 957 | Py_INCREF(Py_None); |
| 958 | return Py_None; |
| 959 | } |
| 960 | |
| 961 | /* void closeobj */ |
| 962 | |
| 963 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 964 | gl_closeobj(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 965 | { |
| 966 | closeobj( ); |
| 967 | Py_INCREF(Py_None); |
| 968 | return Py_None; |
| 969 | } |
| 970 | |
| 971 | /* void cursoff */ |
| 972 | |
| 973 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 974 | gl_cursoff(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 975 | { |
| 976 | cursoff( ); |
| 977 | Py_INCREF(Py_None); |
| 978 | return Py_None; |
| 979 | } |
| 980 | |
| 981 | /* void curson */ |
| 982 | |
| 983 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 984 | gl_curson(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 985 | { |
| 986 | curson( ); |
| 987 | Py_INCREF(Py_None); |
| 988 | return Py_None; |
| 989 | } |
| 990 | |
| 991 | /* void doublebuffer */ |
| 992 | |
| 993 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 994 | gl_doublebuffer(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 995 | { |
| 996 | doublebuffer( ); |
| 997 | Py_INCREF(Py_None); |
| 998 | return Py_None; |
| 999 | } |
| 1000 | |
| 1001 | /* void finish */ |
| 1002 | |
| 1003 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1004 | gl_finish(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1005 | { |
| 1006 | finish( ); |
| 1007 | Py_INCREF(Py_None); |
| 1008 | return Py_None; |
| 1009 | } |
| 1010 | |
| 1011 | /* void gconfig */ |
| 1012 | |
| 1013 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1014 | gl_gconfig(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1015 | { |
| 1016 | gconfig( ); |
| 1017 | Py_INCREF(Py_None); |
| 1018 | return Py_None; |
| 1019 | } |
| 1020 | |
| 1021 | /* void ginit */ |
| 1022 | |
| 1023 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1024 | gl_ginit(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1025 | { |
| 1026 | ginit( ); |
| 1027 | Py_INCREF(Py_None); |
| 1028 | return Py_None; |
| 1029 | } |
| 1030 | |
| 1031 | /* void greset */ |
| 1032 | |
| 1033 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1034 | gl_greset(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1035 | { |
| 1036 | greset( ); |
| 1037 | Py_INCREF(Py_None); |
| 1038 | return Py_None; |
| 1039 | } |
| 1040 | |
| 1041 | /* void multimap */ |
| 1042 | |
| 1043 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1044 | gl_multimap(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1045 | { |
| 1046 | multimap( ); |
| 1047 | Py_INCREF(Py_None); |
| 1048 | return Py_None; |
| 1049 | } |
| 1050 | |
| 1051 | /* void onemap */ |
| 1052 | |
| 1053 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1054 | gl_onemap(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1055 | { |
| 1056 | onemap( ); |
| 1057 | Py_INCREF(Py_None); |
| 1058 | return Py_None; |
| 1059 | } |
| 1060 | |
| 1061 | /* void popattributes */ |
| 1062 | |
| 1063 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1064 | gl_popattributes(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1065 | { |
| 1066 | popattributes( ); |
| 1067 | Py_INCREF(Py_None); |
| 1068 | return Py_None; |
| 1069 | } |
| 1070 | |
| 1071 | /* void popmatrix */ |
| 1072 | |
| 1073 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1074 | gl_popmatrix(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1075 | { |
| 1076 | popmatrix( ); |
| 1077 | Py_INCREF(Py_None); |
| 1078 | return Py_None; |
| 1079 | } |
| 1080 | |
| 1081 | /* void pushattributes */ |
| 1082 | |
| 1083 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1084 | gl_pushattributes(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1085 | { |
| 1086 | pushattributes( ); |
| 1087 | Py_INCREF(Py_None); |
| 1088 | return Py_None; |
| 1089 | } |
| 1090 | |
| 1091 | /* void pushmatrix */ |
| 1092 | |
| 1093 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1094 | gl_pushmatrix(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1095 | { |
| 1096 | pushmatrix( ); |
| 1097 | Py_INCREF(Py_None); |
| 1098 | return Py_None; |
| 1099 | } |
| 1100 | |
| 1101 | /* void pushviewport */ |
| 1102 | |
| 1103 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1104 | gl_pushviewport(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1105 | { |
| 1106 | pushviewport( ); |
| 1107 | Py_INCREF(Py_None); |
| 1108 | return Py_None; |
| 1109 | } |
| 1110 | |
| 1111 | /* void qreset */ |
| 1112 | |
| 1113 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1114 | gl_qreset(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1115 | { |
| 1116 | qreset( ); |
| 1117 | Py_INCREF(Py_None); |
| 1118 | return Py_None; |
| 1119 | } |
| 1120 | |
| 1121 | /* void RGBmode */ |
| 1122 | |
| 1123 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1124 | gl_RGBmode(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1125 | { |
| 1126 | RGBmode( ); |
| 1127 | Py_INCREF(Py_None); |
| 1128 | return Py_None; |
| 1129 | } |
| 1130 | |
| 1131 | /* void singlebuffer */ |
| 1132 | |
| 1133 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1134 | gl_singlebuffer(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1135 | { |
| 1136 | singlebuffer( ); |
| 1137 | Py_INCREF(Py_None); |
| 1138 | return Py_None; |
| 1139 | } |
| 1140 | |
| 1141 | /* void swapbuffers */ |
| 1142 | |
| 1143 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1144 | gl_swapbuffers(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1145 | { |
| 1146 | swapbuffers( ); |
| 1147 | Py_INCREF(Py_None); |
| 1148 | return Py_None; |
| 1149 | } |
| 1150 | |
| 1151 | /* void gsync */ |
| 1152 | |
| 1153 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1154 | gl_gsync(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1155 | { |
| 1156 | gsync( ); |
| 1157 | Py_INCREF(Py_None); |
| 1158 | return Py_None; |
| 1159 | } |
| 1160 | |
| 1161 | /* void gflush */ |
| 1162 | |
| 1163 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1164 | gl_gflush(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1165 | { |
| 1166 | gflush( ); |
| 1167 | Py_INCREF(Py_None); |
| 1168 | return Py_None; |
| 1169 | } |
| 1170 | |
| 1171 | /* void tpon */ |
| 1172 | |
| 1173 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1174 | gl_tpon(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1175 | { |
| 1176 | tpon( ); |
| 1177 | Py_INCREF(Py_None); |
| 1178 | return Py_None; |
| 1179 | } |
| 1180 | |
| 1181 | /* void tpoff */ |
| 1182 | |
| 1183 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1184 | gl_tpoff(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1185 | { |
| 1186 | tpoff( ); |
| 1187 | Py_INCREF(Py_None); |
| 1188 | return Py_None; |
| 1189 | } |
| 1190 | |
| 1191 | /* void clkon */ |
| 1192 | |
| 1193 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1194 | gl_clkon(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1195 | { |
| 1196 | clkon( ); |
| 1197 | Py_INCREF(Py_None); |
| 1198 | return Py_None; |
| 1199 | } |
| 1200 | |
| 1201 | /* void clkoff */ |
| 1202 | |
| 1203 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1204 | gl_clkoff(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1205 | { |
| 1206 | clkoff( ); |
| 1207 | Py_INCREF(Py_None); |
| 1208 | return Py_None; |
| 1209 | } |
| 1210 | |
| 1211 | /* void ringbell */ |
| 1212 | |
| 1213 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1214 | gl_ringbell(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1215 | { |
| 1216 | ringbell( ); |
| 1217 | Py_INCREF(Py_None); |
| 1218 | return Py_None; |
| 1219 | } |
| 1220 | |
| 1221 | /* void gbegin */ |
| 1222 | |
| 1223 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1224 | gl_gbegin(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1225 | { |
| 1226 | gbegin( ); |
| 1227 | Py_INCREF(Py_None); |
| 1228 | return Py_None; |
| 1229 | } |
| 1230 | |
| 1231 | /* void textinit */ |
| 1232 | |
| 1233 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1234 | gl_textinit(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1235 | { |
| 1236 | textinit( ); |
| 1237 | Py_INCREF(Py_None); |
| 1238 | return Py_None; |
| 1239 | } |
| 1240 | |
| 1241 | /* void initnames */ |
| 1242 | |
| 1243 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1244 | gl_initnames(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1245 | { |
| 1246 | initnames( ); |
| 1247 | Py_INCREF(Py_None); |
| 1248 | return Py_None; |
| 1249 | } |
| 1250 | |
| 1251 | /* void pclos */ |
| 1252 | |
| 1253 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1254 | gl_pclos(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1255 | { |
| 1256 | pclos( ); |
| 1257 | Py_INCREF(Py_None); |
| 1258 | return Py_None; |
| 1259 | } |
| 1260 | |
| 1261 | /* void popname */ |
| 1262 | |
| 1263 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1264 | gl_popname(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1265 | { |
| 1266 | popname( ); |
| 1267 | Py_INCREF(Py_None); |
| 1268 | return Py_None; |
| 1269 | } |
| 1270 | |
| 1271 | /* void spclos */ |
| 1272 | |
| 1273 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1274 | gl_spclos(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1275 | { |
| 1276 | spclos( ); |
| 1277 | Py_INCREF(Py_None); |
| 1278 | return Py_None; |
| 1279 | } |
| 1280 | |
| 1281 | /* void zclear */ |
| 1282 | |
| 1283 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1284 | gl_zclear(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1285 | { |
| 1286 | zclear( ); |
| 1287 | Py_INCREF(Py_None); |
| 1288 | return Py_None; |
| 1289 | } |
| 1290 | |
| 1291 | /* void screenspace */ |
| 1292 | |
| 1293 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1294 | gl_screenspace(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1295 | { |
| 1296 | screenspace( ); |
| 1297 | Py_INCREF(Py_None); |
| 1298 | return Py_None; |
| 1299 | } |
| 1300 | |
| 1301 | /* void reshapeviewport */ |
| 1302 | |
| 1303 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1304 | gl_reshapeviewport(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1305 | { |
| 1306 | reshapeviewport( ); |
| 1307 | Py_INCREF(Py_None); |
| 1308 | return Py_None; |
| 1309 | } |
| 1310 | |
| 1311 | /* void winpush */ |
| 1312 | |
| 1313 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1314 | gl_winpush(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1315 | { |
| 1316 | winpush( ); |
| 1317 | Py_INCREF(Py_None); |
| 1318 | return Py_None; |
| 1319 | } |
| 1320 | |
| 1321 | /* void winpop */ |
| 1322 | |
| 1323 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1324 | gl_winpop(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1325 | { |
| 1326 | winpop( ); |
| 1327 | Py_INCREF(Py_None); |
| 1328 | return Py_None; |
| 1329 | } |
| 1330 | |
| 1331 | /* void foreground */ |
| 1332 | |
| 1333 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1334 | gl_foreground(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1335 | { |
| 1336 | foreground( ); |
| 1337 | Py_INCREF(Py_None); |
| 1338 | return Py_None; |
| 1339 | } |
| 1340 | |
| 1341 | /* void endfullscrn */ |
| 1342 | |
| 1343 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1344 | gl_endfullscrn(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1345 | { |
| 1346 | endfullscrn( ); |
| 1347 | Py_INCREF(Py_None); |
| 1348 | return Py_None; |
| 1349 | } |
| 1350 | |
| 1351 | /* void endpupmode */ |
| 1352 | |
| 1353 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1354 | gl_endpupmode(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1355 | { |
| 1356 | endpupmode( ); |
| 1357 | Py_INCREF(Py_None); |
| 1358 | return Py_None; |
| 1359 | } |
| 1360 | |
| 1361 | /* void fullscrn */ |
| 1362 | |
| 1363 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1364 | gl_fullscrn(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1365 | { |
| 1366 | fullscrn( ); |
| 1367 | Py_INCREF(Py_None); |
| 1368 | return Py_None; |
| 1369 | } |
| 1370 | |
| 1371 | /* void pupmode */ |
| 1372 | |
| 1373 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1374 | gl_pupmode(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1375 | { |
| 1376 | pupmode( ); |
| 1377 | Py_INCREF(Py_None); |
| 1378 | return Py_None; |
| 1379 | } |
| 1380 | |
| 1381 | /* void winconstraints */ |
| 1382 | |
| 1383 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1384 | gl_winconstraints(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1385 | { |
| 1386 | winconstraints( ); |
| 1387 | Py_INCREF(Py_None); |
| 1388 | return Py_None; |
| 1389 | } |
| 1390 | |
| 1391 | /* void pagecolor short s */ |
| 1392 | |
| 1393 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1394 | gl_pagecolor(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1395 | { |
| 1396 | short arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 1397 | if (!getishortarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1398 | return NULL; |
| 1399 | pagecolor( arg1 ); |
| 1400 | Py_INCREF(Py_None); |
| 1401 | return Py_None; |
| 1402 | } |
| 1403 | |
| 1404 | /* void textcolor short s */ |
| 1405 | |
| 1406 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1407 | gl_textcolor(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1408 | { |
| 1409 | short arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 1410 | if (!getishortarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1411 | return NULL; |
| 1412 | textcolor( arg1 ); |
| 1413 | Py_INCREF(Py_None); |
| 1414 | return Py_None; |
| 1415 | } |
| 1416 | |
| 1417 | /* void color short s */ |
| 1418 | |
| 1419 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1420 | gl_color(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1421 | { |
| 1422 | short arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 1423 | if (!getishortarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1424 | return NULL; |
| 1425 | color( arg1 ); |
| 1426 | Py_INCREF(Py_None); |
| 1427 | return Py_None; |
| 1428 | } |
| 1429 | |
| 1430 | /* void curveit short s */ |
| 1431 | |
| 1432 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1433 | gl_curveit(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1434 | { |
| 1435 | short arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 1436 | if (!getishortarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1437 | return NULL; |
| 1438 | curveit( arg1 ); |
| 1439 | Py_INCREF(Py_None); |
| 1440 | return Py_None; |
| 1441 | } |
| 1442 | |
| 1443 | /* void font short s */ |
| 1444 | |
| 1445 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1446 | gl_font(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1447 | { |
| 1448 | short arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 1449 | if (!getishortarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1450 | return NULL; |
| 1451 | font( arg1 ); |
| 1452 | Py_INCREF(Py_None); |
| 1453 | return Py_None; |
| 1454 | } |
| 1455 | |
| 1456 | /* void linewidth short s */ |
| 1457 | |
| 1458 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1459 | gl_linewidth(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1460 | { |
| 1461 | short arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 1462 | if (!getishortarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1463 | return NULL; |
| 1464 | linewidth( arg1 ); |
| 1465 | Py_INCREF(Py_None); |
| 1466 | return Py_None; |
| 1467 | } |
| 1468 | |
| 1469 | /* void setlinestyle short s */ |
| 1470 | |
| 1471 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1472 | gl_setlinestyle(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1473 | { |
| 1474 | short arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 1475 | if (!getishortarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1476 | return NULL; |
| 1477 | setlinestyle( arg1 ); |
| 1478 | Py_INCREF(Py_None); |
| 1479 | return Py_None; |
| 1480 | } |
| 1481 | |
| 1482 | /* void setmap short s */ |
| 1483 | |
| 1484 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1485 | gl_setmap(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1486 | { |
| 1487 | short arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 1488 | if (!getishortarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1489 | return NULL; |
| 1490 | setmap( arg1 ); |
| 1491 | Py_INCREF(Py_None); |
| 1492 | return Py_None; |
| 1493 | } |
| 1494 | |
| 1495 | /* void swapinterval short s */ |
| 1496 | |
| 1497 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1498 | gl_swapinterval(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1499 | { |
| 1500 | short arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 1501 | if (!getishortarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1502 | return NULL; |
| 1503 | swapinterval( arg1 ); |
| 1504 | Py_INCREF(Py_None); |
| 1505 | return Py_None; |
| 1506 | } |
| 1507 | |
| 1508 | /* void writemask short s */ |
| 1509 | |
| 1510 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1511 | gl_writemask(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1512 | { |
| 1513 | short arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 1514 | if (!getishortarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1515 | return NULL; |
| 1516 | writemask( arg1 ); |
| 1517 | Py_INCREF(Py_None); |
| 1518 | return Py_None; |
| 1519 | } |
| 1520 | |
| 1521 | /* void textwritemask short s */ |
| 1522 | |
| 1523 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1524 | gl_textwritemask(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1525 | { |
| 1526 | short arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 1527 | if (!getishortarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1528 | return NULL; |
| 1529 | textwritemask( arg1 ); |
| 1530 | Py_INCREF(Py_None); |
| 1531 | return Py_None; |
| 1532 | } |
| 1533 | |
| 1534 | /* void qdevice short s */ |
| 1535 | |
| 1536 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1537 | gl_qdevice(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1538 | { |
| 1539 | short arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 1540 | if (!getishortarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1541 | return NULL; |
| 1542 | qdevice( arg1 ); |
| 1543 | Py_INCREF(Py_None); |
| 1544 | return Py_None; |
| 1545 | } |
| 1546 | |
| 1547 | /* void unqdevice short s */ |
| 1548 | |
| 1549 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1550 | gl_unqdevice(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1551 | { |
| 1552 | short arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 1553 | if (!getishortarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1554 | return NULL; |
| 1555 | unqdevice( arg1 ); |
| 1556 | Py_INCREF(Py_None); |
| 1557 | return Py_None; |
| 1558 | } |
| 1559 | |
| 1560 | /* void curvebasis short s */ |
| 1561 | |
| 1562 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1563 | gl_curvebasis(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1564 | { |
| 1565 | short arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 1566 | if (!getishortarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1567 | return NULL; |
| 1568 | curvebasis( arg1 ); |
| 1569 | Py_INCREF(Py_None); |
| 1570 | return Py_None; |
| 1571 | } |
| 1572 | |
| 1573 | /* void curveprecision short s */ |
| 1574 | |
| 1575 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1576 | gl_curveprecision(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1577 | { |
| 1578 | short arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 1579 | if (!getishortarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1580 | return NULL; |
| 1581 | curveprecision( arg1 ); |
| 1582 | Py_INCREF(Py_None); |
| 1583 | return Py_None; |
| 1584 | } |
| 1585 | |
| 1586 | /* void loadname short s */ |
| 1587 | |
| 1588 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1589 | gl_loadname(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1590 | { |
| 1591 | short arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 1592 | if (!getishortarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1593 | return NULL; |
| 1594 | loadname( arg1 ); |
| 1595 | Py_INCREF(Py_None); |
| 1596 | return Py_None; |
| 1597 | } |
| 1598 | |
| 1599 | /* void passthrough short s */ |
| 1600 | |
| 1601 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1602 | gl_passthrough(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1603 | { |
| 1604 | short arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 1605 | if (!getishortarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1606 | return NULL; |
| 1607 | passthrough( arg1 ); |
| 1608 | Py_INCREF(Py_None); |
| 1609 | return Py_None; |
| 1610 | } |
| 1611 | |
| 1612 | /* void pushname short s */ |
| 1613 | |
| 1614 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1615 | gl_pushname(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1616 | { |
| 1617 | short arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 1618 | if (!getishortarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1619 | return NULL; |
| 1620 | pushname( arg1 ); |
| 1621 | Py_INCREF(Py_None); |
| 1622 | return Py_None; |
| 1623 | } |
| 1624 | |
| 1625 | /* void setmonitor short s */ |
| 1626 | |
| 1627 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1628 | gl_setmonitor(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1629 | { |
| 1630 | short arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 1631 | if (!getishortarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1632 | return NULL; |
| 1633 | setmonitor( arg1 ); |
| 1634 | Py_INCREF(Py_None); |
| 1635 | return Py_None; |
| 1636 | } |
| 1637 | |
| 1638 | /* void setshade short s */ |
| 1639 | |
| 1640 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1641 | gl_setshade(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1642 | { |
| 1643 | short arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 1644 | if (!getishortarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1645 | return NULL; |
| 1646 | setshade( arg1 ); |
| 1647 | Py_INCREF(Py_None); |
| 1648 | return Py_None; |
| 1649 | } |
| 1650 | |
| 1651 | /* void setpattern short s */ |
| 1652 | |
| 1653 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1654 | gl_setpattern(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1655 | { |
| 1656 | short arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 1657 | if (!getishortarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1658 | return NULL; |
| 1659 | setpattern( arg1 ); |
| 1660 | Py_INCREF(Py_None); |
| 1661 | return Py_None; |
| 1662 | } |
| 1663 | |
| 1664 | /* void pagewritemask short s */ |
| 1665 | |
| 1666 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1667 | gl_pagewritemask(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1668 | { |
| 1669 | short arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 1670 | if (!getishortarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1671 | return NULL; |
| 1672 | pagewritemask( arg1 ); |
| 1673 | Py_INCREF(Py_None); |
| 1674 | return Py_None; |
| 1675 | } |
| 1676 | |
| 1677 | /* void callobj long s */ |
| 1678 | |
| 1679 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1680 | gl_callobj(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1681 | { |
| 1682 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 1683 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1684 | return NULL; |
| 1685 | callobj( arg1 ); |
| 1686 | Py_INCREF(Py_None); |
| 1687 | return Py_None; |
| 1688 | } |
| 1689 | |
| 1690 | /* void delobj long s */ |
| 1691 | |
| 1692 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1693 | gl_delobj(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1694 | { |
| 1695 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 1696 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1697 | return NULL; |
| 1698 | delobj( arg1 ); |
| 1699 | Py_INCREF(Py_None); |
| 1700 | return Py_None; |
| 1701 | } |
| 1702 | |
| 1703 | /* void editobj long s */ |
| 1704 | |
| 1705 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1706 | gl_editobj(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1707 | { |
| 1708 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 1709 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1710 | return NULL; |
| 1711 | editobj( arg1 ); |
| 1712 | Py_INCREF(Py_None); |
| 1713 | return Py_None; |
| 1714 | } |
| 1715 | |
| 1716 | /* void makeobj long s */ |
| 1717 | |
| 1718 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1719 | gl_makeobj(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1720 | { |
| 1721 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 1722 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1723 | return NULL; |
| 1724 | makeobj( arg1 ); |
| 1725 | Py_INCREF(Py_None); |
| 1726 | return Py_None; |
| 1727 | } |
| 1728 | |
| 1729 | /* void maketag long s */ |
| 1730 | |
| 1731 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1732 | gl_maketag(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1733 | { |
| 1734 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 1735 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1736 | return NULL; |
| 1737 | maketag( arg1 ); |
| 1738 | Py_INCREF(Py_None); |
| 1739 | return Py_None; |
| 1740 | } |
| 1741 | |
| 1742 | /* void chunksize long s */ |
| 1743 | |
| 1744 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1745 | gl_chunksize(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1746 | { |
| 1747 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 1748 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1749 | return NULL; |
| 1750 | chunksize( arg1 ); |
| 1751 | Py_INCREF(Py_None); |
| 1752 | return Py_None; |
| 1753 | } |
| 1754 | |
| 1755 | /* void compactify long s */ |
| 1756 | |
| 1757 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1758 | gl_compactify(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1759 | { |
| 1760 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 1761 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1762 | return NULL; |
| 1763 | compactify( arg1 ); |
| 1764 | Py_INCREF(Py_None); |
| 1765 | return Py_None; |
| 1766 | } |
| 1767 | |
| 1768 | /* void deltag long s */ |
| 1769 | |
| 1770 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1771 | gl_deltag(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1772 | { |
| 1773 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 1774 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1775 | return NULL; |
| 1776 | deltag( arg1 ); |
| 1777 | Py_INCREF(Py_None); |
| 1778 | return Py_None; |
| 1779 | } |
| 1780 | |
| 1781 | /* void lsrepeat long s */ |
| 1782 | |
| 1783 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1784 | gl_lsrepeat(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1785 | { |
| 1786 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 1787 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1788 | return NULL; |
| 1789 | lsrepeat( arg1 ); |
| 1790 | Py_INCREF(Py_None); |
| 1791 | return Py_None; |
| 1792 | } |
| 1793 | |
| 1794 | /* void objinsert long s */ |
| 1795 | |
| 1796 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1797 | gl_objinsert(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1798 | { |
| 1799 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 1800 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1801 | return NULL; |
| 1802 | objinsert( arg1 ); |
| 1803 | Py_INCREF(Py_None); |
| 1804 | return Py_None; |
| 1805 | } |
| 1806 | |
| 1807 | /* void objreplace long s */ |
| 1808 | |
| 1809 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1810 | gl_objreplace(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1811 | { |
| 1812 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 1813 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1814 | return NULL; |
| 1815 | objreplace( arg1 ); |
| 1816 | Py_INCREF(Py_None); |
| 1817 | return Py_None; |
| 1818 | } |
| 1819 | |
| 1820 | /* void winclose long s */ |
| 1821 | |
| 1822 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1823 | gl_winclose(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1824 | { |
| 1825 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 1826 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1827 | return NULL; |
| 1828 | winclose( arg1 ); |
| 1829 | Py_INCREF(Py_None); |
| 1830 | return Py_None; |
| 1831 | } |
| 1832 | |
| 1833 | /* void blanktime long s */ |
| 1834 | |
| 1835 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1836 | gl_blanktime(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1837 | { |
| 1838 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 1839 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1840 | return NULL; |
| 1841 | blanktime( arg1 ); |
| 1842 | Py_INCREF(Py_None); |
| 1843 | return Py_None; |
| 1844 | } |
| 1845 | |
| 1846 | /* void freepup long s */ |
| 1847 | |
| 1848 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1849 | gl_freepup(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1850 | { |
| 1851 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 1852 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1853 | return NULL; |
| 1854 | freepup( arg1 ); |
| 1855 | Py_INCREF(Py_None); |
| 1856 | return Py_None; |
| 1857 | } |
| 1858 | |
| 1859 | /* void backbuffer long s */ |
| 1860 | |
| 1861 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1862 | gl_backbuffer(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1863 | { |
| 1864 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 1865 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1866 | return NULL; |
| 1867 | backbuffer( arg1 ); |
| 1868 | Py_INCREF(Py_None); |
| 1869 | return Py_None; |
| 1870 | } |
| 1871 | |
| 1872 | /* void frontbuffer long s */ |
| 1873 | |
| 1874 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1875 | gl_frontbuffer(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1876 | { |
| 1877 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 1878 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1879 | return NULL; |
| 1880 | frontbuffer( arg1 ); |
| 1881 | Py_INCREF(Py_None); |
| 1882 | return Py_None; |
| 1883 | } |
| 1884 | |
| 1885 | /* void lsbackup long s */ |
| 1886 | |
| 1887 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1888 | gl_lsbackup(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1889 | { |
| 1890 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 1891 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1892 | return NULL; |
| 1893 | lsbackup( arg1 ); |
| 1894 | Py_INCREF(Py_None); |
| 1895 | return Py_None; |
| 1896 | } |
| 1897 | |
| 1898 | /* void resetls long s */ |
| 1899 | |
| 1900 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1901 | gl_resetls(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1902 | { |
| 1903 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 1904 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1905 | return NULL; |
| 1906 | resetls( arg1 ); |
| 1907 | Py_INCREF(Py_None); |
| 1908 | return Py_None; |
| 1909 | } |
| 1910 | |
| 1911 | /* void lampon long s */ |
| 1912 | |
| 1913 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1914 | gl_lampon(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1915 | { |
| 1916 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 1917 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1918 | return NULL; |
| 1919 | lampon( arg1 ); |
| 1920 | Py_INCREF(Py_None); |
| 1921 | return Py_None; |
| 1922 | } |
| 1923 | |
| 1924 | /* void lampoff long s */ |
| 1925 | |
| 1926 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1927 | gl_lampoff(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1928 | { |
| 1929 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 1930 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1931 | return NULL; |
| 1932 | lampoff( arg1 ); |
| 1933 | Py_INCREF(Py_None); |
| 1934 | return Py_None; |
| 1935 | } |
| 1936 | |
| 1937 | /* void setbell long s */ |
| 1938 | |
| 1939 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1940 | gl_setbell(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1941 | { |
| 1942 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 1943 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1944 | return NULL; |
| 1945 | setbell( arg1 ); |
| 1946 | Py_INCREF(Py_None); |
| 1947 | return Py_None; |
| 1948 | } |
| 1949 | |
| 1950 | /* void blankscreen long s */ |
| 1951 | |
| 1952 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1953 | gl_blankscreen(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1954 | { |
| 1955 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 1956 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1957 | return NULL; |
| 1958 | blankscreen( arg1 ); |
| 1959 | Py_INCREF(Py_None); |
| 1960 | return Py_None; |
| 1961 | } |
| 1962 | |
| 1963 | /* void depthcue long s */ |
| 1964 | |
| 1965 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1966 | gl_depthcue(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1967 | { |
| 1968 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 1969 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1970 | return NULL; |
| 1971 | depthcue( arg1 ); |
| 1972 | Py_INCREF(Py_None); |
| 1973 | return Py_None; |
| 1974 | } |
| 1975 | |
| 1976 | /* void zbuffer long s */ |
| 1977 | |
| 1978 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1979 | gl_zbuffer(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1980 | { |
| 1981 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 1982 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1983 | return NULL; |
| 1984 | zbuffer( arg1 ); |
| 1985 | Py_INCREF(Py_None); |
| 1986 | return Py_None; |
| 1987 | } |
| 1988 | |
| 1989 | /* void backface long s */ |
| 1990 | |
| 1991 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 1992 | gl_backface(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1993 | { |
| 1994 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 1995 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 1996 | return NULL; |
| 1997 | backface( arg1 ); |
| 1998 | Py_INCREF(Py_None); |
| 1999 | return Py_None; |
| 2000 | } |
| 2001 | |
| 2002 | /* void cmov2i long s long s */ |
| 2003 | |
| 2004 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2005 | gl_cmov2i(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2006 | { |
| 2007 | long arg1 ; |
| 2008 | long arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2009 | if (!getilongarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2010 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2011 | if (!getilongarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2012 | return NULL; |
| 2013 | cmov2i( arg1 , arg2 ); |
| 2014 | Py_INCREF(Py_None); |
| 2015 | return Py_None; |
| 2016 | } |
| 2017 | |
| 2018 | /* void draw2i long s long s */ |
| 2019 | |
| 2020 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2021 | gl_draw2i(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2022 | { |
| 2023 | long arg1 ; |
| 2024 | long arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2025 | if (!getilongarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2026 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2027 | if (!getilongarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2028 | return NULL; |
| 2029 | draw2i( arg1 , arg2 ); |
| 2030 | Py_INCREF(Py_None); |
| 2031 | return Py_None; |
| 2032 | } |
| 2033 | |
| 2034 | /* void move2i long s long s */ |
| 2035 | |
| 2036 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2037 | gl_move2i(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2038 | { |
| 2039 | long arg1 ; |
| 2040 | long arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2041 | if (!getilongarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2042 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2043 | if (!getilongarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2044 | return NULL; |
| 2045 | move2i( arg1 , arg2 ); |
| 2046 | Py_INCREF(Py_None); |
| 2047 | return Py_None; |
| 2048 | } |
| 2049 | |
| 2050 | /* void pnt2i long s long s */ |
| 2051 | |
| 2052 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2053 | gl_pnt2i(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2054 | { |
| 2055 | long arg1 ; |
| 2056 | long arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2057 | if (!getilongarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2058 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2059 | if (!getilongarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2060 | return NULL; |
| 2061 | pnt2i( arg1 , arg2 ); |
| 2062 | Py_INCREF(Py_None); |
| 2063 | return Py_None; |
| 2064 | } |
| 2065 | |
| 2066 | /* void patchbasis long s long s */ |
| 2067 | |
| 2068 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2069 | gl_patchbasis(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2070 | { |
| 2071 | long arg1 ; |
| 2072 | long arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2073 | if (!getilongarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2074 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2075 | if (!getilongarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2076 | return NULL; |
| 2077 | patchbasis( arg1 , arg2 ); |
| 2078 | Py_INCREF(Py_None); |
| 2079 | return Py_None; |
| 2080 | } |
| 2081 | |
| 2082 | /* void patchprecision long s long s */ |
| 2083 | |
| 2084 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2085 | gl_patchprecision(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2086 | { |
| 2087 | long arg1 ; |
| 2088 | long arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2089 | if (!getilongarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2090 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2091 | if (!getilongarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2092 | return NULL; |
| 2093 | patchprecision( arg1 , arg2 ); |
| 2094 | Py_INCREF(Py_None); |
| 2095 | return Py_None; |
| 2096 | } |
| 2097 | |
| 2098 | /* void pdr2i long s long s */ |
| 2099 | |
| 2100 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2101 | gl_pdr2i(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2102 | { |
| 2103 | long arg1 ; |
| 2104 | long arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2105 | if (!getilongarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2106 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2107 | if (!getilongarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2108 | return NULL; |
| 2109 | pdr2i( arg1 , arg2 ); |
| 2110 | Py_INCREF(Py_None); |
| 2111 | return Py_None; |
| 2112 | } |
| 2113 | |
| 2114 | /* void pmv2i long s long s */ |
| 2115 | |
| 2116 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2117 | gl_pmv2i(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2118 | { |
| 2119 | long arg1 ; |
| 2120 | long arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2121 | if (!getilongarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2122 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2123 | if (!getilongarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2124 | return NULL; |
| 2125 | pmv2i( arg1 , arg2 ); |
| 2126 | Py_INCREF(Py_None); |
| 2127 | return Py_None; |
| 2128 | } |
| 2129 | |
| 2130 | /* void rpdr2i long s long s */ |
| 2131 | |
| 2132 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2133 | gl_rpdr2i(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2134 | { |
| 2135 | long arg1 ; |
| 2136 | long arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2137 | if (!getilongarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2138 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2139 | if (!getilongarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2140 | return NULL; |
| 2141 | rpdr2i( arg1 , arg2 ); |
| 2142 | Py_INCREF(Py_None); |
| 2143 | return Py_None; |
| 2144 | } |
| 2145 | |
| 2146 | /* void rpmv2i long s long s */ |
| 2147 | |
| 2148 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2149 | gl_rpmv2i(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2150 | { |
| 2151 | long arg1 ; |
| 2152 | long arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2153 | if (!getilongarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2154 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2155 | if (!getilongarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2156 | return NULL; |
| 2157 | rpmv2i( arg1 , arg2 ); |
| 2158 | Py_INCREF(Py_None); |
| 2159 | return Py_None; |
| 2160 | } |
| 2161 | |
| 2162 | /* void xfpt2i long s long s */ |
| 2163 | |
| 2164 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2165 | gl_xfpt2i(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2166 | { |
| 2167 | long arg1 ; |
| 2168 | long arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2169 | if (!getilongarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2170 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2171 | if (!getilongarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2172 | return NULL; |
| 2173 | xfpt2i( arg1 , arg2 ); |
| 2174 | Py_INCREF(Py_None); |
| 2175 | return Py_None; |
| 2176 | } |
| 2177 | |
| 2178 | /* void objdelete long s long s */ |
| 2179 | |
| 2180 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2181 | gl_objdelete(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2182 | { |
| 2183 | long arg1 ; |
| 2184 | long arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2185 | if (!getilongarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2186 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2187 | if (!getilongarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2188 | return NULL; |
| 2189 | objdelete( arg1 , arg2 ); |
| 2190 | Py_INCREF(Py_None); |
| 2191 | return Py_None; |
| 2192 | } |
| 2193 | |
| 2194 | /* void patchcurves long s long s */ |
| 2195 | |
| 2196 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2197 | gl_patchcurves(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2198 | { |
| 2199 | long arg1 ; |
| 2200 | long arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2201 | if (!getilongarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2202 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2203 | if (!getilongarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2204 | return NULL; |
| 2205 | patchcurves( arg1 , arg2 ); |
| 2206 | Py_INCREF(Py_None); |
| 2207 | return Py_None; |
| 2208 | } |
| 2209 | |
| 2210 | /* void minsize long s long s */ |
| 2211 | |
| 2212 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2213 | gl_minsize(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2214 | { |
| 2215 | long arg1 ; |
| 2216 | long arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2217 | if (!getilongarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2218 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2219 | if (!getilongarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2220 | return NULL; |
| 2221 | minsize( arg1 , arg2 ); |
| 2222 | Py_INCREF(Py_None); |
| 2223 | return Py_None; |
| 2224 | } |
| 2225 | |
| 2226 | /* void maxsize long s long s */ |
| 2227 | |
| 2228 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2229 | gl_maxsize(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2230 | { |
| 2231 | long arg1 ; |
| 2232 | long arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2233 | if (!getilongarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2234 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2235 | if (!getilongarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2236 | return NULL; |
| 2237 | maxsize( arg1 , arg2 ); |
| 2238 | Py_INCREF(Py_None); |
| 2239 | return Py_None; |
| 2240 | } |
| 2241 | |
| 2242 | /* void keepaspect long s long s */ |
| 2243 | |
| 2244 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2245 | gl_keepaspect(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2246 | { |
| 2247 | long arg1 ; |
| 2248 | long arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2249 | if (!getilongarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2250 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2251 | if (!getilongarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2252 | return NULL; |
| 2253 | keepaspect( arg1 , arg2 ); |
| 2254 | Py_INCREF(Py_None); |
| 2255 | return Py_None; |
| 2256 | } |
| 2257 | |
| 2258 | /* void prefsize long s long s */ |
| 2259 | |
| 2260 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2261 | gl_prefsize(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2262 | { |
| 2263 | long arg1 ; |
| 2264 | long arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2265 | if (!getilongarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2266 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2267 | if (!getilongarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2268 | return NULL; |
| 2269 | prefsize( arg1 , arg2 ); |
| 2270 | Py_INCREF(Py_None); |
| 2271 | return Py_None; |
| 2272 | } |
| 2273 | |
| 2274 | /* void stepunit long s long s */ |
| 2275 | |
| 2276 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2277 | gl_stepunit(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2278 | { |
| 2279 | long arg1 ; |
| 2280 | long arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2281 | if (!getilongarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2282 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2283 | if (!getilongarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2284 | return NULL; |
| 2285 | stepunit( arg1 , arg2 ); |
| 2286 | Py_INCREF(Py_None); |
| 2287 | return Py_None; |
| 2288 | } |
| 2289 | |
| 2290 | /* void fudge long s long s */ |
| 2291 | |
| 2292 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2293 | gl_fudge(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2294 | { |
| 2295 | long arg1 ; |
| 2296 | long arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2297 | if (!getilongarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2298 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2299 | if (!getilongarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2300 | return NULL; |
| 2301 | fudge( arg1 , arg2 ); |
| 2302 | Py_INCREF(Py_None); |
| 2303 | return Py_None; |
| 2304 | } |
| 2305 | |
| 2306 | /* void winmove long s long s */ |
| 2307 | |
| 2308 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2309 | gl_winmove(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2310 | { |
| 2311 | long arg1 ; |
| 2312 | long arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2313 | if (!getilongarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2314 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2315 | if (!getilongarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2316 | return NULL; |
| 2317 | winmove( arg1 , arg2 ); |
| 2318 | Py_INCREF(Py_None); |
| 2319 | return Py_None; |
| 2320 | } |
| 2321 | |
| 2322 | /* void attachcursor short s short s */ |
| 2323 | |
| 2324 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2325 | gl_attachcursor(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2326 | { |
| 2327 | short arg1 ; |
| 2328 | short arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2329 | if (!getishortarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2330 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2331 | if (!getishortarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2332 | return NULL; |
| 2333 | attachcursor( arg1 , arg2 ); |
| 2334 | Py_INCREF(Py_None); |
| 2335 | return Py_None; |
| 2336 | } |
| 2337 | |
| 2338 | /* void deflinestyle short s short s */ |
| 2339 | |
| 2340 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2341 | gl_deflinestyle(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2342 | { |
| 2343 | short arg1 ; |
| 2344 | short arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2345 | if (!getishortarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2346 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2347 | if (!getishortarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2348 | return NULL; |
| 2349 | deflinestyle( arg1 , arg2 ); |
| 2350 | Py_INCREF(Py_None); |
| 2351 | return Py_None; |
| 2352 | } |
| 2353 | |
| 2354 | /* void noise short s short s */ |
| 2355 | |
| 2356 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2357 | gl_noise(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2358 | { |
| 2359 | short arg1 ; |
| 2360 | short arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2361 | if (!getishortarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2362 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2363 | if (!getishortarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2364 | return NULL; |
| 2365 | noise( arg1 , arg2 ); |
| 2366 | Py_INCREF(Py_None); |
| 2367 | return Py_None; |
| 2368 | } |
| 2369 | |
| 2370 | /* void picksize short s short s */ |
| 2371 | |
| 2372 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2373 | gl_picksize(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2374 | { |
| 2375 | short arg1 ; |
| 2376 | short arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2377 | if (!getishortarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2378 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2379 | if (!getishortarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2380 | return NULL; |
| 2381 | picksize( arg1 , arg2 ); |
| 2382 | Py_INCREF(Py_None); |
| 2383 | return Py_None; |
| 2384 | } |
| 2385 | |
| 2386 | /* void qenter short s short s */ |
| 2387 | |
| 2388 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2389 | gl_qenter(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2390 | { |
| 2391 | short arg1 ; |
| 2392 | short arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2393 | if (!getishortarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2394 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2395 | if (!getishortarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2396 | return NULL; |
| 2397 | qenter( arg1 , arg2 ); |
| 2398 | Py_INCREF(Py_None); |
| 2399 | return Py_None; |
| 2400 | } |
| 2401 | |
| 2402 | /* void setdepth short s short s */ |
| 2403 | |
| 2404 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2405 | gl_setdepth(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2406 | { |
| 2407 | short arg1 ; |
| 2408 | short arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2409 | if (!getishortarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2410 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2411 | if (!getishortarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2412 | return NULL; |
| 2413 | setdepth( arg1 , arg2 ); |
| 2414 | Py_INCREF(Py_None); |
| 2415 | return Py_None; |
| 2416 | } |
| 2417 | |
| 2418 | /* void cmov2s short s short s */ |
| 2419 | |
| 2420 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2421 | gl_cmov2s(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2422 | { |
| 2423 | short arg1 ; |
| 2424 | short arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2425 | if (!getishortarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2426 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2427 | if (!getishortarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2428 | return NULL; |
| 2429 | cmov2s( arg1 , arg2 ); |
| 2430 | Py_INCREF(Py_None); |
| 2431 | return Py_None; |
| 2432 | } |
| 2433 | |
| 2434 | /* void draw2s short s short s */ |
| 2435 | |
| 2436 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2437 | gl_draw2s(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2438 | { |
| 2439 | short arg1 ; |
| 2440 | short arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2441 | if (!getishortarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2442 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2443 | if (!getishortarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2444 | return NULL; |
| 2445 | draw2s( arg1 , arg2 ); |
| 2446 | Py_INCREF(Py_None); |
| 2447 | return Py_None; |
| 2448 | } |
| 2449 | |
| 2450 | /* void move2s short s short s */ |
| 2451 | |
| 2452 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2453 | gl_move2s(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2454 | { |
| 2455 | short arg1 ; |
| 2456 | short arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2457 | if (!getishortarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2458 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2459 | if (!getishortarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2460 | return NULL; |
| 2461 | move2s( arg1 , arg2 ); |
| 2462 | Py_INCREF(Py_None); |
| 2463 | return Py_None; |
| 2464 | } |
| 2465 | |
| 2466 | /* void pdr2s short s short s */ |
| 2467 | |
| 2468 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2469 | gl_pdr2s(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2470 | { |
| 2471 | short arg1 ; |
| 2472 | short arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2473 | if (!getishortarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2474 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2475 | if (!getishortarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2476 | return NULL; |
| 2477 | pdr2s( arg1 , arg2 ); |
| 2478 | Py_INCREF(Py_None); |
| 2479 | return Py_None; |
| 2480 | } |
| 2481 | |
| 2482 | /* void pmv2s short s short s */ |
| 2483 | |
| 2484 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2485 | gl_pmv2s(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2486 | { |
| 2487 | short arg1 ; |
| 2488 | short arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2489 | if (!getishortarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2490 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2491 | if (!getishortarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2492 | return NULL; |
| 2493 | pmv2s( arg1 , arg2 ); |
| 2494 | Py_INCREF(Py_None); |
| 2495 | return Py_None; |
| 2496 | } |
| 2497 | |
| 2498 | /* void pnt2s short s short s */ |
| 2499 | |
| 2500 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2501 | gl_pnt2s(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2502 | { |
| 2503 | short arg1 ; |
| 2504 | short arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2505 | if (!getishortarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2506 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2507 | if (!getishortarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2508 | return NULL; |
| 2509 | pnt2s( arg1 , arg2 ); |
| 2510 | Py_INCREF(Py_None); |
| 2511 | return Py_None; |
| 2512 | } |
| 2513 | |
| 2514 | /* void rdr2s short s short s */ |
| 2515 | |
| 2516 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2517 | gl_rdr2s(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2518 | { |
| 2519 | short arg1 ; |
| 2520 | short arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2521 | if (!getishortarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2522 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2523 | if (!getishortarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2524 | return NULL; |
| 2525 | rdr2s( arg1 , arg2 ); |
| 2526 | Py_INCREF(Py_None); |
| 2527 | return Py_None; |
| 2528 | } |
| 2529 | |
| 2530 | /* void rmv2s short s short s */ |
| 2531 | |
| 2532 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2533 | gl_rmv2s(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2534 | { |
| 2535 | short arg1 ; |
| 2536 | short arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2537 | if (!getishortarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2538 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2539 | if (!getishortarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2540 | return NULL; |
| 2541 | rmv2s( arg1 , arg2 ); |
| 2542 | Py_INCREF(Py_None); |
| 2543 | return Py_None; |
| 2544 | } |
| 2545 | |
| 2546 | /* void rpdr2s short s short s */ |
| 2547 | |
| 2548 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2549 | gl_rpdr2s(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2550 | { |
| 2551 | short arg1 ; |
| 2552 | short arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2553 | if (!getishortarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2554 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2555 | if (!getishortarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2556 | return NULL; |
| 2557 | rpdr2s( arg1 , arg2 ); |
| 2558 | Py_INCREF(Py_None); |
| 2559 | return Py_None; |
| 2560 | } |
| 2561 | |
| 2562 | /* void rpmv2s short s short s */ |
| 2563 | |
| 2564 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2565 | gl_rpmv2s(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2566 | { |
| 2567 | short arg1 ; |
| 2568 | short arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2569 | if (!getishortarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2570 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2571 | if (!getishortarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2572 | return NULL; |
| 2573 | rpmv2s( arg1 , arg2 ); |
| 2574 | Py_INCREF(Py_None); |
| 2575 | return Py_None; |
| 2576 | } |
| 2577 | |
| 2578 | /* void xfpt2s short s short s */ |
| 2579 | |
| 2580 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2581 | gl_xfpt2s(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2582 | { |
| 2583 | short arg1 ; |
| 2584 | short arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2585 | if (!getishortarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2586 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2587 | if (!getishortarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2588 | return NULL; |
| 2589 | xfpt2s( arg1 , arg2 ); |
| 2590 | Py_INCREF(Py_None); |
| 2591 | return Py_None; |
| 2592 | } |
| 2593 | |
| 2594 | /* void cmov2 float s float s */ |
| 2595 | |
| 2596 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2597 | gl_cmov2(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2598 | { |
| 2599 | float arg1 ; |
| 2600 | float arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2601 | if (!getifloatarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2602 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2603 | if (!getifloatarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2604 | return NULL; |
| 2605 | cmov2( arg1 , arg2 ); |
| 2606 | Py_INCREF(Py_None); |
| 2607 | return Py_None; |
| 2608 | } |
| 2609 | |
| 2610 | /* void draw2 float s float s */ |
| 2611 | |
| 2612 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2613 | gl_draw2(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2614 | { |
| 2615 | float arg1 ; |
| 2616 | float arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2617 | if (!getifloatarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2618 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2619 | if (!getifloatarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2620 | return NULL; |
| 2621 | draw2( arg1 , arg2 ); |
| 2622 | Py_INCREF(Py_None); |
| 2623 | return Py_None; |
| 2624 | } |
| 2625 | |
| 2626 | /* void move2 float s float s */ |
| 2627 | |
| 2628 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2629 | gl_move2(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2630 | { |
| 2631 | float arg1 ; |
| 2632 | float arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2633 | if (!getifloatarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2634 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2635 | if (!getifloatarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2636 | return NULL; |
| 2637 | move2( arg1 , arg2 ); |
| 2638 | Py_INCREF(Py_None); |
| 2639 | return Py_None; |
| 2640 | } |
| 2641 | |
| 2642 | /* void pnt2 float s float s */ |
| 2643 | |
| 2644 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2645 | gl_pnt2(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2646 | { |
| 2647 | float arg1 ; |
| 2648 | float arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2649 | if (!getifloatarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2650 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2651 | if (!getifloatarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2652 | return NULL; |
| 2653 | pnt2( arg1 , arg2 ); |
| 2654 | Py_INCREF(Py_None); |
| 2655 | return Py_None; |
| 2656 | } |
| 2657 | |
| 2658 | /* void pdr2 float s float s */ |
| 2659 | |
| 2660 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2661 | gl_pdr2(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2662 | { |
| 2663 | float arg1 ; |
| 2664 | float arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2665 | if (!getifloatarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2666 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2667 | if (!getifloatarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2668 | return NULL; |
| 2669 | pdr2( arg1 , arg2 ); |
| 2670 | Py_INCREF(Py_None); |
| 2671 | return Py_None; |
| 2672 | } |
| 2673 | |
| 2674 | /* void pmv2 float s float s */ |
| 2675 | |
| 2676 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2677 | gl_pmv2(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2678 | { |
| 2679 | float arg1 ; |
| 2680 | float arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2681 | if (!getifloatarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2682 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2683 | if (!getifloatarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2684 | return NULL; |
| 2685 | pmv2( arg1 , arg2 ); |
| 2686 | Py_INCREF(Py_None); |
| 2687 | return Py_None; |
| 2688 | } |
| 2689 | |
| 2690 | /* void rdr2 float s float s */ |
| 2691 | |
| 2692 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2693 | gl_rdr2(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2694 | { |
| 2695 | float arg1 ; |
| 2696 | float arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2697 | if (!getifloatarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2698 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2699 | if (!getifloatarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2700 | return NULL; |
| 2701 | rdr2( arg1 , arg2 ); |
| 2702 | Py_INCREF(Py_None); |
| 2703 | return Py_None; |
| 2704 | } |
| 2705 | |
| 2706 | /* void rmv2 float s float s */ |
| 2707 | |
| 2708 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2709 | gl_rmv2(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2710 | { |
| 2711 | float arg1 ; |
| 2712 | float arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2713 | if (!getifloatarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2714 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2715 | if (!getifloatarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2716 | return NULL; |
| 2717 | rmv2( arg1 , arg2 ); |
| 2718 | Py_INCREF(Py_None); |
| 2719 | return Py_None; |
| 2720 | } |
| 2721 | |
| 2722 | /* void rpdr2 float s float s */ |
| 2723 | |
| 2724 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2725 | gl_rpdr2(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2726 | { |
| 2727 | float arg1 ; |
| 2728 | float arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2729 | if (!getifloatarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2730 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2731 | if (!getifloatarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2732 | return NULL; |
| 2733 | rpdr2( arg1 , arg2 ); |
| 2734 | Py_INCREF(Py_None); |
| 2735 | return Py_None; |
| 2736 | } |
| 2737 | |
| 2738 | /* void rpmv2 float s float s */ |
| 2739 | |
| 2740 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2741 | gl_rpmv2(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2742 | { |
| 2743 | float arg1 ; |
| 2744 | float arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2745 | if (!getifloatarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2746 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2747 | if (!getifloatarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2748 | return NULL; |
| 2749 | rpmv2( arg1 , arg2 ); |
| 2750 | Py_INCREF(Py_None); |
| 2751 | return Py_None; |
| 2752 | } |
| 2753 | |
| 2754 | /* void xfpt2 float s float s */ |
| 2755 | |
| 2756 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2757 | gl_xfpt2(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2758 | { |
| 2759 | float arg1 ; |
| 2760 | float arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2761 | if (!getifloatarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2762 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2763 | if (!getifloatarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2764 | return NULL; |
| 2765 | xfpt2( arg1 , arg2 ); |
| 2766 | Py_INCREF(Py_None); |
| 2767 | return Py_None; |
| 2768 | } |
| 2769 | |
| 2770 | /* void loadmatrix float s[4*4] */ |
| 2771 | |
| 2772 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2773 | gl_loadmatrix(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2774 | { |
| 2775 | float arg1 [ 4 ] [ 4 ] ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2776 | if (!getifloatarray(args, 1, 0, 4 * 4 , (float *) arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2777 | return NULL; |
| 2778 | loadmatrix( arg1 ); |
| 2779 | Py_INCREF(Py_None); |
| 2780 | return Py_None; |
| 2781 | } |
| 2782 | |
| 2783 | /* void multmatrix float s[4*4] */ |
| 2784 | |
| 2785 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2786 | gl_multmatrix(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2787 | { |
| 2788 | float arg1 [ 4 ] [ 4 ] ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2789 | if (!getifloatarray(args, 1, 0, 4 * 4 , (float *) arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2790 | return NULL; |
| 2791 | multmatrix( arg1 ); |
| 2792 | Py_INCREF(Py_None); |
| 2793 | return Py_None; |
| 2794 | } |
| 2795 | |
| 2796 | /* void crv float s[3*4] */ |
| 2797 | |
| 2798 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2799 | gl_crv(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2800 | { |
| 2801 | float arg1 [ 4 ] [ 3 ] ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2802 | if (!getifloatarray(args, 1, 0, 3 * 4 , (float *) arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2803 | return NULL; |
| 2804 | crv( arg1 ); |
| 2805 | Py_INCREF(Py_None); |
| 2806 | return Py_None; |
| 2807 | } |
| 2808 | |
| 2809 | /* void rcrv float s[4*4] */ |
| 2810 | |
| 2811 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2812 | gl_rcrv(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2813 | { |
| 2814 | float arg1 [ 4 ] [ 4 ] ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2815 | if (!getifloatarray(args, 1, 0, 4 * 4 , (float *) arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2816 | return NULL; |
| 2817 | rcrv( arg1 ); |
| 2818 | Py_INCREF(Py_None); |
| 2819 | return Py_None; |
| 2820 | } |
| 2821 | |
| 2822 | /* void addtopup long s char *s long s */ |
| 2823 | |
| 2824 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2825 | gl_addtopup(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2826 | { |
| 2827 | long arg1 ; |
| 2828 | string arg2 ; |
| 2829 | long arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2830 | if (!getilongarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2831 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2832 | if (!getistringarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2833 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2834 | if (!getilongarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2835 | return NULL; |
| 2836 | addtopup( arg1 , arg2 , arg3 ); |
| 2837 | Py_INCREF(Py_None); |
| 2838 | return Py_None; |
| 2839 | } |
| 2840 | |
| 2841 | /* void charstr char *s */ |
| 2842 | |
| 2843 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2844 | gl_charstr(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2845 | { |
| 2846 | string arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2847 | if (!getistringarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2848 | return NULL; |
| 2849 | charstr( arg1 ); |
| 2850 | Py_INCREF(Py_None); |
| 2851 | return Py_None; |
| 2852 | } |
| 2853 | |
| 2854 | /* void getport char *s */ |
| 2855 | |
| 2856 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2857 | gl_getport(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2858 | { |
| 2859 | string arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2860 | if (!getistringarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2861 | return NULL; |
| 2862 | getport( arg1 ); |
| 2863 | Py_INCREF(Py_None); |
| 2864 | return Py_None; |
| 2865 | } |
| 2866 | |
| 2867 | /* long strwidth char *s */ |
| 2868 | |
| 2869 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2870 | gl_strwidth(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2871 | { |
| 2872 | long retval; |
| 2873 | string arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2874 | if (!getistringarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2875 | return NULL; |
| 2876 | retval = strwidth( arg1 ); |
| 2877 | return mknewlongobject(retval); |
| 2878 | } |
| 2879 | |
| 2880 | /* long winopen char *s */ |
| 2881 | |
| 2882 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2883 | gl_winopen(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2884 | { |
| 2885 | long retval; |
| 2886 | string arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2887 | if (!getistringarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2888 | return NULL; |
| 2889 | retval = winopen( arg1 ); |
| 2890 | return mknewlongobject(retval); |
| 2891 | } |
| 2892 | |
| 2893 | /* void wintitle char *s */ |
| 2894 | |
| 2895 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2896 | gl_wintitle(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2897 | { |
| 2898 | string arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2899 | if (!getistringarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2900 | return NULL; |
| 2901 | wintitle( arg1 ); |
| 2902 | Py_INCREF(Py_None); |
| 2903 | return Py_None; |
| 2904 | } |
| 2905 | |
| 2906 | /* void polf long s float s[3*arg1] */ |
| 2907 | |
| 2908 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2909 | gl_polf(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2910 | { |
| 2911 | long arg1 ; |
| 2912 | float (* arg2) [ 3 ] ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2913 | if (!getilongarraysize(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2914 | return NULL; |
| 2915 | arg1 = arg1 / 3; |
| 2916 | if ((arg2 = (float(*)[3]) PyMem_NEW(float , 3 * arg1 )) == NULL) |
| 2917 | return PyErr_NoMemory(); |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2918 | if (!getifloatarray(args, 1, 0, 3 * arg1 , (float *) arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2919 | return NULL; |
| 2920 | polf( arg1 , arg2 ); |
| 2921 | PyMem_DEL(arg2); |
| 2922 | Py_INCREF(Py_None); |
| 2923 | return Py_None; |
| 2924 | } |
| 2925 | |
| 2926 | /* void polf2 long s float s[2*arg1] */ |
| 2927 | |
| 2928 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2929 | gl_polf2(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2930 | { |
| 2931 | long arg1 ; |
| 2932 | float (* arg2) [ 2 ] ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2933 | if (!getilongarraysize(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2934 | return NULL; |
| 2935 | arg1 = arg1 / 2; |
| 2936 | if ((arg2 = (float(*)[2]) PyMem_NEW(float , 2 * arg1 )) == NULL) |
| 2937 | return PyErr_NoMemory(); |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2938 | if (!getifloatarray(args, 1, 0, 2 * arg1 , (float *) arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2939 | return NULL; |
| 2940 | polf2( arg1 , arg2 ); |
| 2941 | PyMem_DEL(arg2); |
| 2942 | Py_INCREF(Py_None); |
| 2943 | return Py_None; |
| 2944 | } |
| 2945 | |
| 2946 | /* void poly long s float s[3*arg1] */ |
| 2947 | |
| 2948 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2949 | gl_poly(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2950 | { |
| 2951 | long arg1 ; |
| 2952 | float (* arg2) [ 3 ] ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2953 | if (!getilongarraysize(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2954 | return NULL; |
| 2955 | arg1 = arg1 / 3; |
| 2956 | if ((arg2 = (float(*)[3]) PyMem_NEW(float , 3 * arg1 )) == NULL) |
| 2957 | return PyErr_NoMemory(); |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2958 | if (!getifloatarray(args, 1, 0, 3 * arg1 , (float *) arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2959 | return NULL; |
| 2960 | poly( arg1 , arg2 ); |
| 2961 | PyMem_DEL(arg2); |
| 2962 | Py_INCREF(Py_None); |
| 2963 | return Py_None; |
| 2964 | } |
| 2965 | |
| 2966 | /* void poly2 long s float s[2*arg1] */ |
| 2967 | |
| 2968 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2969 | gl_poly2(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2970 | { |
| 2971 | long arg1 ; |
| 2972 | float (* arg2) [ 2 ] ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2973 | if (!getilongarraysize(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2974 | return NULL; |
| 2975 | arg1 = arg1 / 2; |
| 2976 | if ((arg2 = (float(*)[2]) PyMem_NEW(float , 2 * arg1 )) == NULL) |
| 2977 | return PyErr_NoMemory(); |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2978 | if (!getifloatarray(args, 1, 0, 2 * arg1 , (float *) arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2979 | return NULL; |
| 2980 | poly2( arg1 , arg2 ); |
| 2981 | PyMem_DEL(arg2); |
| 2982 | Py_INCREF(Py_None); |
| 2983 | return Py_None; |
| 2984 | } |
| 2985 | |
| 2986 | /* void crvn long s float s[3*arg1] */ |
| 2987 | |
| 2988 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 2989 | gl_crvn(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2990 | { |
| 2991 | long arg1 ; |
| 2992 | float (* arg2) [ 3 ] ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2993 | if (!getilongarraysize(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2994 | return NULL; |
| 2995 | arg1 = arg1 / 3; |
| 2996 | if ((arg2 = (float(*)[3]) PyMem_NEW(float , 3 * arg1 )) == NULL) |
| 2997 | return PyErr_NoMemory(); |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 2998 | if (!getifloatarray(args, 1, 0, 3 * arg1 , (float *) arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 2999 | return NULL; |
| 3000 | crvn( arg1 , arg2 ); |
| 3001 | PyMem_DEL(arg2); |
| 3002 | Py_INCREF(Py_None); |
| 3003 | return Py_None; |
| 3004 | } |
| 3005 | |
| 3006 | /* void rcrvn long s float s[4*arg1] */ |
| 3007 | |
| 3008 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3009 | gl_rcrvn(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3010 | { |
| 3011 | long arg1 ; |
| 3012 | float (* arg2) [ 4 ] ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3013 | if (!getilongarraysize(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3014 | return NULL; |
| 3015 | arg1 = arg1 / 4; |
| 3016 | if ((arg2 = (float(*)[4]) PyMem_NEW(float , 4 * arg1 )) == NULL) |
| 3017 | return PyErr_NoMemory(); |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3018 | if (!getifloatarray(args, 1, 0, 4 * arg1 , (float *) arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3019 | return NULL; |
| 3020 | rcrvn( arg1 , arg2 ); |
| 3021 | PyMem_DEL(arg2); |
| 3022 | Py_INCREF(Py_None); |
| 3023 | return Py_None; |
| 3024 | } |
| 3025 | |
| 3026 | /* void polf2i long s long s[2*arg1] */ |
| 3027 | |
| 3028 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3029 | gl_polf2i(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3030 | { |
| 3031 | long arg1 ; |
| 3032 | long (* arg2) [ 2 ] ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3033 | if (!getilongarraysize(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3034 | return NULL; |
| 3035 | arg1 = arg1 / 2; |
| 3036 | if ((arg2 = (long(*)[2]) PyMem_NEW(long , 2 * arg1 )) == NULL) |
| 3037 | return PyErr_NoMemory(); |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3038 | if (!getilongarray(args, 1, 0, 2 * arg1 , (long *) arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3039 | return NULL; |
| 3040 | polf2i( arg1 , arg2 ); |
| 3041 | PyMem_DEL(arg2); |
| 3042 | Py_INCREF(Py_None); |
| 3043 | return Py_None; |
| 3044 | } |
| 3045 | |
| 3046 | /* void polfi long s long s[3*arg1] */ |
| 3047 | |
| 3048 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3049 | gl_polfi(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3050 | { |
| 3051 | long arg1 ; |
| 3052 | long (* arg2) [ 3 ] ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3053 | if (!getilongarraysize(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3054 | return NULL; |
| 3055 | arg1 = arg1 / 3; |
| 3056 | if ((arg2 = (long(*)[3]) PyMem_NEW(long , 3 * arg1 )) == NULL) |
| 3057 | return PyErr_NoMemory(); |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3058 | if (!getilongarray(args, 1, 0, 3 * arg1 , (long *) arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3059 | return NULL; |
| 3060 | polfi( arg1 , arg2 ); |
| 3061 | PyMem_DEL(arg2); |
| 3062 | Py_INCREF(Py_None); |
| 3063 | return Py_None; |
| 3064 | } |
| 3065 | |
| 3066 | /* void poly2i long s long s[2*arg1] */ |
| 3067 | |
| 3068 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3069 | gl_poly2i(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3070 | { |
| 3071 | long arg1 ; |
| 3072 | long (* arg2) [ 2 ] ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3073 | if (!getilongarraysize(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3074 | return NULL; |
| 3075 | arg1 = arg1 / 2; |
| 3076 | if ((arg2 = (long(*)[2]) PyMem_NEW(long , 2 * arg1 )) == NULL) |
| 3077 | return PyErr_NoMemory(); |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3078 | if (!getilongarray(args, 1, 0, 2 * arg1 , (long *) arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3079 | return NULL; |
| 3080 | poly2i( arg1 , arg2 ); |
| 3081 | PyMem_DEL(arg2); |
| 3082 | Py_INCREF(Py_None); |
| 3083 | return Py_None; |
| 3084 | } |
| 3085 | |
| 3086 | /* void polyi long s long s[3*arg1] */ |
| 3087 | |
| 3088 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3089 | gl_polyi(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3090 | { |
| 3091 | long arg1 ; |
| 3092 | long (* arg2) [ 3 ] ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3093 | if (!getilongarraysize(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3094 | return NULL; |
| 3095 | arg1 = arg1 / 3; |
| 3096 | if ((arg2 = (long(*)[3]) PyMem_NEW(long , 3 * arg1 )) == NULL) |
| 3097 | return PyErr_NoMemory(); |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3098 | if (!getilongarray(args, 1, 0, 3 * arg1 , (long *) arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3099 | return NULL; |
| 3100 | polyi( arg1 , arg2 ); |
| 3101 | PyMem_DEL(arg2); |
| 3102 | Py_INCREF(Py_None); |
| 3103 | return Py_None; |
| 3104 | } |
| 3105 | |
| 3106 | /* void polf2s long s short s[2*arg1] */ |
| 3107 | |
| 3108 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3109 | gl_polf2s(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3110 | { |
| 3111 | long arg1 ; |
| 3112 | short (* arg2) [ 2 ] ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3113 | if (!getilongarraysize(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3114 | return NULL; |
| 3115 | arg1 = arg1 / 2; |
| 3116 | if ((arg2 = (short(*)[2]) PyMem_NEW(short , 2 * arg1 )) == NULL) |
| 3117 | return PyErr_NoMemory(); |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3118 | if (!getishortarray(args, 1, 0, 2 * arg1 , (short *) arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3119 | return NULL; |
| 3120 | polf2s( arg1 , arg2 ); |
| 3121 | PyMem_DEL(arg2); |
| 3122 | Py_INCREF(Py_None); |
| 3123 | return Py_None; |
| 3124 | } |
| 3125 | |
| 3126 | /* void polfs long s short s[3*arg1] */ |
| 3127 | |
| 3128 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3129 | gl_polfs(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3130 | { |
| 3131 | long arg1 ; |
| 3132 | short (* arg2) [ 3 ] ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3133 | if (!getilongarraysize(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3134 | return NULL; |
| 3135 | arg1 = arg1 / 3; |
| 3136 | if ((arg2 = (short(*)[3]) PyMem_NEW(short , 3 * arg1 )) == NULL) |
| 3137 | return PyErr_NoMemory(); |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3138 | if (!getishortarray(args, 1, 0, 3 * arg1 , (short *) arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3139 | return NULL; |
| 3140 | polfs( arg1 , arg2 ); |
| 3141 | PyMem_DEL(arg2); |
| 3142 | Py_INCREF(Py_None); |
| 3143 | return Py_None; |
| 3144 | } |
| 3145 | |
| 3146 | /* void polys long s short s[3*arg1] */ |
| 3147 | |
| 3148 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3149 | gl_polys(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3150 | { |
| 3151 | long arg1 ; |
| 3152 | short (* arg2) [ 3 ] ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3153 | if (!getilongarraysize(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3154 | return NULL; |
| 3155 | arg1 = arg1 / 3; |
| 3156 | if ((arg2 = (short(*)[3]) PyMem_NEW(short , 3 * arg1 )) == NULL) |
| 3157 | return PyErr_NoMemory(); |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3158 | if (!getishortarray(args, 1, 0, 3 * arg1 , (short *) arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3159 | return NULL; |
| 3160 | polys( arg1 , arg2 ); |
| 3161 | PyMem_DEL(arg2); |
| 3162 | Py_INCREF(Py_None); |
| 3163 | return Py_None; |
| 3164 | } |
| 3165 | |
| 3166 | /* void poly2s long s short s[2*arg1] */ |
| 3167 | |
| 3168 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3169 | gl_poly2s(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3170 | { |
| 3171 | long arg1 ; |
| 3172 | short (* arg2) [ 2 ] ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3173 | if (!getilongarraysize(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3174 | return NULL; |
| 3175 | arg1 = arg1 / 2; |
| 3176 | if ((arg2 = (short(*)[2]) PyMem_NEW(short , 2 * arg1 )) == NULL) |
| 3177 | return PyErr_NoMemory(); |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3178 | if (!getishortarray(args, 1, 0, 2 * arg1 , (short *) arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3179 | return NULL; |
| 3180 | poly2s( arg1 , arg2 ); |
| 3181 | PyMem_DEL(arg2); |
| 3182 | Py_INCREF(Py_None); |
| 3183 | return Py_None; |
| 3184 | } |
| 3185 | |
| 3186 | /* void defcursor short s u_short s[128] */ |
| 3187 | |
| 3188 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3189 | gl_defcursor(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3190 | { |
| 3191 | short arg1 ; |
| 3192 | unsigned short arg2 [ 128 ] ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3193 | if (!getishortarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3194 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3195 | if (!getishortarray(args, 2, 1, 128 , (short *) arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3196 | return NULL; |
| 3197 | defcursor( arg1 , arg2 ); |
| 3198 | Py_INCREF(Py_None); |
| 3199 | return Py_None; |
| 3200 | } |
| 3201 | |
| 3202 | /* void writepixels short s u_short s[arg1] */ |
| 3203 | |
| 3204 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3205 | gl_writepixels(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3206 | { |
| 3207 | short arg1 ; |
| 3208 | unsigned short * arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3209 | if (!getishortarraysize(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3210 | return NULL; |
| 3211 | if ((arg2 = PyMem_NEW(unsigned short , arg1 )) == NULL) |
| 3212 | return PyErr_NoMemory(); |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3213 | if (!getishortarray(args, 1, 0, arg1 , (short *) arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3214 | return NULL; |
| 3215 | writepixels( arg1 , arg2 ); |
| 3216 | PyMem_DEL(arg2); |
| 3217 | Py_INCREF(Py_None); |
| 3218 | return Py_None; |
| 3219 | } |
| 3220 | |
| 3221 | /* void defbasis long s float s[4*4] */ |
| 3222 | |
| 3223 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3224 | gl_defbasis(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3225 | { |
| 3226 | long arg1 ; |
| 3227 | float arg2 [ 4 ] [ 4 ] ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3228 | if (!getilongarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3229 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3230 | if (!getifloatarray(args, 2, 1, 4 * 4 , (float *) arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3231 | return NULL; |
| 3232 | defbasis( arg1 , arg2 ); |
| 3233 | Py_INCREF(Py_None); |
| 3234 | return Py_None; |
| 3235 | } |
| 3236 | |
| 3237 | /* void gewrite short s short s[arg1] */ |
| 3238 | |
| 3239 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3240 | gl_gewrite(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3241 | { |
| 3242 | short arg1 ; |
| 3243 | short * arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3244 | if (!getishortarraysize(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3245 | return NULL; |
| 3246 | if ((arg2 = PyMem_NEW(short , arg1 )) == NULL) |
| 3247 | return PyErr_NoMemory(); |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3248 | if (!getishortarray(args, 1, 0, arg1 , arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3249 | return NULL; |
| 3250 | gewrite( arg1 , arg2 ); |
| 3251 | PyMem_DEL(arg2); |
| 3252 | Py_INCREF(Py_None); |
| 3253 | return Py_None; |
| 3254 | } |
| 3255 | |
| 3256 | /* void rotate short s char s */ |
| 3257 | |
| 3258 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3259 | gl_rotate(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3260 | { |
| 3261 | short arg1 ; |
| 3262 | char arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3263 | if (!getishortarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3264 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3265 | if (!getichararg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3266 | return NULL; |
| 3267 | rotate( arg1 , arg2 ); |
| 3268 | Py_INCREF(Py_None); |
| 3269 | return Py_None; |
| 3270 | } |
| 3271 | |
| 3272 | /* void rot float s char s */ |
| 3273 | |
| 3274 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3275 | gl_rot(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3276 | { |
| 3277 | float arg1 ; |
| 3278 | char arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3279 | if (!getifloatarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3280 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3281 | if (!getichararg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3282 | return NULL; |
| 3283 | rot( arg1 , arg2 ); |
| 3284 | Py_INCREF(Py_None); |
| 3285 | return Py_None; |
| 3286 | } |
| 3287 | |
| 3288 | /* void circfi long s long s long s */ |
| 3289 | |
| 3290 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3291 | gl_circfi(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3292 | { |
| 3293 | long arg1 ; |
| 3294 | long arg2 ; |
| 3295 | long arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3296 | if (!getilongarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3297 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3298 | if (!getilongarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3299 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3300 | if (!getilongarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3301 | return NULL; |
| 3302 | circfi( arg1 , arg2 , arg3 ); |
| 3303 | Py_INCREF(Py_None); |
| 3304 | return Py_None; |
| 3305 | } |
| 3306 | |
| 3307 | /* void circi long s long s long s */ |
| 3308 | |
| 3309 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3310 | gl_circi(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3311 | { |
| 3312 | long arg1 ; |
| 3313 | long arg2 ; |
| 3314 | long arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3315 | if (!getilongarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3316 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3317 | if (!getilongarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3318 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3319 | if (!getilongarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3320 | return NULL; |
| 3321 | circi( arg1 , arg2 , arg3 ); |
| 3322 | Py_INCREF(Py_None); |
| 3323 | return Py_None; |
| 3324 | } |
| 3325 | |
| 3326 | /* void cmovi long s long s long s */ |
| 3327 | |
| 3328 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3329 | gl_cmovi(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3330 | { |
| 3331 | long arg1 ; |
| 3332 | long arg2 ; |
| 3333 | long arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3334 | if (!getilongarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3335 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3336 | if (!getilongarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3337 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3338 | if (!getilongarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3339 | return NULL; |
| 3340 | cmovi( arg1 , arg2 , arg3 ); |
| 3341 | Py_INCREF(Py_None); |
| 3342 | return Py_None; |
| 3343 | } |
| 3344 | |
| 3345 | /* void drawi long s long s long s */ |
| 3346 | |
| 3347 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3348 | gl_drawi(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3349 | { |
| 3350 | long arg1 ; |
| 3351 | long arg2 ; |
| 3352 | long arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3353 | if (!getilongarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3354 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3355 | if (!getilongarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3356 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3357 | if (!getilongarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3358 | return NULL; |
| 3359 | drawi( arg1 , arg2 , arg3 ); |
| 3360 | Py_INCREF(Py_None); |
| 3361 | return Py_None; |
| 3362 | } |
| 3363 | |
| 3364 | /* void movei long s long s long s */ |
| 3365 | |
| 3366 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3367 | gl_movei(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3368 | { |
| 3369 | long arg1 ; |
| 3370 | long arg2 ; |
| 3371 | long arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3372 | if (!getilongarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3373 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3374 | if (!getilongarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3375 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3376 | if (!getilongarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3377 | return NULL; |
| 3378 | movei( arg1 , arg2 , arg3 ); |
| 3379 | Py_INCREF(Py_None); |
| 3380 | return Py_None; |
| 3381 | } |
| 3382 | |
| 3383 | /* void pnti long s long s long s */ |
| 3384 | |
| 3385 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3386 | gl_pnti(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3387 | { |
| 3388 | long arg1 ; |
| 3389 | long arg2 ; |
| 3390 | long arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3391 | if (!getilongarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3392 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3393 | if (!getilongarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3394 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3395 | if (!getilongarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3396 | return NULL; |
| 3397 | pnti( arg1 , arg2 , arg3 ); |
| 3398 | Py_INCREF(Py_None); |
| 3399 | return Py_None; |
| 3400 | } |
| 3401 | |
| 3402 | /* void newtag long s long s long s */ |
| 3403 | |
| 3404 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3405 | gl_newtag(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3406 | { |
| 3407 | long arg1 ; |
| 3408 | long arg2 ; |
| 3409 | long arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3410 | if (!getilongarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3411 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3412 | if (!getilongarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3413 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3414 | if (!getilongarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3415 | return NULL; |
| 3416 | newtag( arg1 , arg2 , arg3 ); |
| 3417 | Py_INCREF(Py_None); |
| 3418 | return Py_None; |
| 3419 | } |
| 3420 | |
| 3421 | /* void pdri long s long s long s */ |
| 3422 | |
| 3423 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3424 | gl_pdri(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3425 | { |
| 3426 | long arg1 ; |
| 3427 | long arg2 ; |
| 3428 | long arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3429 | if (!getilongarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3430 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3431 | if (!getilongarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3432 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3433 | if (!getilongarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3434 | return NULL; |
| 3435 | pdri( arg1 , arg2 , arg3 ); |
| 3436 | Py_INCREF(Py_None); |
| 3437 | return Py_None; |
| 3438 | } |
| 3439 | |
| 3440 | /* void pmvi long s long s long s */ |
| 3441 | |
| 3442 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3443 | gl_pmvi(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3444 | { |
| 3445 | long arg1 ; |
| 3446 | long arg2 ; |
| 3447 | long arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3448 | if (!getilongarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3449 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3450 | if (!getilongarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3451 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3452 | if (!getilongarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3453 | return NULL; |
| 3454 | pmvi( arg1 , arg2 , arg3 ); |
| 3455 | Py_INCREF(Py_None); |
| 3456 | return Py_None; |
| 3457 | } |
| 3458 | |
| 3459 | /* void rdri long s long s long s */ |
| 3460 | |
| 3461 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3462 | gl_rdri(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3463 | { |
| 3464 | long arg1 ; |
| 3465 | long arg2 ; |
| 3466 | long arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3467 | if (!getilongarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3468 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3469 | if (!getilongarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3470 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3471 | if (!getilongarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3472 | return NULL; |
| 3473 | rdri( arg1 , arg2 , arg3 ); |
| 3474 | Py_INCREF(Py_None); |
| 3475 | return Py_None; |
| 3476 | } |
| 3477 | |
| 3478 | /* void rmvi long s long s long s */ |
| 3479 | |
| 3480 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3481 | gl_rmvi(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3482 | { |
| 3483 | long arg1 ; |
| 3484 | long arg2 ; |
| 3485 | long arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3486 | if (!getilongarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3487 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3488 | if (!getilongarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3489 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3490 | if (!getilongarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3491 | return NULL; |
| 3492 | rmvi( arg1 , arg2 , arg3 ); |
| 3493 | Py_INCREF(Py_None); |
| 3494 | return Py_None; |
| 3495 | } |
| 3496 | |
| 3497 | /* void rpdri long s long s long s */ |
| 3498 | |
| 3499 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3500 | gl_rpdri(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3501 | { |
| 3502 | long arg1 ; |
| 3503 | long arg2 ; |
| 3504 | long arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3505 | if (!getilongarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3506 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3507 | if (!getilongarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3508 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3509 | if (!getilongarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3510 | return NULL; |
| 3511 | rpdri( arg1 , arg2 , arg3 ); |
| 3512 | Py_INCREF(Py_None); |
| 3513 | return Py_None; |
| 3514 | } |
| 3515 | |
| 3516 | /* void rpmvi long s long s long s */ |
| 3517 | |
| 3518 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3519 | gl_rpmvi(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3520 | { |
| 3521 | long arg1 ; |
| 3522 | long arg2 ; |
| 3523 | long arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3524 | if (!getilongarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3525 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3526 | if (!getilongarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3527 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3528 | if (!getilongarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3529 | return NULL; |
| 3530 | rpmvi( arg1 , arg2 , arg3 ); |
| 3531 | Py_INCREF(Py_None); |
| 3532 | return Py_None; |
| 3533 | } |
| 3534 | |
| 3535 | /* void xfpti long s long s long s */ |
| 3536 | |
| 3537 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3538 | gl_xfpti(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3539 | { |
| 3540 | long arg1 ; |
| 3541 | long arg2 ; |
| 3542 | long arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3543 | if (!getilongarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3544 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3545 | if (!getilongarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3546 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3547 | if (!getilongarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3548 | return NULL; |
| 3549 | xfpti( arg1 , arg2 , arg3 ); |
| 3550 | Py_INCREF(Py_None); |
| 3551 | return Py_None; |
| 3552 | } |
| 3553 | |
| 3554 | /* void circ float s float s float s */ |
| 3555 | |
| 3556 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3557 | gl_circ(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3558 | { |
| 3559 | float arg1 ; |
| 3560 | float arg2 ; |
| 3561 | float arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3562 | if (!getifloatarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3563 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3564 | if (!getifloatarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3565 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3566 | if (!getifloatarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3567 | return NULL; |
| 3568 | circ( arg1 , arg2 , arg3 ); |
| 3569 | Py_INCREF(Py_None); |
| 3570 | return Py_None; |
| 3571 | } |
| 3572 | |
| 3573 | /* void circf float s float s float s */ |
| 3574 | |
| 3575 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3576 | gl_circf(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3577 | { |
| 3578 | float arg1 ; |
| 3579 | float arg2 ; |
| 3580 | float arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3581 | if (!getifloatarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3582 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3583 | if (!getifloatarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3584 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3585 | if (!getifloatarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3586 | return NULL; |
| 3587 | circf( arg1 , arg2 , arg3 ); |
| 3588 | Py_INCREF(Py_None); |
| 3589 | return Py_None; |
| 3590 | } |
| 3591 | |
| 3592 | /* void cmov float s float s float s */ |
| 3593 | |
| 3594 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3595 | gl_cmov(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3596 | { |
| 3597 | float arg1 ; |
| 3598 | float arg2 ; |
| 3599 | float arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3600 | if (!getifloatarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3601 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3602 | if (!getifloatarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3603 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3604 | if (!getifloatarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3605 | return NULL; |
| 3606 | cmov( arg1 , arg2 , arg3 ); |
| 3607 | Py_INCREF(Py_None); |
| 3608 | return Py_None; |
| 3609 | } |
| 3610 | |
| 3611 | /* void draw float s float s float s */ |
| 3612 | |
| 3613 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3614 | gl_draw(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3615 | { |
| 3616 | float arg1 ; |
| 3617 | float arg2 ; |
| 3618 | float arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3619 | if (!getifloatarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3620 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3621 | if (!getifloatarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3622 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3623 | if (!getifloatarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3624 | return NULL; |
| 3625 | draw( arg1 , arg2 , arg3 ); |
| 3626 | Py_INCREF(Py_None); |
| 3627 | return Py_None; |
| 3628 | } |
| 3629 | |
| 3630 | /* void move float s float s float s */ |
| 3631 | |
| 3632 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3633 | gl_move(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3634 | { |
| 3635 | float arg1 ; |
| 3636 | float arg2 ; |
| 3637 | float arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3638 | if (!getifloatarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3639 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3640 | if (!getifloatarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3641 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3642 | if (!getifloatarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3643 | return NULL; |
| 3644 | move( arg1 , arg2 , arg3 ); |
| 3645 | Py_INCREF(Py_None); |
| 3646 | return Py_None; |
| 3647 | } |
| 3648 | |
| 3649 | /* void pnt float s float s float s */ |
| 3650 | |
| 3651 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3652 | gl_pnt(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3653 | { |
| 3654 | float arg1 ; |
| 3655 | float arg2 ; |
| 3656 | float arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3657 | if (!getifloatarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3658 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3659 | if (!getifloatarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3660 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3661 | if (!getifloatarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3662 | return NULL; |
| 3663 | pnt( arg1 , arg2 , arg3 ); |
| 3664 | Py_INCREF(Py_None); |
| 3665 | return Py_None; |
| 3666 | } |
| 3667 | |
| 3668 | /* void scale float s float s float s */ |
| 3669 | |
| 3670 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3671 | gl_scale(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3672 | { |
| 3673 | float arg1 ; |
| 3674 | float arg2 ; |
| 3675 | float arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3676 | if (!getifloatarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3677 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3678 | if (!getifloatarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3679 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3680 | if (!getifloatarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3681 | return NULL; |
| 3682 | scale( arg1 , arg2 , arg3 ); |
| 3683 | Py_INCREF(Py_None); |
| 3684 | return Py_None; |
| 3685 | } |
| 3686 | |
| 3687 | /* void translate float s float s float s */ |
| 3688 | |
| 3689 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3690 | gl_translate(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3691 | { |
| 3692 | float arg1 ; |
| 3693 | float arg2 ; |
| 3694 | float arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3695 | if (!getifloatarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3696 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3697 | if (!getifloatarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3698 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3699 | if (!getifloatarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3700 | return NULL; |
| 3701 | translate( arg1 , arg2 , arg3 ); |
| 3702 | Py_INCREF(Py_None); |
| 3703 | return Py_None; |
| 3704 | } |
| 3705 | |
| 3706 | /* void pdr float s float s float s */ |
| 3707 | |
| 3708 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3709 | gl_pdr(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3710 | { |
| 3711 | float arg1 ; |
| 3712 | float arg2 ; |
| 3713 | float arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3714 | if (!getifloatarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3715 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3716 | if (!getifloatarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3717 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3718 | if (!getifloatarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3719 | return NULL; |
| 3720 | pdr( arg1 , arg2 , arg3 ); |
| 3721 | Py_INCREF(Py_None); |
| 3722 | return Py_None; |
| 3723 | } |
| 3724 | |
| 3725 | /* void pmv float s float s float s */ |
| 3726 | |
| 3727 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3728 | gl_pmv(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3729 | { |
| 3730 | float arg1 ; |
| 3731 | float arg2 ; |
| 3732 | float arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3733 | if (!getifloatarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3734 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3735 | if (!getifloatarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3736 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3737 | if (!getifloatarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3738 | return NULL; |
| 3739 | pmv( arg1 , arg2 , arg3 ); |
| 3740 | Py_INCREF(Py_None); |
| 3741 | return Py_None; |
| 3742 | } |
| 3743 | |
| 3744 | /* void rdr float s float s float s */ |
| 3745 | |
| 3746 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3747 | gl_rdr(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3748 | { |
| 3749 | float arg1 ; |
| 3750 | float arg2 ; |
| 3751 | float arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3752 | if (!getifloatarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3753 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3754 | if (!getifloatarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3755 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3756 | if (!getifloatarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3757 | return NULL; |
| 3758 | rdr( arg1 , arg2 , arg3 ); |
| 3759 | Py_INCREF(Py_None); |
| 3760 | return Py_None; |
| 3761 | } |
| 3762 | |
| 3763 | /* void rmv float s float s float s */ |
| 3764 | |
| 3765 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3766 | gl_rmv(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3767 | { |
| 3768 | float arg1 ; |
| 3769 | float arg2 ; |
| 3770 | float arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3771 | if (!getifloatarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3772 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3773 | if (!getifloatarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3774 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3775 | if (!getifloatarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3776 | return NULL; |
| 3777 | rmv( arg1 , arg2 , arg3 ); |
| 3778 | Py_INCREF(Py_None); |
| 3779 | return Py_None; |
| 3780 | } |
| 3781 | |
| 3782 | /* void rpdr float s float s float s */ |
| 3783 | |
| 3784 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3785 | gl_rpdr(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3786 | { |
| 3787 | float arg1 ; |
| 3788 | float arg2 ; |
| 3789 | float arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3790 | if (!getifloatarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3791 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3792 | if (!getifloatarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3793 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3794 | if (!getifloatarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3795 | return NULL; |
| 3796 | rpdr( arg1 , arg2 , arg3 ); |
| 3797 | Py_INCREF(Py_None); |
| 3798 | return Py_None; |
| 3799 | } |
| 3800 | |
| 3801 | /* void rpmv float s float s float s */ |
| 3802 | |
| 3803 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3804 | gl_rpmv(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3805 | { |
| 3806 | float arg1 ; |
| 3807 | float arg2 ; |
| 3808 | float arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3809 | if (!getifloatarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3810 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3811 | if (!getifloatarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3812 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3813 | if (!getifloatarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3814 | return NULL; |
| 3815 | rpmv( arg1 , arg2 , arg3 ); |
| 3816 | Py_INCREF(Py_None); |
| 3817 | return Py_None; |
| 3818 | } |
| 3819 | |
| 3820 | /* void xfpt float s float s float s */ |
| 3821 | |
| 3822 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3823 | gl_xfpt(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3824 | { |
| 3825 | float arg1 ; |
| 3826 | float arg2 ; |
| 3827 | float arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3828 | if (!getifloatarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3829 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3830 | if (!getifloatarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3831 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3832 | if (!getifloatarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3833 | return NULL; |
| 3834 | xfpt( arg1 , arg2 , arg3 ); |
| 3835 | Py_INCREF(Py_None); |
| 3836 | return Py_None; |
| 3837 | } |
| 3838 | |
| 3839 | /* void RGBcolor short s short s short s */ |
| 3840 | |
| 3841 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3842 | gl_RGBcolor(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3843 | { |
| 3844 | short arg1 ; |
| 3845 | short arg2 ; |
| 3846 | short arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3847 | if (!getishortarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3848 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3849 | if (!getishortarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3850 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3851 | if (!getishortarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3852 | return NULL; |
| 3853 | RGBcolor( arg1 , arg2 , arg3 ); |
| 3854 | Py_INCREF(Py_None); |
| 3855 | return Py_None; |
| 3856 | } |
| 3857 | |
| 3858 | /* void RGBwritemask short s short s short s */ |
| 3859 | |
| 3860 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3861 | gl_RGBwritemask(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3862 | { |
| 3863 | short arg1 ; |
| 3864 | short arg2 ; |
| 3865 | short arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3866 | if (!getishortarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3867 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3868 | if (!getishortarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3869 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3870 | if (!getishortarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3871 | return NULL; |
| 3872 | RGBwritemask( arg1 , arg2 , arg3 ); |
| 3873 | Py_INCREF(Py_None); |
| 3874 | return Py_None; |
| 3875 | } |
| 3876 | |
| 3877 | /* void setcursor short s short s short s */ |
| 3878 | |
| 3879 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3880 | gl_setcursor(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3881 | { |
| 3882 | short arg1 ; |
| 3883 | short arg2 ; |
| 3884 | short arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3885 | if (!getishortarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3886 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3887 | if (!getishortarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3888 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3889 | if (!getishortarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3890 | return NULL; |
| 3891 | setcursor( arg1 , arg2 , arg3 ); |
| 3892 | Py_INCREF(Py_None); |
| 3893 | return Py_None; |
| 3894 | } |
| 3895 | |
| 3896 | /* void tie short s short s short s */ |
| 3897 | |
| 3898 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3899 | gl_tie(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3900 | { |
| 3901 | short arg1 ; |
| 3902 | short arg2 ; |
| 3903 | short arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3904 | if (!getishortarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3905 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3906 | if (!getishortarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3907 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3908 | if (!getishortarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3909 | return NULL; |
| 3910 | tie( arg1 , arg2 , arg3 ); |
| 3911 | Py_INCREF(Py_None); |
| 3912 | return Py_None; |
| 3913 | } |
| 3914 | |
| 3915 | /* void circfs short s short s short s */ |
| 3916 | |
| 3917 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3918 | gl_circfs(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3919 | { |
| 3920 | short arg1 ; |
| 3921 | short arg2 ; |
| 3922 | short arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3923 | if (!getishortarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3924 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3925 | if (!getishortarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3926 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3927 | if (!getishortarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3928 | return NULL; |
| 3929 | circfs( arg1 , arg2 , arg3 ); |
| 3930 | Py_INCREF(Py_None); |
| 3931 | return Py_None; |
| 3932 | } |
| 3933 | |
| 3934 | /* void circs short s short s short s */ |
| 3935 | |
| 3936 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3937 | gl_circs(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3938 | { |
| 3939 | short arg1 ; |
| 3940 | short arg2 ; |
| 3941 | short arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3942 | if (!getishortarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3943 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3944 | if (!getishortarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3945 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3946 | if (!getishortarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3947 | return NULL; |
| 3948 | circs( arg1 , arg2 , arg3 ); |
| 3949 | Py_INCREF(Py_None); |
| 3950 | return Py_None; |
| 3951 | } |
| 3952 | |
| 3953 | /* void cmovs short s short s short s */ |
| 3954 | |
| 3955 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3956 | gl_cmovs(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3957 | { |
| 3958 | short arg1 ; |
| 3959 | short arg2 ; |
| 3960 | short arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3961 | if (!getishortarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3962 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3963 | if (!getishortarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3964 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3965 | if (!getishortarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3966 | return NULL; |
| 3967 | cmovs( arg1 , arg2 , arg3 ); |
| 3968 | Py_INCREF(Py_None); |
| 3969 | return Py_None; |
| 3970 | } |
| 3971 | |
| 3972 | /* void draws short s short s short s */ |
| 3973 | |
| 3974 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3975 | gl_draws(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3976 | { |
| 3977 | short arg1 ; |
| 3978 | short arg2 ; |
| 3979 | short arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3980 | if (!getishortarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3981 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3982 | if (!getishortarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3983 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3984 | if (!getishortarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3985 | return NULL; |
| 3986 | draws( arg1 , arg2 , arg3 ); |
| 3987 | Py_INCREF(Py_None); |
| 3988 | return Py_None; |
| 3989 | } |
| 3990 | |
| 3991 | /* void moves short s short s short s */ |
| 3992 | |
| 3993 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 3994 | gl_moves(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 3995 | { |
| 3996 | short arg1 ; |
| 3997 | short arg2 ; |
| 3998 | short arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 3999 | if (!getishortarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4000 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4001 | if (!getishortarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4002 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4003 | if (!getishortarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4004 | return NULL; |
| 4005 | moves( arg1 , arg2 , arg3 ); |
| 4006 | Py_INCREF(Py_None); |
| 4007 | return Py_None; |
| 4008 | } |
| 4009 | |
| 4010 | /* void pdrs short s short s short s */ |
| 4011 | |
| 4012 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 4013 | gl_pdrs(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4014 | { |
| 4015 | short arg1 ; |
| 4016 | short arg2 ; |
| 4017 | short arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4018 | if (!getishortarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4019 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4020 | if (!getishortarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4021 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4022 | if (!getishortarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4023 | return NULL; |
| 4024 | pdrs( arg1 , arg2 , arg3 ); |
| 4025 | Py_INCREF(Py_None); |
| 4026 | return Py_None; |
| 4027 | } |
| 4028 | |
| 4029 | /* void pmvs short s short s short s */ |
| 4030 | |
| 4031 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 4032 | gl_pmvs(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4033 | { |
| 4034 | short arg1 ; |
| 4035 | short arg2 ; |
| 4036 | short arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4037 | if (!getishortarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4038 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4039 | if (!getishortarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4040 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4041 | if (!getishortarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4042 | return NULL; |
| 4043 | pmvs( arg1 , arg2 , arg3 ); |
| 4044 | Py_INCREF(Py_None); |
| 4045 | return Py_None; |
| 4046 | } |
| 4047 | |
| 4048 | /* void pnts short s short s short s */ |
| 4049 | |
| 4050 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 4051 | gl_pnts(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4052 | { |
| 4053 | short arg1 ; |
| 4054 | short arg2 ; |
| 4055 | short arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4056 | if (!getishortarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4057 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4058 | if (!getishortarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4059 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4060 | if (!getishortarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4061 | return NULL; |
| 4062 | pnts( arg1 , arg2 , arg3 ); |
| 4063 | Py_INCREF(Py_None); |
| 4064 | return Py_None; |
| 4065 | } |
| 4066 | |
| 4067 | /* void rdrs short s short s short s */ |
| 4068 | |
| 4069 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 4070 | gl_rdrs(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4071 | { |
| 4072 | short arg1 ; |
| 4073 | short arg2 ; |
| 4074 | short arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4075 | if (!getishortarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4076 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4077 | if (!getishortarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4078 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4079 | if (!getishortarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4080 | return NULL; |
| 4081 | rdrs( arg1 , arg2 , arg3 ); |
| 4082 | Py_INCREF(Py_None); |
| 4083 | return Py_None; |
| 4084 | } |
| 4085 | |
| 4086 | /* void rmvs short s short s short s */ |
| 4087 | |
| 4088 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 4089 | gl_rmvs(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4090 | { |
| 4091 | short arg1 ; |
| 4092 | short arg2 ; |
| 4093 | short arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4094 | if (!getishortarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4095 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4096 | if (!getishortarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4097 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4098 | if (!getishortarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4099 | return NULL; |
| 4100 | rmvs( arg1 , arg2 , arg3 ); |
| 4101 | Py_INCREF(Py_None); |
| 4102 | return Py_None; |
| 4103 | } |
| 4104 | |
| 4105 | /* void rpdrs short s short s short s */ |
| 4106 | |
| 4107 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 4108 | gl_rpdrs(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4109 | { |
| 4110 | short arg1 ; |
| 4111 | short arg2 ; |
| 4112 | short arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4113 | if (!getishortarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4114 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4115 | if (!getishortarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4116 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4117 | if (!getishortarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4118 | return NULL; |
| 4119 | rpdrs( arg1 , arg2 , arg3 ); |
| 4120 | Py_INCREF(Py_None); |
| 4121 | return Py_None; |
| 4122 | } |
| 4123 | |
| 4124 | /* void rpmvs short s short s short s */ |
| 4125 | |
| 4126 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 4127 | gl_rpmvs(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4128 | { |
| 4129 | short arg1 ; |
| 4130 | short arg2 ; |
| 4131 | short arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4132 | if (!getishortarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4133 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4134 | if (!getishortarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4135 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4136 | if (!getishortarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4137 | return NULL; |
| 4138 | rpmvs( arg1 , arg2 , arg3 ); |
| 4139 | Py_INCREF(Py_None); |
| 4140 | return Py_None; |
| 4141 | } |
| 4142 | |
| 4143 | /* void xfpts short s short s short s */ |
| 4144 | |
| 4145 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 4146 | gl_xfpts(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4147 | { |
| 4148 | short arg1 ; |
| 4149 | short arg2 ; |
| 4150 | short arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4151 | if (!getishortarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4152 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4153 | if (!getishortarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4154 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4155 | if (!getishortarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4156 | return NULL; |
| 4157 | xfpts( arg1 , arg2 , arg3 ); |
| 4158 | Py_INCREF(Py_None); |
| 4159 | return Py_None; |
| 4160 | } |
| 4161 | |
| 4162 | /* void curorigin short s short s short s */ |
| 4163 | |
| 4164 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 4165 | gl_curorigin(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4166 | { |
| 4167 | short arg1 ; |
| 4168 | short arg2 ; |
| 4169 | short arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4170 | if (!getishortarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4171 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4172 | if (!getishortarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4173 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4174 | if (!getishortarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4175 | return NULL; |
| 4176 | curorigin( arg1 , arg2 , arg3 ); |
| 4177 | Py_INCREF(Py_None); |
| 4178 | return Py_None; |
| 4179 | } |
| 4180 | |
| 4181 | /* void cyclemap short s short s short s */ |
| 4182 | |
| 4183 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 4184 | gl_cyclemap(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4185 | { |
| 4186 | short arg1 ; |
| 4187 | short arg2 ; |
| 4188 | short arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4189 | if (!getishortarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4190 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4191 | if (!getishortarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4192 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4193 | if (!getishortarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4194 | return NULL; |
| 4195 | cyclemap( arg1 , arg2 , arg3 ); |
| 4196 | Py_INCREF(Py_None); |
| 4197 | return Py_None; |
| 4198 | } |
| 4199 | |
| 4200 | /* void patch float s[4*4] float s[4*4] float s[4*4] */ |
| 4201 | |
| 4202 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 4203 | gl_patch(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4204 | { |
| 4205 | float arg1 [ 4 ] [ 4 ] ; |
| 4206 | float arg2 [ 4 ] [ 4 ] ; |
| 4207 | float arg3 [ 4 ] [ 4 ] ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4208 | if (!getifloatarray(args, 3, 0, 4 * 4 , (float *) arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4209 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4210 | if (!getifloatarray(args, 3, 1, 4 * 4 , (float *) arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4211 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4212 | if (!getifloatarray(args, 3, 2, 4 * 4 , (float *) arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4213 | return NULL; |
| 4214 | patch( arg1 , arg2 , arg3 ); |
| 4215 | Py_INCREF(Py_None); |
| 4216 | return Py_None; |
| 4217 | } |
| 4218 | |
| 4219 | /* void splf long s float s[3*arg1] u_short s[arg1] */ |
| 4220 | |
| 4221 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 4222 | gl_splf(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4223 | { |
| 4224 | long arg1 ; |
| 4225 | float (* arg2) [ 3 ] ; |
| 4226 | unsigned short * arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4227 | if (!getilongarraysize(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4228 | return NULL; |
| 4229 | arg1 = arg1 / 3; |
| 4230 | if ((arg2 = (float(*)[3]) PyMem_NEW(float , 3 * arg1 )) == NULL) |
| 4231 | return PyErr_NoMemory(); |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4232 | if (!getifloatarray(args, 2, 0, 3 * arg1 , (float *) arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4233 | return NULL; |
| 4234 | if ((arg3 = PyMem_NEW(unsigned short , arg1 )) == NULL) |
| 4235 | return PyErr_NoMemory(); |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4236 | if (!getishortarray(args, 2, 1, arg1 , (short *) arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4237 | return NULL; |
| 4238 | splf( arg1 , arg2 , arg3 ); |
| 4239 | PyMem_DEL(arg2); |
| 4240 | PyMem_DEL(arg3); |
| 4241 | Py_INCREF(Py_None); |
| 4242 | return Py_None; |
| 4243 | } |
| 4244 | |
| 4245 | /* void splf2 long s float s[2*arg1] u_short s[arg1] */ |
| 4246 | |
| 4247 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 4248 | gl_splf2(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4249 | { |
| 4250 | long arg1 ; |
| 4251 | float (* arg2) [ 2 ] ; |
| 4252 | unsigned short * arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4253 | if (!getilongarraysize(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4254 | return NULL; |
| 4255 | arg1 = arg1 / 2; |
| 4256 | if ((arg2 = (float(*)[2]) PyMem_NEW(float , 2 * arg1 )) == NULL) |
| 4257 | return PyErr_NoMemory(); |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4258 | if (!getifloatarray(args, 2, 0, 2 * arg1 , (float *) arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4259 | return NULL; |
| 4260 | if ((arg3 = PyMem_NEW(unsigned short , arg1 )) == NULL) |
| 4261 | return PyErr_NoMemory(); |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4262 | if (!getishortarray(args, 2, 1, arg1 , (short *) arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4263 | return NULL; |
| 4264 | splf2( arg1 , arg2 , arg3 ); |
| 4265 | PyMem_DEL(arg2); |
| 4266 | PyMem_DEL(arg3); |
| 4267 | Py_INCREF(Py_None); |
| 4268 | return Py_None; |
| 4269 | } |
| 4270 | |
| 4271 | /* void splfi long s long s[3*arg1] u_short s[arg1] */ |
| 4272 | |
| 4273 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 4274 | gl_splfi(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4275 | { |
| 4276 | long arg1 ; |
| 4277 | long (* arg2) [ 3 ] ; |
| 4278 | unsigned short * arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4279 | if (!getilongarraysize(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4280 | return NULL; |
| 4281 | arg1 = arg1 / 3; |
| 4282 | if ((arg2 = (long(*)[3]) PyMem_NEW(long , 3 * arg1 )) == NULL) |
| 4283 | return PyErr_NoMemory(); |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4284 | if (!getilongarray(args, 2, 0, 3 * arg1 , (long *) arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4285 | return NULL; |
| 4286 | if ((arg3 = PyMem_NEW(unsigned short , arg1 )) == NULL) |
| 4287 | return PyErr_NoMemory(); |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4288 | if (!getishortarray(args, 2, 1, arg1 , (short *) arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4289 | return NULL; |
| 4290 | splfi( arg1 , arg2 , arg3 ); |
| 4291 | PyMem_DEL(arg2); |
| 4292 | PyMem_DEL(arg3); |
| 4293 | Py_INCREF(Py_None); |
| 4294 | return Py_None; |
| 4295 | } |
| 4296 | |
| 4297 | /* void splf2i long s long s[2*arg1] u_short s[arg1] */ |
| 4298 | |
| 4299 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 4300 | gl_splf2i(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4301 | { |
| 4302 | long arg1 ; |
| 4303 | long (* arg2) [ 2 ] ; |
| 4304 | unsigned short * arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4305 | if (!getilongarraysize(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4306 | return NULL; |
| 4307 | arg1 = arg1 / 2; |
| 4308 | if ((arg2 = (long(*)[2]) PyMem_NEW(long , 2 * arg1 )) == NULL) |
| 4309 | return PyErr_NoMemory(); |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4310 | if (!getilongarray(args, 2, 0, 2 * arg1 , (long *) arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4311 | return NULL; |
| 4312 | if ((arg3 = PyMem_NEW(unsigned short , arg1 )) == NULL) |
| 4313 | return PyErr_NoMemory(); |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4314 | if (!getishortarray(args, 2, 1, arg1 , (short *) arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4315 | return NULL; |
| 4316 | splf2i( arg1 , arg2 , arg3 ); |
| 4317 | PyMem_DEL(arg2); |
| 4318 | PyMem_DEL(arg3); |
| 4319 | Py_INCREF(Py_None); |
| 4320 | return Py_None; |
| 4321 | } |
| 4322 | |
| 4323 | /* void splfs long s short s[3*arg1] u_short s[arg1] */ |
| 4324 | |
| 4325 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 4326 | gl_splfs(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4327 | { |
| 4328 | long arg1 ; |
| 4329 | short (* arg2) [ 3 ] ; |
| 4330 | unsigned short * arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4331 | if (!getilongarraysize(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4332 | return NULL; |
| 4333 | arg1 = arg1 / 3; |
| 4334 | if ((arg2 = (short(*)[3]) PyMem_NEW(short , 3 * arg1 )) == NULL) |
| 4335 | return PyErr_NoMemory(); |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4336 | if (!getishortarray(args, 2, 0, 3 * arg1 , (short *) arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4337 | return NULL; |
| 4338 | if ((arg3 = PyMem_NEW(unsigned short , arg1 )) == NULL) |
| 4339 | return PyErr_NoMemory(); |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4340 | if (!getishortarray(args, 2, 1, arg1 , (short *) arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4341 | return NULL; |
| 4342 | splfs( arg1 , arg2 , arg3 ); |
| 4343 | PyMem_DEL(arg2); |
| 4344 | PyMem_DEL(arg3); |
| 4345 | Py_INCREF(Py_None); |
| 4346 | return Py_None; |
| 4347 | } |
| 4348 | |
| 4349 | /* void splf2s long s short s[2*arg1] u_short s[arg1] */ |
| 4350 | |
| 4351 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 4352 | gl_splf2s(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4353 | { |
| 4354 | long arg1 ; |
| 4355 | short (* arg2) [ 2 ] ; |
| 4356 | unsigned short * arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4357 | if (!getilongarraysize(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4358 | return NULL; |
| 4359 | arg1 = arg1 / 2; |
| 4360 | if ((arg2 = (short(*)[2]) PyMem_NEW(short , 2 * arg1 )) == NULL) |
| 4361 | return PyErr_NoMemory(); |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4362 | if (!getishortarray(args, 2, 0, 2 * arg1 , (short *) arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4363 | return NULL; |
| 4364 | if ((arg3 = PyMem_NEW(unsigned short , arg1 )) == NULL) |
| 4365 | return PyErr_NoMemory(); |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4366 | if (!getishortarray(args, 2, 1, arg1 , (short *) arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4367 | return NULL; |
| 4368 | splf2s( arg1 , arg2 , arg3 ); |
| 4369 | PyMem_DEL(arg2); |
| 4370 | PyMem_DEL(arg3); |
| 4371 | Py_INCREF(Py_None); |
| 4372 | return Py_None; |
| 4373 | } |
| 4374 | |
| 4375 | /* void rpatch float s[4*4] float s[4*4] float s[4*4] float s[4*4] */ |
| 4376 | |
| 4377 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 4378 | gl_rpatch(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4379 | { |
| 4380 | float arg1 [ 4 ] [ 4 ] ; |
| 4381 | float arg2 [ 4 ] [ 4 ] ; |
| 4382 | float arg3 [ 4 ] [ 4 ] ; |
| 4383 | float arg4 [ 4 ] [ 4 ] ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4384 | if (!getifloatarray(args, 4, 0, 4 * 4 , (float *) arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4385 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4386 | if (!getifloatarray(args, 4, 1, 4 * 4 , (float *) arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4387 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4388 | if (!getifloatarray(args, 4, 2, 4 * 4 , (float *) arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4389 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4390 | if (!getifloatarray(args, 4, 3, 4 * 4 , (float *) arg4)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4391 | return NULL; |
| 4392 | rpatch( arg1 , arg2 , arg3 , arg4 ); |
| 4393 | Py_INCREF(Py_None); |
| 4394 | return Py_None; |
| 4395 | } |
| 4396 | |
| 4397 | /* void ortho2 float s float s float s float s */ |
| 4398 | |
| 4399 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 4400 | gl_ortho2(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4401 | { |
| 4402 | float arg1 ; |
| 4403 | float arg2 ; |
| 4404 | float arg3 ; |
| 4405 | float arg4 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4406 | if (!getifloatarg(args, 4, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4407 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4408 | if (!getifloatarg(args, 4, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4409 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4410 | if (!getifloatarg(args, 4, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4411 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4412 | if (!getifloatarg(args, 4, 3, &arg4)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4413 | return NULL; |
| 4414 | ortho2( arg1 , arg2 , arg3 , arg4 ); |
| 4415 | Py_INCREF(Py_None); |
| 4416 | return Py_None; |
| 4417 | } |
| 4418 | |
| 4419 | /* void rect float s float s float s float s */ |
| 4420 | |
| 4421 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 4422 | gl_rect(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4423 | { |
| 4424 | float arg1 ; |
| 4425 | float arg2 ; |
| 4426 | float arg3 ; |
| 4427 | float arg4 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4428 | if (!getifloatarg(args, 4, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4429 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4430 | if (!getifloatarg(args, 4, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4431 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4432 | if (!getifloatarg(args, 4, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4433 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4434 | if (!getifloatarg(args, 4, 3, &arg4)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4435 | return NULL; |
| 4436 | rect( arg1 , arg2 , arg3 , arg4 ); |
| 4437 | Py_INCREF(Py_None); |
| 4438 | return Py_None; |
| 4439 | } |
| 4440 | |
| 4441 | /* void rectf float s float s float s float s */ |
| 4442 | |
| 4443 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 4444 | gl_rectf(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4445 | { |
| 4446 | float arg1 ; |
| 4447 | float arg2 ; |
| 4448 | float arg3 ; |
| 4449 | float arg4 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4450 | if (!getifloatarg(args, 4, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4451 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4452 | if (!getifloatarg(args, 4, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4453 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4454 | if (!getifloatarg(args, 4, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4455 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4456 | if (!getifloatarg(args, 4, 3, &arg4)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4457 | return NULL; |
| 4458 | rectf( arg1 , arg2 , arg3 , arg4 ); |
| 4459 | Py_INCREF(Py_None); |
| 4460 | return Py_None; |
| 4461 | } |
| 4462 | |
| 4463 | /* void xfpt4 float s float s float s float s */ |
| 4464 | |
| 4465 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 4466 | gl_xfpt4(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4467 | { |
| 4468 | float arg1 ; |
| 4469 | float arg2 ; |
| 4470 | float arg3 ; |
| 4471 | float arg4 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4472 | if (!getifloatarg(args, 4, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4473 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4474 | if (!getifloatarg(args, 4, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4475 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4476 | if (!getifloatarg(args, 4, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4477 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4478 | if (!getifloatarg(args, 4, 3, &arg4)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4479 | return NULL; |
| 4480 | xfpt4( arg1 , arg2 , arg3 , arg4 ); |
| 4481 | Py_INCREF(Py_None); |
| 4482 | return Py_None; |
| 4483 | } |
| 4484 | |
| 4485 | /* void textport short s short s short s short s */ |
| 4486 | |
| 4487 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 4488 | gl_textport(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4489 | { |
| 4490 | short arg1 ; |
| 4491 | short arg2 ; |
| 4492 | short arg3 ; |
| 4493 | short arg4 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4494 | if (!getishortarg(args, 4, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4495 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4496 | if (!getishortarg(args, 4, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4497 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4498 | if (!getishortarg(args, 4, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4499 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4500 | if (!getishortarg(args, 4, 3, &arg4)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4501 | return NULL; |
| 4502 | textport( arg1 , arg2 , arg3 , arg4 ); |
| 4503 | Py_INCREF(Py_None); |
| 4504 | return Py_None; |
| 4505 | } |
| 4506 | |
| 4507 | /* void mapcolor short s short s short s short s */ |
| 4508 | |
| 4509 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 4510 | gl_mapcolor(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4511 | { |
| 4512 | short arg1 ; |
| 4513 | short arg2 ; |
| 4514 | short arg3 ; |
| 4515 | short arg4 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4516 | if (!getishortarg(args, 4, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4517 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4518 | if (!getishortarg(args, 4, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4519 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4520 | if (!getishortarg(args, 4, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4521 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4522 | if (!getishortarg(args, 4, 3, &arg4)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4523 | return NULL; |
| 4524 | mapcolor( arg1 , arg2 , arg3 , arg4 ); |
| 4525 | Py_INCREF(Py_None); |
| 4526 | return Py_None; |
| 4527 | } |
| 4528 | |
| 4529 | /* void scrmask short s short s short s short s */ |
| 4530 | |
| 4531 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 4532 | gl_scrmask(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4533 | { |
| 4534 | short arg1 ; |
| 4535 | short arg2 ; |
| 4536 | short arg3 ; |
| 4537 | short arg4 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4538 | if (!getishortarg(args, 4, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4539 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4540 | if (!getishortarg(args, 4, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4541 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4542 | if (!getishortarg(args, 4, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4543 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4544 | if (!getishortarg(args, 4, 3, &arg4)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4545 | return NULL; |
| 4546 | scrmask( arg1 , arg2 , arg3 , arg4 ); |
| 4547 | Py_INCREF(Py_None); |
| 4548 | return Py_None; |
| 4549 | } |
| 4550 | |
| 4551 | /* void setvaluator short s short s short s short s */ |
| 4552 | |
| 4553 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 4554 | gl_setvaluator(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4555 | { |
| 4556 | short arg1 ; |
| 4557 | short arg2 ; |
| 4558 | short arg3 ; |
| 4559 | short arg4 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4560 | if (!getishortarg(args, 4, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4561 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4562 | if (!getishortarg(args, 4, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4563 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4564 | if (!getishortarg(args, 4, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4565 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4566 | if (!getishortarg(args, 4, 3, &arg4)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4567 | return NULL; |
| 4568 | setvaluator( arg1 , arg2 , arg3 , arg4 ); |
| 4569 | Py_INCREF(Py_None); |
| 4570 | return Py_None; |
| 4571 | } |
| 4572 | |
| 4573 | /* void viewport short s short s short s short s */ |
| 4574 | |
| 4575 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 4576 | gl_viewport(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4577 | { |
| 4578 | short arg1 ; |
| 4579 | short arg2 ; |
| 4580 | short arg3 ; |
| 4581 | short arg4 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4582 | if (!getishortarg(args, 4, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4583 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4584 | if (!getishortarg(args, 4, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4585 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4586 | if (!getishortarg(args, 4, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4587 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4588 | if (!getishortarg(args, 4, 3, &arg4)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4589 | return NULL; |
| 4590 | viewport( arg1 , arg2 , arg3 , arg4 ); |
| 4591 | Py_INCREF(Py_None); |
| 4592 | return Py_None; |
| 4593 | } |
| 4594 | |
| 4595 | /* void shaderange short s short s short s short s */ |
| 4596 | |
| 4597 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 4598 | gl_shaderange(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4599 | { |
| 4600 | short arg1 ; |
| 4601 | short arg2 ; |
| 4602 | short arg3 ; |
| 4603 | short arg4 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4604 | if (!getishortarg(args, 4, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4605 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4606 | if (!getishortarg(args, 4, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4607 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4608 | if (!getishortarg(args, 4, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4609 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4610 | if (!getishortarg(args, 4, 3, &arg4)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4611 | return NULL; |
| 4612 | shaderange( arg1 , arg2 , arg3 , arg4 ); |
| 4613 | Py_INCREF(Py_None); |
| 4614 | return Py_None; |
| 4615 | } |
| 4616 | |
| 4617 | /* void xfpt4s short s short s short s short s */ |
| 4618 | |
| 4619 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 4620 | gl_xfpt4s(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4621 | { |
| 4622 | short arg1 ; |
| 4623 | short arg2 ; |
| 4624 | short arg3 ; |
| 4625 | short arg4 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4626 | if (!getishortarg(args, 4, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4627 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4628 | if (!getishortarg(args, 4, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4629 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4630 | if (!getishortarg(args, 4, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4631 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4632 | if (!getishortarg(args, 4, 3, &arg4)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4633 | return NULL; |
| 4634 | xfpt4s( arg1 , arg2 , arg3 , arg4 ); |
| 4635 | Py_INCREF(Py_None); |
| 4636 | return Py_None; |
| 4637 | } |
| 4638 | |
| 4639 | /* void rectfi long s long s long s long s */ |
| 4640 | |
| 4641 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 4642 | gl_rectfi(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4643 | { |
| 4644 | long arg1 ; |
| 4645 | long arg2 ; |
| 4646 | long arg3 ; |
| 4647 | long arg4 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4648 | if (!getilongarg(args, 4, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4649 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4650 | if (!getilongarg(args, 4, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4651 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4652 | if (!getilongarg(args, 4, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4653 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4654 | if (!getilongarg(args, 4, 3, &arg4)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4655 | return NULL; |
| 4656 | rectfi( arg1 , arg2 , arg3 , arg4 ); |
| 4657 | Py_INCREF(Py_None); |
| 4658 | return Py_None; |
| 4659 | } |
| 4660 | |
| 4661 | /* void recti long s long s long s long s */ |
| 4662 | |
| 4663 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 4664 | gl_recti(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4665 | { |
| 4666 | long arg1 ; |
| 4667 | long arg2 ; |
| 4668 | long arg3 ; |
| 4669 | long arg4 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4670 | if (!getilongarg(args, 4, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4671 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4672 | if (!getilongarg(args, 4, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4673 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4674 | if (!getilongarg(args, 4, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4675 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4676 | if (!getilongarg(args, 4, 3, &arg4)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4677 | return NULL; |
| 4678 | recti( arg1 , arg2 , arg3 , arg4 ); |
| 4679 | Py_INCREF(Py_None); |
| 4680 | return Py_None; |
| 4681 | } |
| 4682 | |
| 4683 | /* void xfpt4i long s long s long s long s */ |
| 4684 | |
| 4685 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 4686 | gl_xfpt4i(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4687 | { |
| 4688 | long arg1 ; |
| 4689 | long arg2 ; |
| 4690 | long arg3 ; |
| 4691 | long arg4 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4692 | if (!getilongarg(args, 4, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4693 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4694 | if (!getilongarg(args, 4, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4695 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4696 | if (!getilongarg(args, 4, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4697 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4698 | if (!getilongarg(args, 4, 3, &arg4)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4699 | return NULL; |
| 4700 | xfpt4i( arg1 , arg2 , arg3 , arg4 ); |
| 4701 | Py_INCREF(Py_None); |
| 4702 | return Py_None; |
| 4703 | } |
| 4704 | |
| 4705 | /* void prefposition long s long s long s long s */ |
| 4706 | |
| 4707 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 4708 | gl_prefposition(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4709 | { |
| 4710 | long arg1 ; |
| 4711 | long arg2 ; |
| 4712 | long arg3 ; |
| 4713 | long arg4 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4714 | if (!getilongarg(args, 4, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4715 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4716 | if (!getilongarg(args, 4, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4717 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4718 | if (!getilongarg(args, 4, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4719 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4720 | if (!getilongarg(args, 4, 3, &arg4)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4721 | return NULL; |
| 4722 | prefposition( arg1 , arg2 , arg3 , arg4 ); |
| 4723 | Py_INCREF(Py_None); |
| 4724 | return Py_None; |
| 4725 | } |
| 4726 | |
| 4727 | /* void arc float s float s float s short s short s */ |
| 4728 | |
| 4729 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 4730 | gl_arc(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4731 | { |
| 4732 | float arg1 ; |
| 4733 | float arg2 ; |
| 4734 | float arg3 ; |
| 4735 | short arg4 ; |
| 4736 | short arg5 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4737 | if (!getifloatarg(args, 5, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4738 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4739 | if (!getifloatarg(args, 5, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4740 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4741 | if (!getifloatarg(args, 5, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4742 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4743 | if (!getishortarg(args, 5, 3, &arg4)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4744 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4745 | if (!getishortarg(args, 5, 4, &arg5)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4746 | return NULL; |
| 4747 | arc( arg1 , arg2 , arg3 , arg4 , arg5 ); |
| 4748 | Py_INCREF(Py_None); |
| 4749 | return Py_None; |
| 4750 | } |
| 4751 | |
| 4752 | /* void arcf float s float s float s short s short s */ |
| 4753 | |
| 4754 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 4755 | gl_arcf(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4756 | { |
| 4757 | float arg1 ; |
| 4758 | float arg2 ; |
| 4759 | float arg3 ; |
| 4760 | short arg4 ; |
| 4761 | short arg5 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4762 | if (!getifloatarg(args, 5, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4763 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4764 | if (!getifloatarg(args, 5, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4765 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4766 | if (!getifloatarg(args, 5, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4767 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4768 | if (!getishortarg(args, 5, 3, &arg4)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4769 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4770 | if (!getishortarg(args, 5, 4, &arg5)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4771 | return NULL; |
| 4772 | arcf( arg1 , arg2 , arg3 , arg4 , arg5 ); |
| 4773 | Py_INCREF(Py_None); |
| 4774 | return Py_None; |
| 4775 | } |
| 4776 | |
| 4777 | /* void arcfi long s long s long s short s short s */ |
| 4778 | |
| 4779 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 4780 | gl_arcfi(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4781 | { |
| 4782 | long arg1 ; |
| 4783 | long arg2 ; |
| 4784 | long arg3 ; |
| 4785 | short arg4 ; |
| 4786 | short arg5 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4787 | if (!getilongarg(args, 5, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4788 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4789 | if (!getilongarg(args, 5, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4790 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4791 | if (!getilongarg(args, 5, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4792 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4793 | if (!getishortarg(args, 5, 3, &arg4)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4794 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4795 | if (!getishortarg(args, 5, 4, &arg5)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4796 | return NULL; |
| 4797 | arcfi( arg1 , arg2 , arg3 , arg4 , arg5 ); |
| 4798 | Py_INCREF(Py_None); |
| 4799 | return Py_None; |
| 4800 | } |
| 4801 | |
| 4802 | /* void arci long s long s long s short s short s */ |
| 4803 | |
| 4804 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 4805 | gl_arci(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4806 | { |
| 4807 | long arg1 ; |
| 4808 | long arg2 ; |
| 4809 | long arg3 ; |
| 4810 | short arg4 ; |
| 4811 | short arg5 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4812 | if (!getilongarg(args, 5, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4813 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4814 | if (!getilongarg(args, 5, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4815 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4816 | if (!getilongarg(args, 5, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4817 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4818 | if (!getishortarg(args, 5, 3, &arg4)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4819 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4820 | if (!getishortarg(args, 5, 4, &arg5)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4821 | return NULL; |
| 4822 | arci( arg1 , arg2 , arg3 , arg4 , arg5 ); |
| 4823 | Py_INCREF(Py_None); |
| 4824 | return Py_None; |
| 4825 | } |
| 4826 | |
| 4827 | /* void bbox2 short s short s float s float s float s float s */ |
| 4828 | |
| 4829 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 4830 | gl_bbox2(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4831 | { |
| 4832 | short arg1 ; |
| 4833 | short arg2 ; |
| 4834 | float arg3 ; |
| 4835 | float arg4 ; |
| 4836 | float arg5 ; |
| 4837 | float arg6 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4838 | if (!getishortarg(args, 6, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4839 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4840 | if (!getishortarg(args, 6, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4841 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4842 | if (!getifloatarg(args, 6, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4843 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4844 | if (!getifloatarg(args, 6, 3, &arg4)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4845 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4846 | if (!getifloatarg(args, 6, 4, &arg5)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4847 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4848 | if (!getifloatarg(args, 6, 5, &arg6)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4849 | return NULL; |
| 4850 | bbox2( arg1 , arg2 , arg3 , arg4 , arg5 , arg6 ); |
| 4851 | Py_INCREF(Py_None); |
| 4852 | return Py_None; |
| 4853 | } |
| 4854 | |
| 4855 | /* void bbox2i short s short s long s long s long s long s */ |
| 4856 | |
| 4857 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 4858 | gl_bbox2i(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4859 | { |
| 4860 | short arg1 ; |
| 4861 | short arg2 ; |
| 4862 | long arg3 ; |
| 4863 | long arg4 ; |
| 4864 | long arg5 ; |
| 4865 | long arg6 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4866 | if (!getishortarg(args, 6, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4867 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4868 | if (!getishortarg(args, 6, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4869 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4870 | if (!getilongarg(args, 6, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4871 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4872 | if (!getilongarg(args, 6, 3, &arg4)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4873 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4874 | if (!getilongarg(args, 6, 4, &arg5)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4875 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4876 | if (!getilongarg(args, 6, 5, &arg6)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4877 | return NULL; |
| 4878 | bbox2i( arg1 , arg2 , arg3 , arg4 , arg5 , arg6 ); |
| 4879 | Py_INCREF(Py_None); |
| 4880 | return Py_None; |
| 4881 | } |
| 4882 | |
| 4883 | /* void bbox2s short s short s short s short s short s short s */ |
| 4884 | |
| 4885 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 4886 | gl_bbox2s(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4887 | { |
| 4888 | short arg1 ; |
| 4889 | short arg2 ; |
| 4890 | short arg3 ; |
| 4891 | short arg4 ; |
| 4892 | short arg5 ; |
| 4893 | short arg6 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4894 | if (!getishortarg(args, 6, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4895 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4896 | if (!getishortarg(args, 6, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4897 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4898 | if (!getishortarg(args, 6, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4899 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4900 | if (!getishortarg(args, 6, 3, &arg4)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4901 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4902 | if (!getishortarg(args, 6, 4, &arg5)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4903 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4904 | if (!getishortarg(args, 6, 5, &arg6)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4905 | return NULL; |
| 4906 | bbox2s( arg1 , arg2 , arg3 , arg4 , arg5 , arg6 ); |
| 4907 | Py_INCREF(Py_None); |
| 4908 | return Py_None; |
| 4909 | } |
| 4910 | |
| 4911 | /* void blink short s short s short s short s short s */ |
| 4912 | |
| 4913 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 4914 | gl_blink(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4915 | { |
| 4916 | short arg1 ; |
| 4917 | short arg2 ; |
| 4918 | short arg3 ; |
| 4919 | short arg4 ; |
| 4920 | short arg5 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4921 | if (!getishortarg(args, 5, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4922 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4923 | if (!getishortarg(args, 5, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4924 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4925 | if (!getishortarg(args, 5, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4926 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4927 | if (!getishortarg(args, 5, 3, &arg4)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4928 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4929 | if (!getishortarg(args, 5, 4, &arg5)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4930 | return NULL; |
| 4931 | blink( arg1 , arg2 , arg3 , arg4 , arg5 ); |
| 4932 | Py_INCREF(Py_None); |
| 4933 | return Py_None; |
| 4934 | } |
| 4935 | |
| 4936 | /* void ortho float s float s float s float s float s float s */ |
| 4937 | |
| 4938 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 4939 | gl_ortho(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4940 | { |
| 4941 | float arg1 ; |
| 4942 | float arg2 ; |
| 4943 | float arg3 ; |
| 4944 | float arg4 ; |
| 4945 | float arg5 ; |
| 4946 | float arg6 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4947 | if (!getifloatarg(args, 6, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4948 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4949 | if (!getifloatarg(args, 6, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4950 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4951 | if (!getifloatarg(args, 6, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4952 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4953 | if (!getifloatarg(args, 6, 3, &arg4)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4954 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4955 | if (!getifloatarg(args, 6, 4, &arg5)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4956 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4957 | if (!getifloatarg(args, 6, 5, &arg6)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4958 | return NULL; |
| 4959 | ortho( arg1 , arg2 , arg3 , arg4 , arg5 , arg6 ); |
| 4960 | Py_INCREF(Py_None); |
| 4961 | return Py_None; |
| 4962 | } |
| 4963 | |
| 4964 | /* void window float s float s float s float s float s float s */ |
| 4965 | |
| 4966 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 4967 | gl_window(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4968 | { |
| 4969 | float arg1 ; |
| 4970 | float arg2 ; |
| 4971 | float arg3 ; |
| 4972 | float arg4 ; |
| 4973 | float arg5 ; |
| 4974 | float arg6 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4975 | if (!getifloatarg(args, 6, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4976 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4977 | if (!getifloatarg(args, 6, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4978 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4979 | if (!getifloatarg(args, 6, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4980 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4981 | if (!getifloatarg(args, 6, 3, &arg4)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4982 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4983 | if (!getifloatarg(args, 6, 4, &arg5)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4984 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 4985 | if (!getifloatarg(args, 6, 5, &arg6)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4986 | return NULL; |
| 4987 | window( arg1 , arg2 , arg3 , arg4 , arg5 , arg6 ); |
| 4988 | Py_INCREF(Py_None); |
| 4989 | return Py_None; |
| 4990 | } |
| 4991 | |
| 4992 | /* void lookat float s float s float s float s float s float s short s */ |
| 4993 | |
| 4994 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 4995 | gl_lookat(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 4996 | { |
| 4997 | float arg1 ; |
| 4998 | float arg2 ; |
| 4999 | float arg3 ; |
| 5000 | float arg4 ; |
| 5001 | float arg5 ; |
| 5002 | float arg6 ; |
| 5003 | short arg7 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5004 | if (!getifloatarg(args, 7, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5005 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5006 | if (!getifloatarg(args, 7, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5007 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5008 | if (!getifloatarg(args, 7, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5009 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5010 | if (!getifloatarg(args, 7, 3, &arg4)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5011 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5012 | if (!getifloatarg(args, 7, 4, &arg5)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5013 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5014 | if (!getifloatarg(args, 7, 5, &arg6)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5015 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5016 | if (!getishortarg(args, 7, 6, &arg7)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5017 | return NULL; |
| 5018 | lookat( arg1 , arg2 , arg3 , arg4 , arg5 , arg6 , arg7 ); |
| 5019 | Py_INCREF(Py_None); |
| 5020 | return Py_None; |
| 5021 | } |
| 5022 | |
| 5023 | /* void perspective short s float s float s float s */ |
| 5024 | |
| 5025 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5026 | gl_perspective(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5027 | { |
| 5028 | short arg1 ; |
| 5029 | float arg2 ; |
| 5030 | float arg3 ; |
| 5031 | float arg4 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5032 | if (!getishortarg(args, 4, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5033 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5034 | if (!getifloatarg(args, 4, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5035 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5036 | if (!getifloatarg(args, 4, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5037 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5038 | if (!getifloatarg(args, 4, 3, &arg4)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5039 | return NULL; |
| 5040 | perspective( arg1 , arg2 , arg3 , arg4 ); |
| 5041 | Py_INCREF(Py_None); |
| 5042 | return Py_None; |
| 5043 | } |
| 5044 | |
| 5045 | /* void polarview float s short s short s short s */ |
| 5046 | |
| 5047 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5048 | gl_polarview(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5049 | { |
| 5050 | float arg1 ; |
| 5051 | short arg2 ; |
| 5052 | short arg3 ; |
| 5053 | short arg4 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5054 | if (!getifloatarg(args, 4, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5055 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5056 | if (!getishortarg(args, 4, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5057 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5058 | if (!getishortarg(args, 4, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5059 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5060 | if (!getishortarg(args, 4, 3, &arg4)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5061 | return NULL; |
| 5062 | polarview( arg1 , arg2 , arg3 , arg4 ); |
| 5063 | Py_INCREF(Py_None); |
| 5064 | return Py_None; |
| 5065 | } |
| 5066 | |
| 5067 | /* void arcfs short s short s short s short s short s */ |
| 5068 | |
| 5069 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5070 | gl_arcfs(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5071 | { |
| 5072 | short arg1 ; |
| 5073 | short arg2 ; |
| 5074 | short arg3 ; |
| 5075 | short arg4 ; |
| 5076 | short arg5 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5077 | if (!getishortarg(args, 5, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5078 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5079 | if (!getishortarg(args, 5, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5080 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5081 | if (!getishortarg(args, 5, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5082 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5083 | if (!getishortarg(args, 5, 3, &arg4)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5084 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5085 | if (!getishortarg(args, 5, 4, &arg5)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5086 | return NULL; |
| 5087 | arcfs( arg1 , arg2 , arg3 , arg4 , arg5 ); |
| 5088 | Py_INCREF(Py_None); |
| 5089 | return Py_None; |
| 5090 | } |
| 5091 | |
| 5092 | /* void arcs short s short s short s short s short s */ |
| 5093 | |
| 5094 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5095 | gl_arcs(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5096 | { |
| 5097 | short arg1 ; |
| 5098 | short arg2 ; |
| 5099 | short arg3 ; |
| 5100 | short arg4 ; |
| 5101 | short arg5 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5102 | if (!getishortarg(args, 5, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5103 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5104 | if (!getishortarg(args, 5, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5105 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5106 | if (!getishortarg(args, 5, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5107 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5108 | if (!getishortarg(args, 5, 3, &arg4)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5109 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5110 | if (!getishortarg(args, 5, 4, &arg5)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5111 | return NULL; |
| 5112 | arcs( arg1 , arg2 , arg3 , arg4 , arg5 ); |
| 5113 | Py_INCREF(Py_None); |
| 5114 | return Py_None; |
| 5115 | } |
| 5116 | |
| 5117 | /* void rectcopy short s short s short s short s short s short s */ |
| 5118 | |
| 5119 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5120 | gl_rectcopy(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5121 | { |
| 5122 | short arg1 ; |
| 5123 | short arg2 ; |
| 5124 | short arg3 ; |
| 5125 | short arg4 ; |
| 5126 | short arg5 ; |
| 5127 | short arg6 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5128 | if (!getishortarg(args, 6, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5129 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5130 | if (!getishortarg(args, 6, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5131 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5132 | if (!getishortarg(args, 6, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5133 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5134 | if (!getishortarg(args, 6, 3, &arg4)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5135 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5136 | if (!getishortarg(args, 6, 4, &arg5)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5137 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5138 | if (!getishortarg(args, 6, 5, &arg6)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5139 | return NULL; |
| 5140 | rectcopy( arg1 , arg2 , arg3 , arg4 , arg5 , arg6 ); |
| 5141 | Py_INCREF(Py_None); |
| 5142 | return Py_None; |
| 5143 | } |
| 5144 | |
| 5145 | /* void RGBcursor short s short s short s short s short s short s short s */ |
| 5146 | |
| 5147 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5148 | gl_RGBcursor(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5149 | { |
| 5150 | short arg1 ; |
| 5151 | short arg2 ; |
| 5152 | short arg3 ; |
| 5153 | short arg4 ; |
| 5154 | short arg5 ; |
| 5155 | short arg6 ; |
| 5156 | short arg7 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5157 | if (!getishortarg(args, 7, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5158 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5159 | if (!getishortarg(args, 7, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5160 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5161 | if (!getishortarg(args, 7, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5162 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5163 | if (!getishortarg(args, 7, 3, &arg4)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5164 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5165 | if (!getishortarg(args, 7, 4, &arg5)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5166 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5167 | if (!getishortarg(args, 7, 5, &arg6)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5168 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5169 | if (!getishortarg(args, 7, 6, &arg7)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5170 | return NULL; |
| 5171 | RGBcursor( arg1 , arg2 , arg3 , arg4 , arg5 , arg6 , arg7 ); |
| 5172 | Py_INCREF(Py_None); |
| 5173 | return Py_None; |
| 5174 | } |
| 5175 | |
| 5176 | /* long getbutton short s */ |
| 5177 | |
| 5178 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5179 | gl_getbutton(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5180 | { |
| 5181 | long retval; |
| 5182 | short arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5183 | if (!getishortarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5184 | return NULL; |
| 5185 | retval = getbutton( arg1 ); |
| 5186 | return mknewlongobject(retval); |
| 5187 | } |
| 5188 | |
| 5189 | /* long getcmmode */ |
| 5190 | |
| 5191 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5192 | gl_getcmmode(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5193 | { |
| 5194 | long retval; |
| 5195 | retval = getcmmode( ); |
| 5196 | return mknewlongobject(retval); |
| 5197 | } |
| 5198 | |
| 5199 | /* long getlsbackup */ |
| 5200 | |
| 5201 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5202 | gl_getlsbackup(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5203 | { |
| 5204 | long retval; |
| 5205 | retval = getlsbackup( ); |
| 5206 | return mknewlongobject(retval); |
| 5207 | } |
| 5208 | |
| 5209 | /* long getresetls */ |
| 5210 | |
| 5211 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5212 | gl_getresetls(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5213 | { |
| 5214 | long retval; |
| 5215 | retval = getresetls( ); |
| 5216 | return mknewlongobject(retval); |
| 5217 | } |
| 5218 | |
| 5219 | /* long getdcm */ |
| 5220 | |
| 5221 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5222 | gl_getdcm(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5223 | { |
| 5224 | long retval; |
| 5225 | retval = getdcm( ); |
| 5226 | return mknewlongobject(retval); |
| 5227 | } |
| 5228 | |
| 5229 | /* long getzbuffer */ |
| 5230 | |
| 5231 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5232 | gl_getzbuffer(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5233 | { |
| 5234 | long retval; |
| 5235 | retval = getzbuffer( ); |
| 5236 | return mknewlongobject(retval); |
| 5237 | } |
| 5238 | |
| 5239 | /* long ismex */ |
| 5240 | |
| 5241 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5242 | gl_ismex(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5243 | { |
| 5244 | long retval; |
| 5245 | retval = ismex( ); |
| 5246 | return mknewlongobject(retval); |
| 5247 | } |
| 5248 | |
| 5249 | /* long isobj long s */ |
| 5250 | |
| 5251 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5252 | gl_isobj(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5253 | { |
| 5254 | long retval; |
| 5255 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5256 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5257 | return NULL; |
| 5258 | retval = isobj( arg1 ); |
| 5259 | return mknewlongobject(retval); |
| 5260 | } |
| 5261 | |
| 5262 | /* long isqueued short s */ |
| 5263 | |
| 5264 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5265 | gl_isqueued(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5266 | { |
| 5267 | long retval; |
| 5268 | short arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5269 | if (!getishortarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5270 | return NULL; |
| 5271 | retval = isqueued( arg1 ); |
| 5272 | return mknewlongobject(retval); |
| 5273 | } |
| 5274 | |
| 5275 | /* long istag long s */ |
| 5276 | |
| 5277 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5278 | gl_istag(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5279 | { |
| 5280 | long retval; |
| 5281 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5282 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5283 | return NULL; |
| 5284 | retval = istag( arg1 ); |
| 5285 | return mknewlongobject(retval); |
| 5286 | } |
| 5287 | |
| 5288 | /* long genobj */ |
| 5289 | |
| 5290 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5291 | gl_genobj(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5292 | { |
| 5293 | long retval; |
| 5294 | retval = genobj( ); |
| 5295 | return mknewlongobject(retval); |
| 5296 | } |
| 5297 | |
| 5298 | /* long gentag */ |
| 5299 | |
| 5300 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5301 | gl_gentag(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5302 | { |
| 5303 | long retval; |
| 5304 | retval = gentag( ); |
| 5305 | return mknewlongobject(retval); |
| 5306 | } |
| 5307 | |
| 5308 | /* long getbuffer */ |
| 5309 | |
| 5310 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5311 | gl_getbuffer(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5312 | { |
| 5313 | long retval; |
| 5314 | retval = getbuffer( ); |
| 5315 | return mknewlongobject(retval); |
| 5316 | } |
| 5317 | |
| 5318 | /* long getcolor */ |
| 5319 | |
| 5320 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5321 | gl_getcolor(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5322 | { |
| 5323 | long retval; |
| 5324 | retval = getcolor( ); |
| 5325 | return mknewlongobject(retval); |
| 5326 | } |
| 5327 | |
| 5328 | /* long getdisplaymode */ |
| 5329 | |
| 5330 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5331 | gl_getdisplaymode(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5332 | { |
| 5333 | long retval; |
| 5334 | retval = getdisplaymode( ); |
| 5335 | return mknewlongobject(retval); |
| 5336 | } |
| 5337 | |
| 5338 | /* long getfont */ |
| 5339 | |
| 5340 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5341 | gl_getfont(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5342 | { |
| 5343 | long retval; |
| 5344 | retval = getfont( ); |
| 5345 | return mknewlongobject(retval); |
| 5346 | } |
| 5347 | |
| 5348 | /* long getheight */ |
| 5349 | |
| 5350 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5351 | gl_getheight(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5352 | { |
| 5353 | long retval; |
| 5354 | retval = getheight( ); |
| 5355 | return mknewlongobject(retval); |
| 5356 | } |
| 5357 | |
| 5358 | /* long gethitcode */ |
| 5359 | |
| 5360 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5361 | gl_gethitcode(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5362 | { |
| 5363 | long retval; |
| 5364 | retval = gethitcode( ); |
| 5365 | return mknewlongobject(retval); |
| 5366 | } |
| 5367 | |
| 5368 | /* long getlstyle */ |
| 5369 | |
| 5370 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5371 | gl_getlstyle(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5372 | { |
| 5373 | long retval; |
| 5374 | retval = getlstyle( ); |
| 5375 | return mknewlongobject(retval); |
| 5376 | } |
| 5377 | |
| 5378 | /* long getlwidth */ |
| 5379 | |
| 5380 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5381 | gl_getlwidth(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5382 | { |
| 5383 | long retval; |
| 5384 | retval = getlwidth( ); |
| 5385 | return mknewlongobject(retval); |
| 5386 | } |
| 5387 | |
| 5388 | /* long getmap */ |
| 5389 | |
| 5390 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5391 | gl_getmap(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5392 | { |
| 5393 | long retval; |
| 5394 | retval = getmap( ); |
| 5395 | return mknewlongobject(retval); |
| 5396 | } |
| 5397 | |
| 5398 | /* long getplanes */ |
| 5399 | |
| 5400 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5401 | gl_getplanes(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5402 | { |
| 5403 | long retval; |
| 5404 | retval = getplanes( ); |
| 5405 | return mknewlongobject(retval); |
| 5406 | } |
| 5407 | |
| 5408 | /* long getwritemask */ |
| 5409 | |
| 5410 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5411 | gl_getwritemask(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5412 | { |
| 5413 | long retval; |
| 5414 | retval = getwritemask( ); |
| 5415 | return mknewlongobject(retval); |
| 5416 | } |
| 5417 | |
| 5418 | /* long qtest */ |
| 5419 | |
| 5420 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5421 | gl_qtest(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5422 | { |
| 5423 | long retval; |
| 5424 | retval = qtest( ); |
| 5425 | return mknewlongobject(retval); |
| 5426 | } |
| 5427 | |
| 5428 | /* long getlsrepeat */ |
| 5429 | |
| 5430 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5431 | gl_getlsrepeat(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5432 | { |
| 5433 | long retval; |
| 5434 | retval = getlsrepeat( ); |
| 5435 | return mknewlongobject(retval); |
| 5436 | } |
| 5437 | |
| 5438 | /* long getmonitor */ |
| 5439 | |
| 5440 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5441 | gl_getmonitor(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5442 | { |
| 5443 | long retval; |
| 5444 | retval = getmonitor( ); |
| 5445 | return mknewlongobject(retval); |
| 5446 | } |
| 5447 | |
| 5448 | /* long getopenobj */ |
| 5449 | |
| 5450 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5451 | gl_getopenobj(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5452 | { |
| 5453 | long retval; |
| 5454 | retval = getopenobj( ); |
| 5455 | return mknewlongobject(retval); |
| 5456 | } |
| 5457 | |
| 5458 | /* long getpattern */ |
| 5459 | |
| 5460 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5461 | gl_getpattern(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5462 | { |
| 5463 | long retval; |
| 5464 | retval = getpattern( ); |
| 5465 | return mknewlongobject(retval); |
| 5466 | } |
| 5467 | |
| 5468 | /* long winget */ |
| 5469 | |
| 5470 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5471 | gl_winget(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5472 | { |
| 5473 | long retval; |
| 5474 | retval = winget( ); |
| 5475 | return mknewlongobject(retval); |
| 5476 | } |
| 5477 | |
| 5478 | /* long winattach */ |
| 5479 | |
| 5480 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5481 | gl_winattach(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5482 | { |
| 5483 | long retval; |
| 5484 | retval = winattach( ); |
| 5485 | return mknewlongobject(retval); |
| 5486 | } |
| 5487 | |
| 5488 | /* long getothermonitor */ |
| 5489 | |
| 5490 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5491 | gl_getothermonitor(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5492 | { |
| 5493 | long retval; |
| 5494 | retval = getothermonitor( ); |
| 5495 | return mknewlongobject(retval); |
| 5496 | } |
| 5497 | |
| 5498 | /* long newpup */ |
| 5499 | |
| 5500 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5501 | gl_newpup(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5502 | { |
| 5503 | long retval; |
| 5504 | retval = newpup( ); |
| 5505 | return mknewlongobject(retval); |
| 5506 | } |
| 5507 | |
| 5508 | /* long getvaluator short s */ |
| 5509 | |
| 5510 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5511 | gl_getvaluator(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5512 | { |
| 5513 | long retval; |
| 5514 | short arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5515 | if (!getishortarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5516 | return NULL; |
| 5517 | retval = getvaluator( arg1 ); |
| 5518 | return mknewlongobject(retval); |
| 5519 | } |
| 5520 | |
| 5521 | /* void winset long s */ |
| 5522 | |
| 5523 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5524 | gl_winset(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5525 | { |
| 5526 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5527 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5528 | return NULL; |
| 5529 | winset( arg1 ); |
| 5530 | Py_INCREF(Py_None); |
| 5531 | return Py_None; |
| 5532 | } |
| 5533 | |
| 5534 | /* long dopup long s */ |
| 5535 | |
| 5536 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5537 | gl_dopup(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5538 | { |
| 5539 | long retval; |
| 5540 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5541 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5542 | return NULL; |
| 5543 | retval = dopup( arg1 ); |
| 5544 | return mknewlongobject(retval); |
| 5545 | } |
| 5546 | |
| 5547 | /* void getdepth short r short r */ |
| 5548 | |
| 5549 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5550 | gl_getdepth(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5551 | { |
| 5552 | short arg1 ; |
| 5553 | short arg2 ; |
| 5554 | getdepth( & arg1 , & arg2 ); |
| 5555 | { PyObject *v = PyTuple_New( 2 ); |
| 5556 | if (v == NULL) return NULL; |
| 5557 | PyTuple_SetItem(v, 0, mknewshortobject(arg1)); |
| 5558 | PyTuple_SetItem(v, 1, mknewshortobject(arg2)); |
| 5559 | return v; |
| 5560 | } |
| 5561 | } |
| 5562 | |
| 5563 | /* void getcpos short r short r */ |
| 5564 | |
| 5565 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5566 | gl_getcpos(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5567 | { |
| 5568 | short arg1 ; |
| 5569 | short arg2 ; |
| 5570 | getcpos( & arg1 , & arg2 ); |
| 5571 | { PyObject *v = PyTuple_New( 2 ); |
| 5572 | if (v == NULL) return NULL; |
| 5573 | PyTuple_SetItem(v, 0, mknewshortobject(arg1)); |
| 5574 | PyTuple_SetItem(v, 1, mknewshortobject(arg2)); |
| 5575 | return v; |
| 5576 | } |
| 5577 | } |
| 5578 | |
| 5579 | /* void getsize long r long r */ |
| 5580 | |
| 5581 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5582 | gl_getsize(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5583 | { |
| 5584 | long arg1 ; |
| 5585 | long arg2 ; |
| 5586 | getsize( & arg1 , & arg2 ); |
| 5587 | { PyObject *v = PyTuple_New( 2 ); |
| 5588 | if (v == NULL) return NULL; |
| 5589 | PyTuple_SetItem(v, 0, mknewlongobject(arg1)); |
| 5590 | PyTuple_SetItem(v, 1, mknewlongobject(arg2)); |
| 5591 | return v; |
| 5592 | } |
| 5593 | } |
| 5594 | |
| 5595 | /* void getorigin long r long r */ |
| 5596 | |
| 5597 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5598 | gl_getorigin(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5599 | { |
| 5600 | long arg1 ; |
| 5601 | long arg2 ; |
| 5602 | getorigin( & arg1 , & arg2 ); |
| 5603 | { PyObject *v = PyTuple_New( 2 ); |
| 5604 | if (v == NULL) return NULL; |
| 5605 | PyTuple_SetItem(v, 0, mknewlongobject(arg1)); |
| 5606 | PyTuple_SetItem(v, 1, mknewlongobject(arg2)); |
| 5607 | return v; |
| 5608 | } |
| 5609 | } |
| 5610 | |
| 5611 | /* void getviewport short r short r short r short r */ |
| 5612 | |
| 5613 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5614 | gl_getviewport(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5615 | { |
| 5616 | short arg1 ; |
| 5617 | short arg2 ; |
| 5618 | short arg3 ; |
| 5619 | short arg4 ; |
| 5620 | getviewport( & arg1 , & arg2 , & arg3 , & arg4 ); |
| 5621 | { PyObject *v = PyTuple_New( 4 ); |
| 5622 | if (v == NULL) return NULL; |
| 5623 | PyTuple_SetItem(v, 0, mknewshortobject(arg1)); |
| 5624 | PyTuple_SetItem(v, 1, mknewshortobject(arg2)); |
| 5625 | PyTuple_SetItem(v, 2, mknewshortobject(arg3)); |
| 5626 | PyTuple_SetItem(v, 3, mknewshortobject(arg4)); |
| 5627 | return v; |
| 5628 | } |
| 5629 | } |
| 5630 | |
| 5631 | /* void gettp short r short r short r short r */ |
| 5632 | |
| 5633 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5634 | gl_gettp(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5635 | { |
| 5636 | short arg1 ; |
| 5637 | short arg2 ; |
| 5638 | short arg3 ; |
| 5639 | short arg4 ; |
| 5640 | gettp( & arg1 , & arg2 , & arg3 , & arg4 ); |
| 5641 | { PyObject *v = PyTuple_New( 4 ); |
| 5642 | if (v == NULL) return NULL; |
| 5643 | PyTuple_SetItem(v, 0, mknewshortobject(arg1)); |
| 5644 | PyTuple_SetItem(v, 1, mknewshortobject(arg2)); |
| 5645 | PyTuple_SetItem(v, 2, mknewshortobject(arg3)); |
| 5646 | PyTuple_SetItem(v, 3, mknewshortobject(arg4)); |
| 5647 | return v; |
| 5648 | } |
| 5649 | } |
| 5650 | |
| 5651 | /* void getgpos float r float r float r float r */ |
| 5652 | |
| 5653 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5654 | gl_getgpos(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5655 | { |
| 5656 | float arg1 ; |
| 5657 | float arg2 ; |
| 5658 | float arg3 ; |
| 5659 | float arg4 ; |
| 5660 | getgpos( & arg1 , & arg2 , & arg3 , & arg4 ); |
| 5661 | { PyObject *v = PyTuple_New( 4 ); |
| 5662 | if (v == NULL) return NULL; |
| 5663 | PyTuple_SetItem(v, 0, mknewfloatobject(arg1)); |
| 5664 | PyTuple_SetItem(v, 1, mknewfloatobject(arg2)); |
| 5665 | PyTuple_SetItem(v, 2, mknewfloatobject(arg3)); |
| 5666 | PyTuple_SetItem(v, 3, mknewfloatobject(arg4)); |
| 5667 | return v; |
| 5668 | } |
| 5669 | } |
| 5670 | |
| 5671 | /* void winposition long s long s long s long s */ |
| 5672 | |
| 5673 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5674 | gl_winposition(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5675 | { |
| 5676 | long arg1 ; |
| 5677 | long arg2 ; |
| 5678 | long arg3 ; |
| 5679 | long arg4 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5680 | if (!getilongarg(args, 4, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5681 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5682 | if (!getilongarg(args, 4, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5683 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5684 | if (!getilongarg(args, 4, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5685 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5686 | if (!getilongarg(args, 4, 3, &arg4)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5687 | return NULL; |
| 5688 | winposition( arg1 , arg2 , arg3 , arg4 ); |
| 5689 | Py_INCREF(Py_None); |
| 5690 | return Py_None; |
| 5691 | } |
| 5692 | |
| 5693 | /* void gRGBcolor short r short r short r */ |
| 5694 | |
| 5695 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5696 | gl_gRGBcolor(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5697 | { |
| 5698 | short arg1 ; |
| 5699 | short arg2 ; |
| 5700 | short arg3 ; |
| 5701 | gRGBcolor( & arg1 , & arg2 , & arg3 ); |
| 5702 | { PyObject *v = PyTuple_New( 3 ); |
| 5703 | if (v == NULL) return NULL; |
| 5704 | PyTuple_SetItem(v, 0, mknewshortobject(arg1)); |
| 5705 | PyTuple_SetItem(v, 1, mknewshortobject(arg2)); |
| 5706 | PyTuple_SetItem(v, 2, mknewshortobject(arg3)); |
| 5707 | return v; |
| 5708 | } |
| 5709 | } |
| 5710 | |
| 5711 | /* void gRGBmask short r short r short r */ |
| 5712 | |
| 5713 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5714 | gl_gRGBmask(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5715 | { |
| 5716 | short arg1 ; |
| 5717 | short arg2 ; |
| 5718 | short arg3 ; |
| 5719 | gRGBmask( & arg1 , & arg2 , & arg3 ); |
| 5720 | { PyObject *v = PyTuple_New( 3 ); |
| 5721 | if (v == NULL) return NULL; |
| 5722 | PyTuple_SetItem(v, 0, mknewshortobject(arg1)); |
| 5723 | PyTuple_SetItem(v, 1, mknewshortobject(arg2)); |
| 5724 | PyTuple_SetItem(v, 2, mknewshortobject(arg3)); |
| 5725 | return v; |
| 5726 | } |
| 5727 | } |
| 5728 | |
| 5729 | /* void getscrmask short r short r short r short r */ |
| 5730 | |
| 5731 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5732 | gl_getscrmask(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5733 | { |
| 5734 | short arg1 ; |
| 5735 | short arg2 ; |
| 5736 | short arg3 ; |
| 5737 | short arg4 ; |
| 5738 | getscrmask( & arg1 , & arg2 , & arg3 , & arg4 ); |
| 5739 | { PyObject *v = PyTuple_New( 4 ); |
| 5740 | if (v == NULL) return NULL; |
| 5741 | PyTuple_SetItem(v, 0, mknewshortobject(arg1)); |
| 5742 | PyTuple_SetItem(v, 1, mknewshortobject(arg2)); |
| 5743 | PyTuple_SetItem(v, 2, mknewshortobject(arg3)); |
| 5744 | PyTuple_SetItem(v, 3, mknewshortobject(arg4)); |
| 5745 | return v; |
| 5746 | } |
| 5747 | } |
| 5748 | |
| 5749 | /* void getmcolor short s short r short r short r */ |
| 5750 | |
| 5751 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5752 | gl_getmcolor(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5753 | { |
| 5754 | short arg1 ; |
| 5755 | short arg2 ; |
| 5756 | short arg3 ; |
| 5757 | short arg4 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5758 | if (!getishortarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5759 | return NULL; |
| 5760 | getmcolor( arg1 , & arg2 , & arg3 , & arg4 ); |
| 5761 | { PyObject *v = PyTuple_New( 3 ); |
| 5762 | if (v == NULL) return NULL; |
| 5763 | PyTuple_SetItem(v, 0, mknewshortobject(arg2)); |
| 5764 | PyTuple_SetItem(v, 1, mknewshortobject(arg3)); |
| 5765 | PyTuple_SetItem(v, 2, mknewshortobject(arg4)); |
| 5766 | return v; |
| 5767 | } |
| 5768 | } |
| 5769 | |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5770 | /* void mapw long s short s short s float r float r float r float r float r float r */ |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5771 | |
| 5772 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5773 | gl_mapw(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5774 | { |
| 5775 | long arg1 ; |
| 5776 | short arg2 ; |
| 5777 | short arg3 ; |
| 5778 | float arg4 ; |
| 5779 | float arg5 ; |
| 5780 | float arg6 ; |
| 5781 | float arg7 ; |
| 5782 | float arg8 ; |
| 5783 | float arg9 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5784 | if (!getilongarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5785 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5786 | if (!getishortarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5787 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5788 | if (!getishortarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5789 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5790 | mapw( arg1 , arg2 , arg3 , & arg4 , & arg5 , & arg6 , & arg7 , & arg8 , & arg9 ); |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5791 | { PyObject *v = PyTuple_New( 6 ); |
| 5792 | if (v == NULL) return NULL; |
| 5793 | PyTuple_SetItem(v, 0, mknewfloatobject(arg4)); |
| 5794 | PyTuple_SetItem(v, 1, mknewfloatobject(arg5)); |
| 5795 | PyTuple_SetItem(v, 2, mknewfloatobject(arg6)); |
| 5796 | PyTuple_SetItem(v, 3, mknewfloatobject(arg7)); |
| 5797 | PyTuple_SetItem(v, 4, mknewfloatobject(arg8)); |
| 5798 | PyTuple_SetItem(v, 5, mknewfloatobject(arg9)); |
| 5799 | return v; |
| 5800 | } |
| 5801 | } |
| 5802 | |
| 5803 | /* void mapw2 long s short s short s float r float r */ |
| 5804 | |
| 5805 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5806 | gl_mapw2(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5807 | { |
| 5808 | long arg1 ; |
| 5809 | short arg2 ; |
| 5810 | short arg3 ; |
| 5811 | float arg4 ; |
| 5812 | float arg5 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5813 | if (!getilongarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5814 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5815 | if (!getishortarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5816 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5817 | if (!getishortarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5818 | return NULL; |
| 5819 | mapw2( arg1 , arg2 , arg3 , & arg4 , & arg5 ); |
| 5820 | { PyObject *v = PyTuple_New( 2 ); |
| 5821 | if (v == NULL) return NULL; |
| 5822 | PyTuple_SetItem(v, 0, mknewfloatobject(arg4)); |
| 5823 | PyTuple_SetItem(v, 1, mknewfloatobject(arg5)); |
| 5824 | return v; |
| 5825 | } |
| 5826 | } |
| 5827 | |
| 5828 | /* void getcursor short r u_short r u_short r long r */ |
| 5829 | |
| 5830 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5831 | gl_getcursor(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5832 | { |
| 5833 | short arg1 ; |
| 5834 | unsigned short arg2 ; |
| 5835 | unsigned short arg3 ; |
| 5836 | long arg4 ; |
| 5837 | getcursor( & arg1 , & arg2 , & arg3 , & arg4 ); |
| 5838 | { PyObject *v = PyTuple_New( 4 ); |
| 5839 | if (v == NULL) return NULL; |
| 5840 | PyTuple_SetItem(v, 0, mknewshortobject(arg1)); |
| 5841 | PyTuple_SetItem(v, 1, mknewshortobject((short) arg2)); |
| 5842 | PyTuple_SetItem(v, 2, mknewshortobject((short) arg3)); |
| 5843 | PyTuple_SetItem(v, 3, mknewlongobject(arg4)); |
| 5844 | return v; |
| 5845 | } |
| 5846 | } |
| 5847 | |
| 5848 | /* void cmode */ |
| 5849 | |
| 5850 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5851 | gl_cmode(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5852 | { |
| 5853 | cmode( ); |
| 5854 | Py_INCREF(Py_None); |
| 5855 | return Py_None; |
| 5856 | } |
| 5857 | |
| 5858 | /* void concave long s */ |
| 5859 | |
| 5860 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5861 | gl_concave(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5862 | { |
| 5863 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5864 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5865 | return NULL; |
| 5866 | concave( arg1 ); |
| 5867 | Py_INCREF(Py_None); |
| 5868 | return Py_None; |
| 5869 | } |
| 5870 | |
| 5871 | /* void curstype long s */ |
| 5872 | |
| 5873 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5874 | gl_curstype(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5875 | { |
| 5876 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5877 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5878 | return NULL; |
| 5879 | curstype( arg1 ); |
| 5880 | Py_INCREF(Py_None); |
| 5881 | return Py_None; |
| 5882 | } |
| 5883 | |
| 5884 | /* void drawmode long s */ |
| 5885 | |
| 5886 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5887 | gl_drawmode(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5888 | { |
| 5889 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5890 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5891 | return NULL; |
| 5892 | drawmode( arg1 ); |
| 5893 | Py_INCREF(Py_None); |
| 5894 | return Py_None; |
| 5895 | } |
| 5896 | |
| 5897 | /* void gammaramp short s[256] short s[256] short s[256] */ |
| 5898 | |
| 5899 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5900 | gl_gammaramp(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5901 | { |
| 5902 | short arg1 [ 256 ] ; |
| 5903 | short arg2 [ 256 ] ; |
| 5904 | short arg3 [ 256 ] ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5905 | if (!getishortarray(args, 3, 0, 256 , arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5906 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5907 | if (!getishortarray(args, 3, 1, 256 , arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5908 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5909 | if (!getishortarray(args, 3, 2, 256 , arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5910 | return NULL; |
| 5911 | gammaramp( arg1 , arg2 , arg3 ); |
| 5912 | Py_INCREF(Py_None); |
| 5913 | return Py_None; |
| 5914 | } |
| 5915 | |
| 5916 | /* long getbackface */ |
| 5917 | |
| 5918 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5919 | gl_getbackface(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5920 | { |
| 5921 | long retval; |
| 5922 | retval = getbackface( ); |
| 5923 | return mknewlongobject(retval); |
| 5924 | } |
| 5925 | |
| 5926 | /* long getdescender */ |
| 5927 | |
| 5928 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5929 | gl_getdescender(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5930 | { |
| 5931 | long retval; |
| 5932 | retval = getdescender( ); |
| 5933 | return mknewlongobject(retval); |
| 5934 | } |
| 5935 | |
| 5936 | /* long getdrawmode */ |
| 5937 | |
| 5938 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5939 | gl_getdrawmode(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5940 | { |
| 5941 | long retval; |
| 5942 | retval = getdrawmode( ); |
| 5943 | return mknewlongobject(retval); |
| 5944 | } |
| 5945 | |
| 5946 | /* long getmmode */ |
| 5947 | |
| 5948 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5949 | gl_getmmode(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5950 | { |
| 5951 | long retval; |
| 5952 | retval = getmmode( ); |
| 5953 | return mknewlongobject(retval); |
| 5954 | } |
| 5955 | |
| 5956 | /* long getsm */ |
| 5957 | |
| 5958 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5959 | gl_getsm(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5960 | { |
| 5961 | long retval; |
| 5962 | retval = getsm( ); |
| 5963 | return mknewlongobject(retval); |
| 5964 | } |
| 5965 | |
| 5966 | /* long getvideo long s */ |
| 5967 | |
| 5968 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5969 | gl_getvideo(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5970 | { |
| 5971 | long retval; |
| 5972 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5973 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5974 | return NULL; |
| 5975 | retval = getvideo( arg1 ); |
| 5976 | return mknewlongobject(retval); |
| 5977 | } |
| 5978 | |
| 5979 | /* void imakebackground */ |
| 5980 | |
| 5981 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5982 | gl_imakebackground(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5983 | { |
| 5984 | imakebackground( ); |
| 5985 | Py_INCREF(Py_None); |
| 5986 | return Py_None; |
| 5987 | } |
| 5988 | |
| 5989 | /* void lmbind short s short s */ |
| 5990 | |
| 5991 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 5992 | gl_lmbind(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5993 | { |
| 5994 | short arg1 ; |
| 5995 | short arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5996 | if (!getishortarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5997 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 5998 | if (!getishortarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 5999 | return NULL; |
| 6000 | lmbind( arg1 , arg2 ); |
| 6001 | Py_INCREF(Py_None); |
| 6002 | return Py_None; |
| 6003 | } |
| 6004 | |
| 6005 | /* void lmdef long s long s long s float s[arg3] */ |
| 6006 | |
| 6007 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6008 | gl_lmdef(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6009 | { |
| 6010 | long arg1 ; |
| 6011 | long arg2 ; |
| 6012 | long arg3 ; |
| 6013 | float * arg4 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6014 | if (!getilongarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6015 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6016 | if (!getilongarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6017 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6018 | if (!getilongarraysize(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6019 | return NULL; |
| 6020 | if ((arg4 = PyMem_NEW(float , arg3 )) == NULL) |
| 6021 | return PyErr_NoMemory(); |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6022 | if (!getifloatarray(args, 3, 2, arg3 , arg4)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6023 | return NULL; |
| 6024 | lmdef( arg1 , arg2 , arg3 , arg4 ); |
| 6025 | PyMem_DEL(arg4); |
| 6026 | Py_INCREF(Py_None); |
| 6027 | return Py_None; |
| 6028 | } |
| 6029 | |
| 6030 | /* void mmode long s */ |
| 6031 | |
| 6032 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6033 | gl_mmode(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6034 | { |
| 6035 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6036 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6037 | return NULL; |
| 6038 | mmode( arg1 ); |
| 6039 | Py_INCREF(Py_None); |
| 6040 | return Py_None; |
| 6041 | } |
| 6042 | |
| 6043 | /* void normal float s[3] */ |
| 6044 | |
| 6045 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6046 | gl_normal(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6047 | { |
| 6048 | float arg1 [ 3 ] ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6049 | if (!getifloatarray(args, 1, 0, 3 , arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6050 | return NULL; |
| 6051 | normal( arg1 ); |
| 6052 | Py_INCREF(Py_None); |
| 6053 | return Py_None; |
| 6054 | } |
| 6055 | |
| 6056 | /* void overlay long s */ |
| 6057 | |
| 6058 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6059 | gl_overlay(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6060 | { |
| 6061 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6062 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6063 | return NULL; |
| 6064 | overlay( arg1 ); |
| 6065 | Py_INCREF(Py_None); |
| 6066 | return Py_None; |
| 6067 | } |
| 6068 | |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6069 | /* void RGBrange short s short s short s short s short s short s short s short s */ |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6070 | |
| 6071 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6072 | gl_RGBrange(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6073 | { |
| 6074 | short arg1 ; |
| 6075 | short arg2 ; |
| 6076 | short arg3 ; |
| 6077 | short arg4 ; |
| 6078 | short arg5 ; |
| 6079 | short arg6 ; |
| 6080 | short arg7 ; |
| 6081 | short arg8 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6082 | if (!getishortarg(args, 8, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6083 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6084 | if (!getishortarg(args, 8, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6085 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6086 | if (!getishortarg(args, 8, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6087 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6088 | if (!getishortarg(args, 8, 3, &arg4)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6089 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6090 | if (!getishortarg(args, 8, 4, &arg5)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6091 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6092 | if (!getishortarg(args, 8, 5, &arg6)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6093 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6094 | if (!getishortarg(args, 8, 6, &arg7)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6095 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6096 | if (!getishortarg(args, 8, 7, &arg8)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6097 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6098 | RGBrange( arg1 , arg2 , arg3 , arg4 , arg5 , arg6 , arg7 , arg8 ); |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6099 | Py_INCREF(Py_None); |
| 6100 | return Py_None; |
| 6101 | } |
| 6102 | |
| 6103 | /* void setvideo long s long s */ |
| 6104 | |
| 6105 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6106 | gl_setvideo(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6107 | { |
| 6108 | long arg1 ; |
| 6109 | long arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6110 | if (!getilongarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6111 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6112 | if (!getilongarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6113 | return NULL; |
| 6114 | setvideo( arg1 , arg2 ); |
| 6115 | Py_INCREF(Py_None); |
| 6116 | return Py_None; |
| 6117 | } |
| 6118 | |
| 6119 | /* void shademodel long s */ |
| 6120 | |
| 6121 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6122 | gl_shademodel(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6123 | { |
| 6124 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6125 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6126 | return NULL; |
| 6127 | shademodel( arg1 ); |
| 6128 | Py_INCREF(Py_None); |
| 6129 | return Py_None; |
| 6130 | } |
| 6131 | |
| 6132 | /* void underlay long s */ |
| 6133 | |
| 6134 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6135 | gl_underlay(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6136 | { |
| 6137 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6138 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6139 | return NULL; |
| 6140 | underlay( arg1 ); |
| 6141 | Py_INCREF(Py_None); |
| 6142 | return Py_None; |
| 6143 | } |
| 6144 | |
| 6145 | /* void bgnclosedline */ |
| 6146 | |
| 6147 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6148 | gl_bgnclosedline(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6149 | { |
| 6150 | bgnclosedline( ); |
| 6151 | Py_INCREF(Py_None); |
| 6152 | return Py_None; |
| 6153 | } |
| 6154 | |
| 6155 | /* void bgnline */ |
| 6156 | |
| 6157 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6158 | gl_bgnline(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6159 | { |
| 6160 | bgnline( ); |
| 6161 | Py_INCREF(Py_None); |
| 6162 | return Py_None; |
| 6163 | } |
| 6164 | |
| 6165 | /* void bgnpoint */ |
| 6166 | |
| 6167 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6168 | gl_bgnpoint(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6169 | { |
| 6170 | bgnpoint( ); |
| 6171 | Py_INCREF(Py_None); |
| 6172 | return Py_None; |
| 6173 | } |
| 6174 | |
| 6175 | /* void bgnpolygon */ |
| 6176 | |
| 6177 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6178 | gl_bgnpolygon(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6179 | { |
| 6180 | bgnpolygon( ); |
| 6181 | Py_INCREF(Py_None); |
| 6182 | return Py_None; |
| 6183 | } |
| 6184 | |
| 6185 | /* void bgnsurface */ |
| 6186 | |
| 6187 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6188 | gl_bgnsurface(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6189 | { |
| 6190 | bgnsurface( ); |
| 6191 | Py_INCREF(Py_None); |
| 6192 | return Py_None; |
| 6193 | } |
| 6194 | |
| 6195 | /* void bgntmesh */ |
| 6196 | |
| 6197 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6198 | gl_bgntmesh(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6199 | { |
| 6200 | bgntmesh( ); |
| 6201 | Py_INCREF(Py_None); |
| 6202 | return Py_None; |
| 6203 | } |
| 6204 | |
| 6205 | /* void bgntrim */ |
| 6206 | |
| 6207 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6208 | gl_bgntrim(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6209 | { |
| 6210 | bgntrim( ); |
| 6211 | Py_INCREF(Py_None); |
| 6212 | return Py_None; |
| 6213 | } |
| 6214 | |
| 6215 | /* void endclosedline */ |
| 6216 | |
| 6217 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6218 | gl_endclosedline(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6219 | { |
| 6220 | endclosedline( ); |
| 6221 | Py_INCREF(Py_None); |
| 6222 | return Py_None; |
| 6223 | } |
| 6224 | |
| 6225 | /* void endline */ |
| 6226 | |
| 6227 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6228 | gl_endline(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6229 | { |
| 6230 | endline( ); |
| 6231 | Py_INCREF(Py_None); |
| 6232 | return Py_None; |
| 6233 | } |
| 6234 | |
| 6235 | /* void endpoint */ |
| 6236 | |
| 6237 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6238 | gl_endpoint(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6239 | { |
| 6240 | endpoint( ); |
| 6241 | Py_INCREF(Py_None); |
| 6242 | return Py_None; |
| 6243 | } |
| 6244 | |
| 6245 | /* void endpolygon */ |
| 6246 | |
| 6247 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6248 | gl_endpolygon(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6249 | { |
| 6250 | endpolygon( ); |
| 6251 | Py_INCREF(Py_None); |
| 6252 | return Py_None; |
| 6253 | } |
| 6254 | |
| 6255 | /* void endsurface */ |
| 6256 | |
| 6257 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6258 | gl_endsurface(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6259 | { |
| 6260 | endsurface( ); |
| 6261 | Py_INCREF(Py_None); |
| 6262 | return Py_None; |
| 6263 | } |
| 6264 | |
| 6265 | /* void endtmesh */ |
| 6266 | |
| 6267 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6268 | gl_endtmesh(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6269 | { |
| 6270 | endtmesh( ); |
| 6271 | Py_INCREF(Py_None); |
| 6272 | return Py_None; |
| 6273 | } |
| 6274 | |
| 6275 | /* void endtrim */ |
| 6276 | |
| 6277 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6278 | gl_endtrim(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6279 | { |
| 6280 | endtrim( ); |
| 6281 | Py_INCREF(Py_None); |
| 6282 | return Py_None; |
| 6283 | } |
| 6284 | |
| 6285 | /* void blendfunction long s long s */ |
| 6286 | |
| 6287 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6288 | gl_blendfunction(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6289 | { |
| 6290 | long arg1 ; |
| 6291 | long arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6292 | if (!getilongarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6293 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6294 | if (!getilongarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6295 | return NULL; |
| 6296 | blendfunction( arg1 , arg2 ); |
| 6297 | Py_INCREF(Py_None); |
| 6298 | return Py_None; |
| 6299 | } |
| 6300 | |
| 6301 | /* void c3f float s[3] */ |
| 6302 | |
| 6303 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6304 | gl_c3f(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6305 | { |
| 6306 | float arg1 [ 3 ] ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6307 | if (!getifloatarray(args, 1, 0, 3 , arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6308 | return NULL; |
| 6309 | c3f( arg1 ); |
| 6310 | Py_INCREF(Py_None); |
| 6311 | return Py_None; |
| 6312 | } |
| 6313 | |
| 6314 | /* void c3i long s[3] */ |
| 6315 | |
| 6316 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6317 | gl_c3i(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6318 | { |
| 6319 | long arg1 [ 3 ] ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6320 | if (!getilongarray(args, 1, 0, 3 , arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6321 | return NULL; |
| 6322 | c3i( arg1 ); |
| 6323 | Py_INCREF(Py_None); |
| 6324 | return Py_None; |
| 6325 | } |
| 6326 | |
| 6327 | /* void c3s short s[3] */ |
| 6328 | |
| 6329 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6330 | gl_c3s(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6331 | { |
| 6332 | short arg1 [ 3 ] ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6333 | if (!getishortarray(args, 1, 0, 3 , arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6334 | return NULL; |
| 6335 | c3s( arg1 ); |
| 6336 | Py_INCREF(Py_None); |
| 6337 | return Py_None; |
| 6338 | } |
| 6339 | |
| 6340 | /* void c4f float s[4] */ |
| 6341 | |
| 6342 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6343 | gl_c4f(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6344 | { |
| 6345 | float arg1 [ 4 ] ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6346 | if (!getifloatarray(args, 1, 0, 4 , arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6347 | return NULL; |
| 6348 | c4f( arg1 ); |
| 6349 | Py_INCREF(Py_None); |
| 6350 | return Py_None; |
| 6351 | } |
| 6352 | |
| 6353 | /* void c4i long s[4] */ |
| 6354 | |
| 6355 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6356 | gl_c4i(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6357 | { |
| 6358 | long arg1 [ 4 ] ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6359 | if (!getilongarray(args, 1, 0, 4 , arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6360 | return NULL; |
| 6361 | c4i( arg1 ); |
| 6362 | Py_INCREF(Py_None); |
| 6363 | return Py_None; |
| 6364 | } |
| 6365 | |
| 6366 | /* void c4s short s[4] */ |
| 6367 | |
| 6368 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6369 | gl_c4s(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6370 | { |
| 6371 | short arg1 [ 4 ] ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6372 | if (!getishortarray(args, 1, 0, 4 , arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6373 | return NULL; |
| 6374 | c4s( arg1 ); |
| 6375 | Py_INCREF(Py_None); |
| 6376 | return Py_None; |
| 6377 | } |
| 6378 | |
| 6379 | /* void colorf float s */ |
| 6380 | |
| 6381 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6382 | gl_colorf(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6383 | { |
| 6384 | float arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6385 | if (!getifloatarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6386 | return NULL; |
| 6387 | colorf( arg1 ); |
| 6388 | Py_INCREF(Py_None); |
| 6389 | return Py_None; |
| 6390 | } |
| 6391 | |
| 6392 | /* void cpack long s */ |
| 6393 | |
| 6394 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6395 | gl_cpack(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6396 | { |
| 6397 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6398 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6399 | return NULL; |
| 6400 | cpack( arg1 ); |
| 6401 | Py_INCREF(Py_None); |
| 6402 | return Py_None; |
| 6403 | } |
| 6404 | |
| 6405 | /* void czclear long s long s */ |
| 6406 | |
| 6407 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6408 | gl_czclear(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6409 | { |
| 6410 | long arg1 ; |
| 6411 | long arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6412 | if (!getilongarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6413 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6414 | if (!getilongarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6415 | return NULL; |
| 6416 | czclear( arg1 , arg2 ); |
| 6417 | Py_INCREF(Py_None); |
| 6418 | return Py_None; |
| 6419 | } |
| 6420 | |
| 6421 | /* void dglclose long s */ |
| 6422 | |
| 6423 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6424 | gl_dglclose(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6425 | { |
| 6426 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6427 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6428 | return NULL; |
| 6429 | dglclose( arg1 ); |
| 6430 | Py_INCREF(Py_None); |
| 6431 | return Py_None; |
| 6432 | } |
| 6433 | |
| 6434 | /* long dglopen char *s long s */ |
| 6435 | |
| 6436 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6437 | gl_dglopen(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6438 | { |
| 6439 | long retval; |
| 6440 | string arg1 ; |
| 6441 | long arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6442 | if (!getistringarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6443 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6444 | if (!getilongarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6445 | return NULL; |
| 6446 | retval = dglopen( arg1 , arg2 ); |
| 6447 | return mknewlongobject(retval); |
| 6448 | } |
| 6449 | |
| 6450 | /* long getgdesc long s */ |
| 6451 | |
| 6452 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6453 | gl_getgdesc(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6454 | { |
| 6455 | long retval; |
| 6456 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6457 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6458 | return NULL; |
| 6459 | retval = getgdesc( arg1 ); |
| 6460 | return mknewlongobject(retval); |
| 6461 | } |
| 6462 | |
| 6463 | /* void getnurbsproperty long s float r */ |
| 6464 | |
| 6465 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6466 | gl_getnurbsproperty(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6467 | { |
| 6468 | long arg1 ; |
| 6469 | float arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6470 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6471 | return NULL; |
| 6472 | getnurbsproperty( arg1 , & arg2 ); |
| 6473 | return mknewfloatobject(arg2); |
| 6474 | } |
| 6475 | |
| 6476 | /* void glcompat long s long s */ |
| 6477 | |
| 6478 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6479 | gl_glcompat(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6480 | { |
| 6481 | long arg1 ; |
| 6482 | long arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6483 | if (!getilongarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6484 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6485 | if (!getilongarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6486 | return NULL; |
| 6487 | glcompat( arg1 , arg2 ); |
| 6488 | Py_INCREF(Py_None); |
| 6489 | return Py_None; |
| 6490 | } |
| 6491 | |
| 6492 | /* void iconsize long s long s */ |
| 6493 | |
| 6494 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6495 | gl_iconsize(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6496 | { |
| 6497 | long arg1 ; |
| 6498 | long arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6499 | if (!getilongarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6500 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6501 | if (!getilongarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6502 | return NULL; |
| 6503 | iconsize( arg1 , arg2 ); |
| 6504 | Py_INCREF(Py_None); |
| 6505 | return Py_None; |
| 6506 | } |
| 6507 | |
| 6508 | /* void icontitle char *s */ |
| 6509 | |
| 6510 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6511 | gl_icontitle(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6512 | { |
| 6513 | string arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6514 | if (!getistringarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6515 | return NULL; |
| 6516 | icontitle( arg1 ); |
| 6517 | Py_INCREF(Py_None); |
| 6518 | return Py_None; |
| 6519 | } |
| 6520 | |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6521 | /* void lRGBrange short s short s short s short s short s short s long s long s */ |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6522 | |
| 6523 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6524 | gl_lRGBrange(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6525 | { |
| 6526 | short arg1 ; |
| 6527 | short arg2 ; |
| 6528 | short arg3 ; |
| 6529 | short arg4 ; |
| 6530 | short arg5 ; |
| 6531 | short arg6 ; |
| 6532 | long arg7 ; |
| 6533 | long arg8 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6534 | if (!getishortarg(args, 8, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6535 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6536 | if (!getishortarg(args, 8, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6537 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6538 | if (!getishortarg(args, 8, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6539 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6540 | if (!getishortarg(args, 8, 3, &arg4)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6541 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6542 | if (!getishortarg(args, 8, 4, &arg5)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6543 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6544 | if (!getishortarg(args, 8, 5, &arg6)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6545 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6546 | if (!getilongarg(args, 8, 6, &arg7)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6547 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6548 | if (!getilongarg(args, 8, 7, &arg8)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6549 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6550 | lRGBrange( arg1 , arg2 , arg3 , arg4 , arg5 , arg6 , arg7 , arg8 ); |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6551 | Py_INCREF(Py_None); |
| 6552 | return Py_None; |
| 6553 | } |
| 6554 | |
| 6555 | /* void linesmooth long s */ |
| 6556 | |
| 6557 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6558 | gl_linesmooth(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6559 | { |
| 6560 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6561 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6562 | return NULL; |
| 6563 | linesmooth( arg1 ); |
| 6564 | Py_INCREF(Py_None); |
| 6565 | return Py_None; |
| 6566 | } |
| 6567 | |
| 6568 | /* void lmcolor long s */ |
| 6569 | |
| 6570 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6571 | gl_lmcolor(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6572 | { |
| 6573 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6574 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6575 | return NULL; |
| 6576 | lmcolor( arg1 ); |
| 6577 | Py_INCREF(Py_None); |
| 6578 | return Py_None; |
| 6579 | } |
| 6580 | |
| 6581 | /* void logicop long s */ |
| 6582 | |
| 6583 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6584 | gl_logicop(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6585 | { |
| 6586 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6587 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6588 | return NULL; |
| 6589 | logicop( arg1 ); |
| 6590 | Py_INCREF(Py_None); |
| 6591 | return Py_None; |
| 6592 | } |
| 6593 | |
| 6594 | /* void lsetdepth long s long s */ |
| 6595 | |
| 6596 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6597 | gl_lsetdepth(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6598 | { |
| 6599 | long arg1 ; |
| 6600 | long arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6601 | if (!getilongarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6602 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6603 | if (!getilongarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6604 | return NULL; |
| 6605 | lsetdepth( arg1 , arg2 ); |
| 6606 | Py_INCREF(Py_None); |
| 6607 | return Py_None; |
| 6608 | } |
| 6609 | |
| 6610 | /* void lshaderange short s short s long s long s */ |
| 6611 | |
| 6612 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6613 | gl_lshaderange(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6614 | { |
| 6615 | short arg1 ; |
| 6616 | short arg2 ; |
| 6617 | long arg3 ; |
| 6618 | long arg4 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6619 | if (!getishortarg(args, 4, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6620 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6621 | if (!getishortarg(args, 4, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6622 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6623 | if (!getilongarg(args, 4, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6624 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6625 | if (!getilongarg(args, 4, 3, &arg4)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6626 | return NULL; |
| 6627 | lshaderange( arg1 , arg2 , arg3 , arg4 ); |
| 6628 | Py_INCREF(Py_None); |
| 6629 | return Py_None; |
| 6630 | } |
| 6631 | |
| 6632 | /* void n3f float s[3] */ |
| 6633 | |
| 6634 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6635 | gl_n3f(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6636 | { |
| 6637 | float arg1 [ 3 ] ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6638 | if (!getifloatarray(args, 1, 0, 3 , arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6639 | return NULL; |
| 6640 | n3f( arg1 ); |
| 6641 | Py_INCREF(Py_None); |
| 6642 | return Py_None; |
| 6643 | } |
| 6644 | |
| 6645 | /* void noborder */ |
| 6646 | |
| 6647 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6648 | gl_noborder(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6649 | { |
| 6650 | noborder( ); |
| 6651 | Py_INCREF(Py_None); |
| 6652 | return Py_None; |
| 6653 | } |
| 6654 | |
| 6655 | /* void pntsmooth long s */ |
| 6656 | |
| 6657 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6658 | gl_pntsmooth(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6659 | { |
| 6660 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6661 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6662 | return NULL; |
| 6663 | pntsmooth( arg1 ); |
| 6664 | Py_INCREF(Py_None); |
| 6665 | return Py_None; |
| 6666 | } |
| 6667 | |
| 6668 | /* void readsource long s */ |
| 6669 | |
| 6670 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6671 | gl_readsource(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6672 | { |
| 6673 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6674 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6675 | return NULL; |
| 6676 | readsource( arg1 ); |
| 6677 | Py_INCREF(Py_None); |
| 6678 | return Py_None; |
| 6679 | } |
| 6680 | |
| 6681 | /* void rectzoom float s float s */ |
| 6682 | |
| 6683 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6684 | gl_rectzoom(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6685 | { |
| 6686 | float arg1 ; |
| 6687 | float arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6688 | if (!getifloatarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6689 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6690 | if (!getifloatarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6691 | return NULL; |
| 6692 | rectzoom( arg1 , arg2 ); |
| 6693 | Py_INCREF(Py_None); |
| 6694 | return Py_None; |
| 6695 | } |
| 6696 | |
| 6697 | /* void sbox float s float s float s float s */ |
| 6698 | |
| 6699 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6700 | gl_sbox(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6701 | { |
| 6702 | float arg1 ; |
| 6703 | float arg2 ; |
| 6704 | float arg3 ; |
| 6705 | float arg4 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6706 | if (!getifloatarg(args, 4, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6707 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6708 | if (!getifloatarg(args, 4, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6709 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6710 | if (!getifloatarg(args, 4, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6711 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6712 | if (!getifloatarg(args, 4, 3, &arg4)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6713 | return NULL; |
| 6714 | sbox( arg1 , arg2 , arg3 , arg4 ); |
| 6715 | Py_INCREF(Py_None); |
| 6716 | return Py_None; |
| 6717 | } |
| 6718 | |
| 6719 | /* void sboxi long s long s long s long s */ |
| 6720 | |
| 6721 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6722 | gl_sboxi(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6723 | { |
| 6724 | long arg1 ; |
| 6725 | long arg2 ; |
| 6726 | long arg3 ; |
| 6727 | long arg4 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6728 | if (!getilongarg(args, 4, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6729 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6730 | if (!getilongarg(args, 4, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6731 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6732 | if (!getilongarg(args, 4, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6733 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6734 | if (!getilongarg(args, 4, 3, &arg4)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6735 | return NULL; |
| 6736 | sboxi( arg1 , arg2 , arg3 , arg4 ); |
| 6737 | Py_INCREF(Py_None); |
| 6738 | return Py_None; |
| 6739 | } |
| 6740 | |
| 6741 | /* void sboxs short s short s short s short s */ |
| 6742 | |
| 6743 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6744 | gl_sboxs(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6745 | { |
| 6746 | short arg1 ; |
| 6747 | short arg2 ; |
| 6748 | short arg3 ; |
| 6749 | short arg4 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6750 | if (!getishortarg(args, 4, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6751 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6752 | if (!getishortarg(args, 4, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6753 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6754 | if (!getishortarg(args, 4, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6755 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6756 | if (!getishortarg(args, 4, 3, &arg4)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6757 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6758 | sboxs( arg1 , arg2 , arg3 , arg4 ); |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6759 | Py_INCREF(Py_None); |
| 6760 | return Py_None; |
| 6761 | } |
| 6762 | |
| 6763 | /* void sboxf float s float s float s float s */ |
| 6764 | |
| 6765 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6766 | gl_sboxf(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6767 | { |
| 6768 | float arg1 ; |
| 6769 | float arg2 ; |
| 6770 | float arg3 ; |
| 6771 | float arg4 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6772 | if (!getifloatarg(args, 4, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6773 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6774 | if (!getifloatarg(args, 4, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6775 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6776 | if (!getifloatarg(args, 4, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6777 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6778 | if (!getifloatarg(args, 4, 3, &arg4)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6779 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6780 | sboxf( arg1 , arg2 , arg3 , arg4 ); |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6781 | Py_INCREF(Py_None); |
| 6782 | return Py_None; |
| 6783 | } |
| 6784 | |
| 6785 | /* void sboxfi long s long s long s long s */ |
| 6786 | |
| 6787 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6788 | gl_sboxfi(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6789 | { |
| 6790 | long arg1 ; |
| 6791 | long arg2 ; |
| 6792 | long arg3 ; |
| 6793 | long arg4 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6794 | if (!getilongarg(args, 4, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6795 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6796 | if (!getilongarg(args, 4, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6797 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6798 | if (!getilongarg(args, 4, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6799 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6800 | if (!getilongarg(args, 4, 3, &arg4)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6801 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6802 | sboxfi( arg1 , arg2 , arg3 , arg4 ); |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6803 | Py_INCREF(Py_None); |
| 6804 | return Py_None; |
| 6805 | } |
| 6806 | |
| 6807 | /* void sboxfs short s short s short s short s */ |
| 6808 | |
| 6809 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6810 | gl_sboxfs(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6811 | { |
| 6812 | short arg1 ; |
| 6813 | short arg2 ; |
| 6814 | short arg3 ; |
| 6815 | short arg4 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6816 | if (!getishortarg(args, 4, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6817 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6818 | if (!getishortarg(args, 4, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6819 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6820 | if (!getishortarg(args, 4, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6821 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6822 | if (!getishortarg(args, 4, 3, &arg4)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6823 | return NULL; |
| 6824 | sboxfs( arg1 , arg2 , arg3 , arg4 ); |
| 6825 | Py_INCREF(Py_None); |
| 6826 | return Py_None; |
| 6827 | } |
| 6828 | |
| 6829 | /* void setnurbsproperty long s float s */ |
| 6830 | |
| 6831 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6832 | gl_setnurbsproperty(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6833 | { |
| 6834 | long arg1 ; |
| 6835 | float arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6836 | if (!getilongarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6837 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6838 | if (!getifloatarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6839 | return NULL; |
| 6840 | setnurbsproperty( arg1 , arg2 ); |
| 6841 | Py_INCREF(Py_None); |
| 6842 | return Py_None; |
| 6843 | } |
| 6844 | |
| 6845 | /* void setpup long s long s long s */ |
| 6846 | |
| 6847 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6848 | gl_setpup(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6849 | { |
| 6850 | long arg1 ; |
| 6851 | long arg2 ; |
| 6852 | long arg3 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6853 | if (!getilongarg(args, 3, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6854 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6855 | if (!getilongarg(args, 3, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6856 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6857 | if (!getilongarg(args, 3, 2, &arg3)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6858 | return NULL; |
| 6859 | setpup( arg1 , arg2 , arg3 ); |
| 6860 | Py_INCREF(Py_None); |
| 6861 | return Py_None; |
| 6862 | } |
| 6863 | |
| 6864 | /* void smoothline long s */ |
| 6865 | |
| 6866 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6867 | gl_smoothline(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6868 | { |
| 6869 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6870 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6871 | return NULL; |
| 6872 | smoothline( arg1 ); |
| 6873 | Py_INCREF(Py_None); |
| 6874 | return Py_None; |
| 6875 | } |
| 6876 | |
| 6877 | /* void subpixel long s */ |
| 6878 | |
| 6879 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6880 | gl_subpixel(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6881 | { |
| 6882 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6883 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6884 | return NULL; |
| 6885 | subpixel( arg1 ); |
| 6886 | Py_INCREF(Py_None); |
| 6887 | return Py_None; |
| 6888 | } |
| 6889 | |
| 6890 | /* void swaptmesh */ |
| 6891 | |
| 6892 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6893 | gl_swaptmesh(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6894 | { |
| 6895 | swaptmesh( ); |
| 6896 | Py_INCREF(Py_None); |
| 6897 | return Py_None; |
| 6898 | } |
| 6899 | |
| 6900 | /* long swinopen long s */ |
| 6901 | |
| 6902 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6903 | gl_swinopen(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6904 | { |
| 6905 | long retval; |
| 6906 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6907 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6908 | return NULL; |
| 6909 | retval = swinopen( arg1 ); |
| 6910 | return mknewlongobject(retval); |
| 6911 | } |
| 6912 | |
| 6913 | /* void v2f float s[2] */ |
| 6914 | |
| 6915 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6916 | gl_v2f(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6917 | { |
| 6918 | float arg1 [ 2 ] ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6919 | if (!getifloatarray(args, 1, 0, 2 , arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6920 | return NULL; |
| 6921 | v2f( arg1 ); |
| 6922 | Py_INCREF(Py_None); |
| 6923 | return Py_None; |
| 6924 | } |
| 6925 | |
| 6926 | /* void v2i long s[2] */ |
| 6927 | |
| 6928 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6929 | gl_v2i(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6930 | { |
| 6931 | long arg1 [ 2 ] ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6932 | if (!getilongarray(args, 1, 0, 2 , arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6933 | return NULL; |
| 6934 | v2i( arg1 ); |
| 6935 | Py_INCREF(Py_None); |
| 6936 | return Py_None; |
| 6937 | } |
| 6938 | |
| 6939 | /* void v2s short s[2] */ |
| 6940 | |
| 6941 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6942 | gl_v2s(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6943 | { |
| 6944 | short arg1 [ 2 ] ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6945 | if (!getishortarray(args, 1, 0, 2 , arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6946 | return NULL; |
| 6947 | v2s( arg1 ); |
| 6948 | Py_INCREF(Py_None); |
| 6949 | return Py_None; |
| 6950 | } |
| 6951 | |
| 6952 | /* void v3f float s[3] */ |
| 6953 | |
| 6954 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6955 | gl_v3f(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6956 | { |
| 6957 | float arg1 [ 3 ] ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6958 | if (!getifloatarray(args, 1, 0, 3 , arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6959 | return NULL; |
| 6960 | v3f( arg1 ); |
| 6961 | Py_INCREF(Py_None); |
| 6962 | return Py_None; |
| 6963 | } |
| 6964 | |
| 6965 | /* void v3i long s[3] */ |
| 6966 | |
| 6967 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6968 | gl_v3i(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6969 | { |
| 6970 | long arg1 [ 3 ] ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6971 | if (!getilongarray(args, 1, 0, 3 , arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6972 | return NULL; |
| 6973 | v3i( arg1 ); |
| 6974 | Py_INCREF(Py_None); |
| 6975 | return Py_None; |
| 6976 | } |
| 6977 | |
| 6978 | /* void v3s short s[3] */ |
| 6979 | |
| 6980 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6981 | gl_v3s(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6982 | { |
| 6983 | short arg1 [ 3 ] ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6984 | if (!getishortarray(args, 1, 0, 3 , arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6985 | return NULL; |
| 6986 | v3s( arg1 ); |
| 6987 | Py_INCREF(Py_None); |
| 6988 | return Py_None; |
| 6989 | } |
| 6990 | |
| 6991 | /* void v4f float s[4] */ |
| 6992 | |
| 6993 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 6994 | gl_v4f(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6995 | { |
| 6996 | float arg1 [ 4 ] ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 6997 | if (!getifloatarray(args, 1, 0, 4 , arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 6998 | return NULL; |
| 6999 | v4f( arg1 ); |
| 7000 | Py_INCREF(Py_None); |
| 7001 | return Py_None; |
| 7002 | } |
| 7003 | |
| 7004 | /* void v4i long s[4] */ |
| 7005 | |
| 7006 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 7007 | gl_v4i(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 7008 | { |
| 7009 | long arg1 [ 4 ] ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 7010 | if (!getilongarray(args, 1, 0, 4 , arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 7011 | return NULL; |
| 7012 | v4i( arg1 ); |
| 7013 | Py_INCREF(Py_None); |
| 7014 | return Py_None; |
| 7015 | } |
| 7016 | |
| 7017 | /* void v4s short s[4] */ |
| 7018 | |
| 7019 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 7020 | gl_v4s(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 7021 | { |
| 7022 | short arg1 [ 4 ] ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 7023 | if (!getishortarray(args, 1, 0, 4 , arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 7024 | return NULL; |
| 7025 | v4s( arg1 ); |
| 7026 | Py_INCREF(Py_None); |
| 7027 | return Py_None; |
| 7028 | } |
| 7029 | |
| 7030 | /* void videocmd long s */ |
| 7031 | |
| 7032 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 7033 | gl_videocmd(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 7034 | { |
| 7035 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 7036 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 7037 | return NULL; |
| 7038 | videocmd( arg1 ); |
| 7039 | Py_INCREF(Py_None); |
| 7040 | return Py_None; |
| 7041 | } |
| 7042 | |
| 7043 | /* long windepth long s */ |
| 7044 | |
| 7045 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 7046 | gl_windepth(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 7047 | { |
| 7048 | long retval; |
| 7049 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 7050 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 7051 | return NULL; |
| 7052 | retval = windepth( arg1 ); |
| 7053 | return mknewlongobject(retval); |
| 7054 | } |
| 7055 | |
| 7056 | /* void wmpack long s */ |
| 7057 | |
| 7058 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 7059 | gl_wmpack(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 7060 | { |
| 7061 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 7062 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 7063 | return NULL; |
| 7064 | wmpack( arg1 ); |
| 7065 | Py_INCREF(Py_None); |
| 7066 | return Py_None; |
| 7067 | } |
| 7068 | |
| 7069 | /* void zdraw long s */ |
| 7070 | |
| 7071 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 7072 | gl_zdraw(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 7073 | { |
| 7074 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 7075 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 7076 | return NULL; |
| 7077 | zdraw( arg1 ); |
| 7078 | Py_INCREF(Py_None); |
| 7079 | return Py_None; |
| 7080 | } |
| 7081 | |
| 7082 | /* void zfunction long s */ |
| 7083 | |
| 7084 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 7085 | gl_zfunction(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 7086 | { |
| 7087 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 7088 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 7089 | return NULL; |
| 7090 | zfunction( arg1 ); |
| 7091 | Py_INCREF(Py_None); |
| 7092 | return Py_None; |
| 7093 | } |
| 7094 | |
| 7095 | /* void zsource long s */ |
| 7096 | |
| 7097 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 7098 | gl_zsource(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 7099 | { |
| 7100 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 7101 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 7102 | return NULL; |
| 7103 | zsource( arg1 ); |
| 7104 | Py_INCREF(Py_None); |
| 7105 | return Py_None; |
| 7106 | } |
| 7107 | |
| 7108 | /* void zwritemask long s */ |
| 7109 | |
| 7110 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 7111 | gl_zwritemask(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 7112 | { |
| 7113 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 7114 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 7115 | return NULL; |
| 7116 | zwritemask( arg1 ); |
| 7117 | Py_INCREF(Py_None); |
| 7118 | return Py_None; |
| 7119 | } |
| 7120 | |
| 7121 | /* void v2d double s[2] */ |
| 7122 | |
| 7123 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 7124 | gl_v2d(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 7125 | { |
| 7126 | double arg1 [ 2 ] ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 7127 | if (!getidoublearray(args, 1, 0, 2 , arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 7128 | return NULL; |
| 7129 | v2d( arg1 ); |
| 7130 | Py_INCREF(Py_None); |
| 7131 | return Py_None; |
| 7132 | } |
| 7133 | |
| 7134 | /* void v3d double s[3] */ |
| 7135 | |
| 7136 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 7137 | gl_v3d(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 7138 | { |
| 7139 | double arg1 [ 3 ] ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 7140 | if (!getidoublearray(args, 1, 0, 3 , arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 7141 | return NULL; |
| 7142 | v3d( arg1 ); |
| 7143 | Py_INCREF(Py_None); |
| 7144 | return Py_None; |
| 7145 | } |
| 7146 | |
| 7147 | /* void v4d double s[4] */ |
| 7148 | |
| 7149 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 7150 | gl_v4d(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 7151 | { |
| 7152 | double arg1 [ 4 ] ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 7153 | if (!getidoublearray(args, 1, 0, 4 , arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 7154 | return NULL; |
| 7155 | v4d( arg1 ); |
| 7156 | Py_INCREF(Py_None); |
| 7157 | return Py_None; |
| 7158 | } |
| 7159 | |
| 7160 | /* void pixmode long s long s */ |
| 7161 | |
| 7162 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 7163 | gl_pixmode(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 7164 | { |
| 7165 | long arg1 ; |
| 7166 | long arg2 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 7167 | if (!getilongarg(args, 2, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 7168 | return NULL; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 7169 | if (!getilongarg(args, 2, 1, &arg2)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 7170 | return NULL; |
| 7171 | pixmode( arg1 , arg2 ); |
| 7172 | Py_INCREF(Py_None); |
| 7173 | return Py_None; |
| 7174 | } |
| 7175 | |
| 7176 | /* long qgetfd */ |
| 7177 | |
| 7178 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 7179 | gl_qgetfd(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 7180 | { |
| 7181 | long retval; |
| 7182 | retval = qgetfd( ); |
| 7183 | return mknewlongobject(retval); |
| 7184 | } |
| 7185 | |
| 7186 | /* void dither long s */ |
| 7187 | |
| 7188 | static PyObject * |
Peter Schneider-Kamp | 6a85027 | 2000-07-10 17:04:33 +0000 | [diff] [blame] | 7189 | gl_dither(PyObject *self, PyObject *args) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 7190 | { |
| 7191 | long arg1 ; |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 7192 | if (!getilongarg(args, 1, 0, &arg1)) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 7193 | return NULL; |
| 7194 | dither( arg1 ); |
| 7195 | Py_INCREF(Py_None); |
| 7196 | return Py_None; |
| 7197 | } |
| 7198 | |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 7199 | static struct PyMethodDef gl_methods[] = { |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 7200 | {"qread", gl_qread}, |
| 7201 | {"varray", gl_varray}, |
| 7202 | {"nvarray", gl_nvarray}, |
| 7203 | {"vnarray", gl_vnarray}, |
| 7204 | {"nurbssurface", gl_nurbssurface}, |
| 7205 | {"nurbscurve", gl_nurbscurve}, |
| 7206 | {"pwlcurve", gl_pwlcurve}, |
| 7207 | {"pick", gl_pick}, |
| 7208 | {"endpick", gl_endpick}, |
| 7209 | {"gselect", gl_gselect}, |
| 7210 | {"endselect", gl_endselect}, |
| 7211 | {"getmatrix", gl_getmatrix}, |
| 7212 | {"altgetmatrix", gl_altgetmatrix}, |
| 7213 | {"lrectwrite", gl_lrectwrite}, |
| 7214 | {"lrectread", gl_lrectread}, |
| 7215 | {"readdisplay", gl_readdisplay}, |
| 7216 | {"packrect", gl_packrect}, |
| 7217 | {"unpackrect", gl_unpackrect}, |
| 7218 | {"gversion", gl_gversion}, |
Guido van Rossum | 89733a8 | 1998-10-21 16:10:40 +0000 | [diff] [blame] | 7219 | {"clear", gl_clear}, |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 7220 | {"getshade", gl_getshade}, |
| 7221 | {"devport", gl_devport}, |
| 7222 | {"rdr2i", gl_rdr2i}, |
| 7223 | {"rectfs", gl_rectfs}, |
| 7224 | {"rects", gl_rects}, |
| 7225 | {"rmv2i", gl_rmv2i}, |
| 7226 | {"noport", gl_noport}, |
| 7227 | {"popviewport", gl_popviewport}, |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 7228 | {"clearhitcode", gl_clearhitcode}, |
| 7229 | {"closeobj", gl_closeobj}, |
| 7230 | {"cursoff", gl_cursoff}, |
| 7231 | {"curson", gl_curson}, |
| 7232 | {"doublebuffer", gl_doublebuffer}, |
| 7233 | {"finish", gl_finish}, |
| 7234 | {"gconfig", gl_gconfig}, |
| 7235 | {"ginit", gl_ginit}, |
| 7236 | {"greset", gl_greset}, |
| 7237 | {"multimap", gl_multimap}, |
| 7238 | {"onemap", gl_onemap}, |
| 7239 | {"popattributes", gl_popattributes}, |
| 7240 | {"popmatrix", gl_popmatrix}, |
| 7241 | {"pushattributes", gl_pushattributes}, |
| 7242 | {"pushmatrix", gl_pushmatrix}, |
| 7243 | {"pushviewport", gl_pushviewport}, |
| 7244 | {"qreset", gl_qreset}, |
| 7245 | {"RGBmode", gl_RGBmode}, |
| 7246 | {"singlebuffer", gl_singlebuffer}, |
| 7247 | {"swapbuffers", gl_swapbuffers}, |
| 7248 | {"gsync", gl_gsync}, |
| 7249 | {"gflush", gl_gflush}, |
| 7250 | {"tpon", gl_tpon}, |
| 7251 | {"tpoff", gl_tpoff}, |
| 7252 | {"clkon", gl_clkon}, |
| 7253 | {"clkoff", gl_clkoff}, |
| 7254 | {"ringbell", gl_ringbell}, |
| 7255 | {"gbegin", gl_gbegin}, |
| 7256 | {"textinit", gl_textinit}, |
| 7257 | {"initnames", gl_initnames}, |
| 7258 | {"pclos", gl_pclos}, |
| 7259 | {"popname", gl_popname}, |
| 7260 | {"spclos", gl_spclos}, |
| 7261 | {"zclear", gl_zclear}, |
| 7262 | {"screenspace", gl_screenspace}, |
| 7263 | {"reshapeviewport", gl_reshapeviewport}, |
| 7264 | {"winpush", gl_winpush}, |
| 7265 | {"winpop", gl_winpop}, |
| 7266 | {"foreground", gl_foreground}, |
| 7267 | {"endfullscrn", gl_endfullscrn}, |
| 7268 | {"endpupmode", gl_endpupmode}, |
| 7269 | {"fullscrn", gl_fullscrn}, |
| 7270 | {"pupmode", gl_pupmode}, |
| 7271 | {"winconstraints", gl_winconstraints}, |
| 7272 | {"pagecolor", gl_pagecolor}, |
| 7273 | {"textcolor", gl_textcolor}, |
| 7274 | {"color", gl_color}, |
| 7275 | {"curveit", gl_curveit}, |
| 7276 | {"font", gl_font}, |
| 7277 | {"linewidth", gl_linewidth}, |
| 7278 | {"setlinestyle", gl_setlinestyle}, |
| 7279 | {"setmap", gl_setmap}, |
| 7280 | {"swapinterval", gl_swapinterval}, |
| 7281 | {"writemask", gl_writemask}, |
| 7282 | {"textwritemask", gl_textwritemask}, |
| 7283 | {"qdevice", gl_qdevice}, |
| 7284 | {"unqdevice", gl_unqdevice}, |
| 7285 | {"curvebasis", gl_curvebasis}, |
| 7286 | {"curveprecision", gl_curveprecision}, |
| 7287 | {"loadname", gl_loadname}, |
| 7288 | {"passthrough", gl_passthrough}, |
| 7289 | {"pushname", gl_pushname}, |
| 7290 | {"setmonitor", gl_setmonitor}, |
| 7291 | {"setshade", gl_setshade}, |
| 7292 | {"setpattern", gl_setpattern}, |
| 7293 | {"pagewritemask", gl_pagewritemask}, |
| 7294 | {"callobj", gl_callobj}, |
| 7295 | {"delobj", gl_delobj}, |
| 7296 | {"editobj", gl_editobj}, |
| 7297 | {"makeobj", gl_makeobj}, |
| 7298 | {"maketag", gl_maketag}, |
| 7299 | {"chunksize", gl_chunksize}, |
| 7300 | {"compactify", gl_compactify}, |
| 7301 | {"deltag", gl_deltag}, |
| 7302 | {"lsrepeat", gl_lsrepeat}, |
| 7303 | {"objinsert", gl_objinsert}, |
| 7304 | {"objreplace", gl_objreplace}, |
| 7305 | {"winclose", gl_winclose}, |
| 7306 | {"blanktime", gl_blanktime}, |
| 7307 | {"freepup", gl_freepup}, |
| 7308 | {"backbuffer", gl_backbuffer}, |
| 7309 | {"frontbuffer", gl_frontbuffer}, |
| 7310 | {"lsbackup", gl_lsbackup}, |
| 7311 | {"resetls", gl_resetls}, |
| 7312 | {"lampon", gl_lampon}, |
| 7313 | {"lampoff", gl_lampoff}, |
| 7314 | {"setbell", gl_setbell}, |
| 7315 | {"blankscreen", gl_blankscreen}, |
| 7316 | {"depthcue", gl_depthcue}, |
| 7317 | {"zbuffer", gl_zbuffer}, |
| 7318 | {"backface", gl_backface}, |
| 7319 | {"cmov2i", gl_cmov2i}, |
| 7320 | {"draw2i", gl_draw2i}, |
| 7321 | {"move2i", gl_move2i}, |
| 7322 | {"pnt2i", gl_pnt2i}, |
| 7323 | {"patchbasis", gl_patchbasis}, |
| 7324 | {"patchprecision", gl_patchprecision}, |
| 7325 | {"pdr2i", gl_pdr2i}, |
| 7326 | {"pmv2i", gl_pmv2i}, |
| 7327 | {"rpdr2i", gl_rpdr2i}, |
| 7328 | {"rpmv2i", gl_rpmv2i}, |
| 7329 | {"xfpt2i", gl_xfpt2i}, |
| 7330 | {"objdelete", gl_objdelete}, |
| 7331 | {"patchcurves", gl_patchcurves}, |
| 7332 | {"minsize", gl_minsize}, |
| 7333 | {"maxsize", gl_maxsize}, |
| 7334 | {"keepaspect", gl_keepaspect}, |
| 7335 | {"prefsize", gl_prefsize}, |
| 7336 | {"stepunit", gl_stepunit}, |
| 7337 | {"fudge", gl_fudge}, |
| 7338 | {"winmove", gl_winmove}, |
| 7339 | {"attachcursor", gl_attachcursor}, |
| 7340 | {"deflinestyle", gl_deflinestyle}, |
| 7341 | {"noise", gl_noise}, |
| 7342 | {"picksize", gl_picksize}, |
| 7343 | {"qenter", gl_qenter}, |
| 7344 | {"setdepth", gl_setdepth}, |
| 7345 | {"cmov2s", gl_cmov2s}, |
| 7346 | {"draw2s", gl_draw2s}, |
| 7347 | {"move2s", gl_move2s}, |
| 7348 | {"pdr2s", gl_pdr2s}, |
| 7349 | {"pmv2s", gl_pmv2s}, |
| 7350 | {"pnt2s", gl_pnt2s}, |
| 7351 | {"rdr2s", gl_rdr2s}, |
| 7352 | {"rmv2s", gl_rmv2s}, |
| 7353 | {"rpdr2s", gl_rpdr2s}, |
| 7354 | {"rpmv2s", gl_rpmv2s}, |
| 7355 | {"xfpt2s", gl_xfpt2s}, |
| 7356 | {"cmov2", gl_cmov2}, |
| 7357 | {"draw2", gl_draw2}, |
| 7358 | {"move2", gl_move2}, |
| 7359 | {"pnt2", gl_pnt2}, |
| 7360 | {"pdr2", gl_pdr2}, |
| 7361 | {"pmv2", gl_pmv2}, |
| 7362 | {"rdr2", gl_rdr2}, |
| 7363 | {"rmv2", gl_rmv2}, |
| 7364 | {"rpdr2", gl_rpdr2}, |
| 7365 | {"rpmv2", gl_rpmv2}, |
| 7366 | {"xfpt2", gl_xfpt2}, |
| 7367 | {"loadmatrix", gl_loadmatrix}, |
| 7368 | {"multmatrix", gl_multmatrix}, |
| 7369 | {"crv", gl_crv}, |
| 7370 | {"rcrv", gl_rcrv}, |
| 7371 | {"addtopup", gl_addtopup}, |
| 7372 | {"charstr", gl_charstr}, |
| 7373 | {"getport", gl_getport}, |
| 7374 | {"strwidth", gl_strwidth}, |
| 7375 | {"winopen", gl_winopen}, |
| 7376 | {"wintitle", gl_wintitle}, |
| 7377 | {"polf", gl_polf}, |
| 7378 | {"polf2", gl_polf2}, |
| 7379 | {"poly", gl_poly}, |
| 7380 | {"poly2", gl_poly2}, |
| 7381 | {"crvn", gl_crvn}, |
| 7382 | {"rcrvn", gl_rcrvn}, |
| 7383 | {"polf2i", gl_polf2i}, |
| 7384 | {"polfi", gl_polfi}, |
| 7385 | {"poly2i", gl_poly2i}, |
| 7386 | {"polyi", gl_polyi}, |
| 7387 | {"polf2s", gl_polf2s}, |
| 7388 | {"polfs", gl_polfs}, |
| 7389 | {"polys", gl_polys}, |
| 7390 | {"poly2s", gl_poly2s}, |
| 7391 | {"defcursor", gl_defcursor}, |
| 7392 | {"writepixels", gl_writepixels}, |
| 7393 | {"defbasis", gl_defbasis}, |
| 7394 | {"gewrite", gl_gewrite}, |
| 7395 | {"rotate", gl_rotate}, |
| 7396 | {"rot", gl_rot}, |
| 7397 | {"circfi", gl_circfi}, |
| 7398 | {"circi", gl_circi}, |
| 7399 | {"cmovi", gl_cmovi}, |
| 7400 | {"drawi", gl_drawi}, |
| 7401 | {"movei", gl_movei}, |
| 7402 | {"pnti", gl_pnti}, |
| 7403 | {"newtag", gl_newtag}, |
| 7404 | {"pdri", gl_pdri}, |
| 7405 | {"pmvi", gl_pmvi}, |
| 7406 | {"rdri", gl_rdri}, |
| 7407 | {"rmvi", gl_rmvi}, |
| 7408 | {"rpdri", gl_rpdri}, |
| 7409 | {"rpmvi", gl_rpmvi}, |
| 7410 | {"xfpti", gl_xfpti}, |
| 7411 | {"circ", gl_circ}, |
| 7412 | {"circf", gl_circf}, |
| 7413 | {"cmov", gl_cmov}, |
| 7414 | {"draw", gl_draw}, |
| 7415 | {"move", gl_move}, |
| 7416 | {"pnt", gl_pnt}, |
| 7417 | {"scale", gl_scale}, |
| 7418 | {"translate", gl_translate}, |
| 7419 | {"pdr", gl_pdr}, |
| 7420 | {"pmv", gl_pmv}, |
| 7421 | {"rdr", gl_rdr}, |
| 7422 | {"rmv", gl_rmv}, |
| 7423 | {"rpdr", gl_rpdr}, |
| 7424 | {"rpmv", gl_rpmv}, |
| 7425 | {"xfpt", gl_xfpt}, |
| 7426 | {"RGBcolor", gl_RGBcolor}, |
| 7427 | {"RGBwritemask", gl_RGBwritemask}, |
| 7428 | {"setcursor", gl_setcursor}, |
| 7429 | {"tie", gl_tie}, |
| 7430 | {"circfs", gl_circfs}, |
| 7431 | {"circs", gl_circs}, |
| 7432 | {"cmovs", gl_cmovs}, |
| 7433 | {"draws", gl_draws}, |
| 7434 | {"moves", gl_moves}, |
| 7435 | {"pdrs", gl_pdrs}, |
| 7436 | {"pmvs", gl_pmvs}, |
| 7437 | {"pnts", gl_pnts}, |
| 7438 | {"rdrs", gl_rdrs}, |
| 7439 | {"rmvs", gl_rmvs}, |
| 7440 | {"rpdrs", gl_rpdrs}, |
| 7441 | {"rpmvs", gl_rpmvs}, |
| 7442 | {"xfpts", gl_xfpts}, |
| 7443 | {"curorigin", gl_curorigin}, |
| 7444 | {"cyclemap", gl_cyclemap}, |
| 7445 | {"patch", gl_patch}, |
| 7446 | {"splf", gl_splf}, |
| 7447 | {"splf2", gl_splf2}, |
| 7448 | {"splfi", gl_splfi}, |
| 7449 | {"splf2i", gl_splf2i}, |
| 7450 | {"splfs", gl_splfs}, |
| 7451 | {"splf2s", gl_splf2s}, |
| 7452 | {"rpatch", gl_rpatch}, |
| 7453 | {"ortho2", gl_ortho2}, |
| 7454 | {"rect", gl_rect}, |
| 7455 | {"rectf", gl_rectf}, |
| 7456 | {"xfpt4", gl_xfpt4}, |
| 7457 | {"textport", gl_textport}, |
| 7458 | {"mapcolor", gl_mapcolor}, |
| 7459 | {"scrmask", gl_scrmask}, |
| 7460 | {"setvaluator", gl_setvaluator}, |
| 7461 | {"viewport", gl_viewport}, |
| 7462 | {"shaderange", gl_shaderange}, |
| 7463 | {"xfpt4s", gl_xfpt4s}, |
| 7464 | {"rectfi", gl_rectfi}, |
| 7465 | {"recti", gl_recti}, |
| 7466 | {"xfpt4i", gl_xfpt4i}, |
| 7467 | {"prefposition", gl_prefposition}, |
| 7468 | {"arc", gl_arc}, |
| 7469 | {"arcf", gl_arcf}, |
| 7470 | {"arcfi", gl_arcfi}, |
| 7471 | {"arci", gl_arci}, |
| 7472 | {"bbox2", gl_bbox2}, |
| 7473 | {"bbox2i", gl_bbox2i}, |
| 7474 | {"bbox2s", gl_bbox2s}, |
| 7475 | {"blink", gl_blink}, |
| 7476 | {"ortho", gl_ortho}, |
| 7477 | {"window", gl_window}, |
| 7478 | {"lookat", gl_lookat}, |
| 7479 | {"perspective", gl_perspective}, |
| 7480 | {"polarview", gl_polarview}, |
| 7481 | {"arcfs", gl_arcfs}, |
| 7482 | {"arcs", gl_arcs}, |
| 7483 | {"rectcopy", gl_rectcopy}, |
| 7484 | {"RGBcursor", gl_RGBcursor}, |
| 7485 | {"getbutton", gl_getbutton}, |
| 7486 | {"getcmmode", gl_getcmmode}, |
| 7487 | {"getlsbackup", gl_getlsbackup}, |
| 7488 | {"getresetls", gl_getresetls}, |
| 7489 | {"getdcm", gl_getdcm}, |
| 7490 | {"getzbuffer", gl_getzbuffer}, |
| 7491 | {"ismex", gl_ismex}, |
| 7492 | {"isobj", gl_isobj}, |
| 7493 | {"isqueued", gl_isqueued}, |
| 7494 | {"istag", gl_istag}, |
| 7495 | {"genobj", gl_genobj}, |
| 7496 | {"gentag", gl_gentag}, |
| 7497 | {"getbuffer", gl_getbuffer}, |
| 7498 | {"getcolor", gl_getcolor}, |
| 7499 | {"getdisplaymode", gl_getdisplaymode}, |
| 7500 | {"getfont", gl_getfont}, |
| 7501 | {"getheight", gl_getheight}, |
| 7502 | {"gethitcode", gl_gethitcode}, |
| 7503 | {"getlstyle", gl_getlstyle}, |
| 7504 | {"getlwidth", gl_getlwidth}, |
| 7505 | {"getmap", gl_getmap}, |
| 7506 | {"getplanes", gl_getplanes}, |
| 7507 | {"getwritemask", gl_getwritemask}, |
| 7508 | {"qtest", gl_qtest}, |
| 7509 | {"getlsrepeat", gl_getlsrepeat}, |
| 7510 | {"getmonitor", gl_getmonitor}, |
| 7511 | {"getopenobj", gl_getopenobj}, |
| 7512 | {"getpattern", gl_getpattern}, |
| 7513 | {"winget", gl_winget}, |
| 7514 | {"winattach", gl_winattach}, |
| 7515 | {"getothermonitor", gl_getothermonitor}, |
| 7516 | {"newpup", gl_newpup}, |
| 7517 | {"getvaluator", gl_getvaluator}, |
| 7518 | {"winset", gl_winset}, |
| 7519 | {"dopup", gl_dopup}, |
| 7520 | {"getdepth", gl_getdepth}, |
| 7521 | {"getcpos", gl_getcpos}, |
| 7522 | {"getsize", gl_getsize}, |
| 7523 | {"getorigin", gl_getorigin}, |
| 7524 | {"getviewport", gl_getviewport}, |
| 7525 | {"gettp", gl_gettp}, |
| 7526 | {"getgpos", gl_getgpos}, |
| 7527 | {"winposition", gl_winposition}, |
| 7528 | {"gRGBcolor", gl_gRGBcolor}, |
| 7529 | {"gRGBmask", gl_gRGBmask}, |
| 7530 | {"getscrmask", gl_getscrmask}, |
| 7531 | {"getmcolor", gl_getmcolor}, |
| 7532 | {"mapw", gl_mapw}, |
| 7533 | {"mapw2", gl_mapw2}, |
| 7534 | {"getcursor", gl_getcursor}, |
| 7535 | {"cmode", gl_cmode}, |
| 7536 | {"concave", gl_concave}, |
| 7537 | {"curstype", gl_curstype}, |
| 7538 | {"drawmode", gl_drawmode}, |
| 7539 | {"gammaramp", gl_gammaramp}, |
| 7540 | {"getbackface", gl_getbackface}, |
| 7541 | {"getdescender", gl_getdescender}, |
| 7542 | {"getdrawmode", gl_getdrawmode}, |
| 7543 | {"getmmode", gl_getmmode}, |
| 7544 | {"getsm", gl_getsm}, |
| 7545 | {"getvideo", gl_getvideo}, |
| 7546 | {"imakebackground", gl_imakebackground}, |
| 7547 | {"lmbind", gl_lmbind}, |
| 7548 | {"lmdef", gl_lmdef}, |
| 7549 | {"mmode", gl_mmode}, |
| 7550 | {"normal", gl_normal}, |
| 7551 | {"overlay", gl_overlay}, |
| 7552 | {"RGBrange", gl_RGBrange}, |
| 7553 | {"setvideo", gl_setvideo}, |
| 7554 | {"shademodel", gl_shademodel}, |
| 7555 | {"underlay", gl_underlay}, |
| 7556 | {"bgnclosedline", gl_bgnclosedline}, |
| 7557 | {"bgnline", gl_bgnline}, |
| 7558 | {"bgnpoint", gl_bgnpoint}, |
| 7559 | {"bgnpolygon", gl_bgnpolygon}, |
| 7560 | {"bgnsurface", gl_bgnsurface}, |
| 7561 | {"bgntmesh", gl_bgntmesh}, |
| 7562 | {"bgntrim", gl_bgntrim}, |
| 7563 | {"endclosedline", gl_endclosedline}, |
| 7564 | {"endline", gl_endline}, |
| 7565 | {"endpoint", gl_endpoint}, |
| 7566 | {"endpolygon", gl_endpolygon}, |
| 7567 | {"endsurface", gl_endsurface}, |
| 7568 | {"endtmesh", gl_endtmesh}, |
| 7569 | {"endtrim", gl_endtrim}, |
| 7570 | {"blendfunction", gl_blendfunction}, |
| 7571 | {"c3f", gl_c3f}, |
| 7572 | {"c3i", gl_c3i}, |
| 7573 | {"c3s", gl_c3s}, |
| 7574 | {"c4f", gl_c4f}, |
| 7575 | {"c4i", gl_c4i}, |
| 7576 | {"c4s", gl_c4s}, |
| 7577 | {"colorf", gl_colorf}, |
| 7578 | {"cpack", gl_cpack}, |
| 7579 | {"czclear", gl_czclear}, |
| 7580 | {"dglclose", gl_dglclose}, |
| 7581 | {"dglopen", gl_dglopen}, |
| 7582 | {"getgdesc", gl_getgdesc}, |
| 7583 | {"getnurbsproperty", gl_getnurbsproperty}, |
| 7584 | {"glcompat", gl_glcompat}, |
| 7585 | {"iconsize", gl_iconsize}, |
| 7586 | {"icontitle", gl_icontitle}, |
| 7587 | {"lRGBrange", gl_lRGBrange}, |
| 7588 | {"linesmooth", gl_linesmooth}, |
| 7589 | {"lmcolor", gl_lmcolor}, |
| 7590 | {"logicop", gl_logicop}, |
| 7591 | {"lsetdepth", gl_lsetdepth}, |
| 7592 | {"lshaderange", gl_lshaderange}, |
| 7593 | {"n3f", gl_n3f}, |
| 7594 | {"noborder", gl_noborder}, |
| 7595 | {"pntsmooth", gl_pntsmooth}, |
| 7596 | {"readsource", gl_readsource}, |
| 7597 | {"rectzoom", gl_rectzoom}, |
| 7598 | {"sbox", gl_sbox}, |
| 7599 | {"sboxi", gl_sboxi}, |
| 7600 | {"sboxs", gl_sboxs}, |
| 7601 | {"sboxf", gl_sboxf}, |
| 7602 | {"sboxfi", gl_sboxfi}, |
| 7603 | {"sboxfs", gl_sboxfs}, |
| 7604 | {"setnurbsproperty", gl_setnurbsproperty}, |
| 7605 | {"setpup", gl_setpup}, |
| 7606 | {"smoothline", gl_smoothline}, |
| 7607 | {"subpixel", gl_subpixel}, |
| 7608 | {"swaptmesh", gl_swaptmesh}, |
| 7609 | {"swinopen", gl_swinopen}, |
| 7610 | {"v2f", gl_v2f}, |
| 7611 | {"v2i", gl_v2i}, |
| 7612 | {"v2s", gl_v2s}, |
| 7613 | {"v3f", gl_v3f}, |
| 7614 | {"v3i", gl_v3i}, |
| 7615 | {"v3s", gl_v3s}, |
| 7616 | {"v4f", gl_v4f}, |
| 7617 | {"v4i", gl_v4i}, |
| 7618 | {"v4s", gl_v4s}, |
| 7619 | {"videocmd", gl_videocmd}, |
| 7620 | {"windepth", gl_windepth}, |
| 7621 | {"wmpack", gl_wmpack}, |
| 7622 | {"zdraw", gl_zdraw}, |
| 7623 | {"zfunction", gl_zfunction}, |
| 7624 | {"zsource", gl_zsource}, |
| 7625 | {"zwritemask", gl_zwritemask}, |
| 7626 | {"v2d", gl_v2d}, |
| 7627 | {"v3d", gl_v3d}, |
| 7628 | {"v4d", gl_v4d}, |
| 7629 | {"pixmode", gl_pixmode}, |
| 7630 | {"qgetfd", gl_qgetfd}, |
| 7631 | {"dither", gl_dither}, |
| 7632 | {NULL, NULL} /* Sentinel */ |
| 7633 | }; |
| 7634 | |
| 7635 | void |
Thomas Wouters | f3f33dc | 2000-07-21 06:00:07 +0000 | [diff] [blame] | 7636 | initgl(void) |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 7637 | { |
Guido van Rossum | dfed920 | 1997-04-29 15:46:43 +0000 | [diff] [blame] | 7638 | (void) Py_InitModule("gl", gl_methods); |
Roger E. Masse | fbd1d74 | 1996-12-24 19:39:23 +0000 | [diff] [blame] | 7639 | } |