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 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213
|
/*
# BUILD api_versions [0x100]
*/
%module vertex_blend
#define __version__ "$Revision: 1.31 $"
#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\057ARB\057vertex_blend.txt"
%{
/**
*
* GL.ARB.vertex_blend Module for PyOpenGL
*
* Date May 2001
*
* Authors Tarn Weisner Burton <twburton@users.sourceforge.net>
*
***/
%}
%include util.inc
EXCEPTION_HANDLER()
%{
#if !EXT_DEFINES_PROTO || !defined(GL_ARB_vertex_blend)
DECLARE_VOID_EXT(glWeightbvARB, (GLint size, const GLbyte* weights), (size, weights))
DECLARE_VOID_EXT(glWeightubvARB, (GLint size, const GLubyte* weights), (size, weights))
DECLARE_VOID_EXT(glWeightsvARB, (GLint size, const GLshort* weights), (size, weights))
DECLARE_VOID_EXT(glWeightusvARB, (GLint size, const GLushort* weights), (size, weights))
DECLARE_VOID_EXT(glWeightivARB, (GLint size, const GLint* weights), (size, weights))
DECLARE_VOID_EXT(glWeightuivARB, (GLint size, const GLuint* weights), (size, weights))
DECLARE_VOID_EXT(glWeightfvARB, (GLint size, const GLfloat* weights), (size, weights))
DECLARE_VOID_EXT(glWeightdvARB, (GLint size, const GLdouble* weights), (size, weights))
DECLARE_VOID_EXT(glWeightPointerARB, (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer), (size, type, stride, pointer))
DECLARE_VOID_EXT(glWeightBlendARB, (GLint count), (count))
#endif
static char *proc_names[] =
{
#if !EXT_DEFINES_PROTO || !defined(GL_ARB_vertex_blend)
"glSampleCoverageARB",
"glWeightbvARB",
"glWeightubvARB",
"glWeightsvARB",
"glWeightusvARB",
"glWeightivARB",
"glWeightuivARB",
"glWeightfvARB",
"glWeightdvARB",
"glWeightPointerARB",
"glWeightBlendARB",
#endif
NULL
};
#define glInitVertexBlendARB() InitExtension("GL_ARB_vertex_blend", proc_names)
%}
int glInitVertexBlendARB();
DOC(glInitVertexBlendARB, "glInitVertexBlendARB() -> bool")
void glWeightbvARB(GLint n_1, const GLbyte* weights);
DOC(glWeightbvARB, "glWeightbvARB(weights) -> None")
void glWeightubvARB(GLint n_1, const GLubyte* weights);
DOC(glWeightubvARB, "glWeightubvARB(weights) -> None")
void glWeightsvARB(GLint n_1, const GLshort* weights);
DOC(glWeightsvARB, "glWeightsvARB(weights) -> None")
void glWeightusvARB(GLint n_1, const GLushort* weights);
DOC(glWeightusvARB, "glWeightusvARB(weights) -> None")
void glWeightivARB(GLint n_1, const GLint* weights);
DOC(glWeightivARB, "glWeightivARB(weights) -> None")
void glWeightuivARB(GLint n_1, const GLuint* weights);
DOC(glWeightuivARB, "glWeightuivARB(weights) -> None")
void glWeightfvARB(GLint n_1, const GLfloat* weights);
DOC(glWeightfvARB, "glWeightfvARB(weights) -> None")
void glWeightdvARB(GLint n_1, const GLdouble* weights);
DOC(glWeightdvARB, "glWeightdvARB(weights) -> None")
/* turn the exception handler on */
GL_EXCEPTION_HANDLER()
/*void glWeightPointerARB (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); */
%{
#ifndef GL_WEIGHT_ARRAY_POINTER_ARB
#define GL_WEIGHT_ARRAY_POINTER_ARB 0x86AC
#endif
void _glWeightPointerARB(GLint size, GLenum type, GLsizei stride, GLvoid *pointer)
{
decrementPointerLock(GL_WEIGHT_ARRAY_POINTER_ARB);
acquire(pointer);
glWeightPointerARB(size, type, stride, pointer);
}
%}
%name(glWeightPointerARB) void _glWeightPointerARB(GLint size, GLenum type, GLsizei stride, void *pointer);
DOC(glWeightPointerARB, "glWeightPointerARB(size, type, stride, pointer) -> None")
%name(glWeightPointerubARB) void _glWeightPointerARB(GLint d_3_1, GLenum type_UNSIGNED_BYTE, GLsizei stride_0, GLubyte* pointer);
DOC(glWeightPointerubARB, "glWeightPointerubARB(pointer) -> None")
%name(glWeightPointerbARB) void _glWeightPointerARB(GLint d_3_1, GLenum type_BYTE, GLsizei stride_0, GLbyte* pointer);
DOC(glWeightPointerbARB, "glWeightPointerubARB(pointer) -> None")
%name(glWeightPointerusARB) void _glWeightPointerARB(GLint d_3_1, GLenum type_UNSIGNED_SHORT, GLsizei stride_0, GLushort* pointer);
DOC(glWeightPointerusARB, "glWeightPointerusARB(pointer) -> None")
%name(glWeightPointersARB) void _glWeightPointerARB(GLint d_3_1, GLenum type_SHORT, GLsizei stride_0, GLshort* pointer);
DOC(glWeightPointersARB, "glWeightPointersARB(pointer) -> None")
%name(glWeightPointeruiARB) void _glWeightPointerARB(GLint d_3_1, GLenum type_UNSIGNED_INT, GLsizei stride_0, GLuint* pointer);
DOC(glWeightPointeruiARB, "glWeightPointeruiARB(pointer) -> None")
%name(glWeightPointeriARB) void _glWeightPointerARB(GLint d_3_1, GLenum type_INT, GLsizei stride_0, GLint* pointer);
DOC(glWeightPointeriARB, "glWeightPointeriARB(pointer) -> None")
%name(glWeightPointerfARB) void _glWeightPointerARB(GLint d_3_1, GLenum type_FLOAT, GLsizei stride_0, GLfloat* pointer);
DOC(glWeightPointerfARB, "glWeightPointerfARB(pointer) -> None")
%name(glWeightPointerdARB) void _glWeightPointerARB(GLint d_3_1, GLenum type_DOUBLE, GLsizei stride_0, GLdouble* pointer);
DOC(glWeightPointerdARB, "glWeightPointerdARB(pointer) -> None")
void glWeightBlendARB(GLint count);
DOC(glWeightBlendARB, "glWeightBlendARB(count) -> None")
%{
#ifndef GL_ARB_vertex_blend
#define GL_MAX_VERTEX_UNITS_ARB 0x86A4
#endif
PyObject *__info()
{
if (glInitVertexBlendARB())
{
PyObject *info = PyList_New(0);
PyList_Append(info, Py_BuildValue("sis", "GL_MAX_VERTEX_UNITS_ARB", GL_MAX_VERTEX_UNITS_ARB, "i"));
return info;
}
Py_INCREF(Py_None);
return Py_None;
}
%}
PyObject *__info();
#define GL_MAX_VERTEX_UNITS_ARB 0x86A4
#define GL_ACTIVE_VERTEX_UNITS_ARB 0x86A5
#define GL_WEIGHT_SUM_UNITY_ARB 0x86A6
#define GL_VERTEX_BLEND_ARB 0x86A7
#define GL_MODELVIEW0_ARB 0x1700
#define GL_MODELVIEW1_ARB 0x850a
#define GL_MODELVIEW2_ARB 0x8722
#define GL_MODELVIEW3_ARB 0x8723
#define GL_MODELVIEW4_ARB 0x8724
#define GL_MODELVIEW5_ARB 0x8725
#define GL_MODELVIEW6_ARB 0x8726
#define GL_MODELVIEW7_ARB 0x8727
#define GL_MODELVIEW8_ARB 0x8728
#define GL_MODELVIEW9_ARB 0x8729
#define GL_MODELVIEW10_ARB 0x872A
#define GL_MODELVIEW11_ARB 0x872B
#define GL_MODELVIEW12_ARB 0x872C
#define GL_MODELVIEW13_ARB 0x872D
#define GL_MODELVIEW14_ARB 0x872E
#define GL_MODELVIEW15_ARB 0x872F
#define GL_MODELVIEW16_ARB 0x8730
#define GL_MODELVIEW17_ARB 0x8731
#define GL_MODELVIEW18_ARB 0x8732
#define GL_MODELVIEW19_ARB 0x8733
#define GL_MODELVIEW20_ARB 0x8734
#define GL_MODELVIEW21_ARB 0x8735
#define GL_MODELVIEW22_ARB 0x8736
#define GL_MODELVIEW23_ARB 0x8737
#define GL_MODELVIEW24_ARB 0x8738
#define GL_MODELVIEW25_ARB 0x8739
#define GL_MODELVIEW26_ARB 0x873A
#define GL_MODELVIEW27_ARB 0x873B
#define GL_MODELVIEW28_ARB 0x873C
#define GL_MODELVIEW29_ARB 0x873D
#define GL_MODELVIEW30_ARB 0x873E
#define GL_MODELVIEW31_ARB 0x873F
#define GL_CURRENT_WEIGHT_ARB 0x86A8
#define GL_WEIGHT_ARRAY_TYPE_ARB 0x86A9
#define GL_WEIGHT_ARRAY_STRIDE_ARB 0x86AA
#define GL_WEIGHT_ARRAY_SIZE_ARB 0x86AB
#define GL_WEIGHT_ARRAY_POINTER_ARB 0x86AC
#define GL_WEIGHT_ARRAY_ARB 0x86AD
|