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 97 98 99 100
|
/*
# BUILD api_versions [0x115]
*/
%module copy_texture
#define __version__ "$Revision: 1.18 $"
#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\057EXT\057copy_texture.txt"
%{
/**
*
* GL.EXT.copy_texture Module for PyOpenGL
*
* Date: May 2001
*
* Authors: Tarn Weisner Burton <twburton@users.sourceforge.net>
*
***/
%}
%include util.inc
/* turn the exception handler on */
GL_EXCEPTION_HANDLER()
%{
#if !EXT_DEFINES_PROTO || !defined(GL_EXT_copy_texture)
DECLARE_VOID_EXT(glCopyTexImage1DEXT,\
(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border),\
(target, level, internalFormat, x, y, width, border))
DECLARE_VOID_EXT(glCopyTexImage2DEXT,\
(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border),\
(target, level, internalFormat, x, y, width, height, border))
DECLARE_VOID_EXT(glCopyTexSubImage1DEXT,\
(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width),\
(target, level, xoffset, x, y, width))
DECLARE_VOID_EXT(glCopyTexSubImage2DEXT,\
(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height),\
(target, level, xoffset, yoffset, x, y, width, height))
DECLARE_VOID_EXT(glCopyTexSubImage3DEXT,\
(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height),\
(target, level, xoffset, yoffset, zoffset, x, y, width, height))
#endif
%}
void glCopyTexImage1DEXT (GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border);
DOC(glCopyTexImage1DEXT, "glCopyTexImage1DEXT(target, level, internalFormat, x, y, width, border) -> None")
void glCopyTexImage2DEXT (GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
DOC(glCopyTexImage2DEXT, "glCopyTexImage2DEXT(target, level, internalFormat, x, y, width, height, border) -> None")
void glCopyTexSubImage1DEXT (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
DOC(glCopyTexSubImage1DEXT, "glCopyTexSubImage1DEXT(target, level, xoffset, x, y, width) -> None")
void glCopyTexSubImage2DEXT (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
DOC(glCopyTexSubImage2DEXT, "glCopyTexSubImage2DEXT(target, level, xoffset, yoffset, x, y, width, height) -> None")
void glCopyTexSubImage3DEXT (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
DOC(glCopyTexSubImage3DEXT, "glCopyTexSubImage3DEXT(target, level, xoffset, yoffset, zoffset, x, y, width, height) -> None")
%{
static char *proc_names[] =
{
#if !EXT_DEFINES_PROTO || !defined(GL_EXT_copy_texture)
"glCopyTexSubImage1DEXT",
"glCopyTexSubImage2DEXT",
"glCopyTexSubImage3DEXT",
#endif
NULL
};
#define glInitCopyTextureEXT() InitExtension("GL_EXT_copy_texture", proc_names)
%}
int glInitCopyTextureEXT();
DOC(glInitCopyTextureEXT, "glInitCopyTextureEXT() -> bool")
%name(glInitCopyTexEXT) int glInitCopyTextureEXT();
DOC(glInitCopyTexEXT, "glInitCopyTexEXT() -> bool")
%{
PyObject *__info()
{
if (glInitCopyTextureEXT())
{
PyObject *info = PyList_New(0);
return info;
}
Py_INCREF(Py_None);
return Py_None;
}
%}
PyObject *__info();
|