1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
|
/*
# BUILD api_versions [0x100]
*/
%module filter4_parameters
%{
/**
*
* GLU.SGI.filter4_parameters Module for PyOpenGL
*
* Date: May 2001
*
* Authors: Tarn Weisner Burton <twburton@users.sourceforge.net>
*
***/
%}
#define __version__ "$Revision: 1.20 $"
#define __date__ "$Date: 2001/10/05 17:39:12 $"
#define __api_version__ API_VERSION
#define __author__ "Tarn Weisner Burton <twburton@users.sourceforge.net>"
#define __doc__ "http:\057\057oss.sgi.com\057projects\057ogl-sample\057registry\057SGI\057filter4_parameters.txt"
%include util.inc
/* turn the exception handler on */
GL_EXCEPTION_HANDLER()
%{
#if !EXT_DEFINES_PROTO || !defined(GLU_SGI_filter4_parameters)
DECLARE_EXT(gluTexFilterFuncSGI, GLint, 0, \
(GLenum target, GLenum filtertype, const GLfloat *params, GLint n, GLfloat *weights),\
(target, filtertype, params, n, weights))
#endif
PyObject *_gluTexFilterFuncSGI(GLenum target, GLenum filtertype, const GLfloat *params, GLint n)
{
GLfloat *weights = PyMem_New(GLfloat, n);
PyObject *result = NULL;
GLint code = gluTexFilterFuncSGI(target, filtertype, params, n, weights);
if (code)
{
PyMem_Del(weights);
PyErr_SetGLUerror(code);
return NULL;
}
result = _PyTuple_FromFloatArray(n, weights);
PyMem_Del(weights);
return result;
}
%}
%name(gluTexFilterFuncSGI) PyObject *_gluTexFilterFuncSGI(GLenum target, GLenum filtertype, const GLfloat *params, GLint n);
DOC(gluTexFilterFuncSGI, "gluTexFilterFuncSGI(target, filtertype, params, n) -> weights")
%{
static char *proc_names[] =
{
#if !EXT_DEFINES_PROTO || !defined(GLU_SGI_filter4_parameters)
"gluTexFilterFuncSGI",
NULL,
NULL,
NULL,
#endif
NULL
};
#define gluInitFilter4ParametersSGI() InitExtension("GLU_SGI_filter4_parameters", proc_names)
%}
int gluInitFilter4ParametersSGI();
DOC(gluInitFilter4ParametersSGI, "gluInitFilter4ParametersSGI() -> bool")
%{
PyObject *__info()
{
if (gluInitFilter4ParametersSGI())
{
PyObject *info = PyList_New(0);
return info;
}
Py_INCREF(Py_None);
return Py_None;
}
%}
PyObject *__info();
#define GLU_LAGRANGIAN_SGI 100300
#define GLU_MITCHELL_NETRAVALI_SGI 100301
|