* Added submodule NMesh:

Partially implemented.  Most of it comes from opy_nmesh.c, plus needed
    changes to integrate in into exppython.
* Added helper submodule vector, needed by NMesh.
* Minor changes in other files.
This commit is contained in:
2003-05-17 04:29:49 +00:00
parent 7c48bec899
commit ed78dcc96c
19 changed files with 2500 additions and 350 deletions

View File

@@ -338,7 +338,6 @@ static PyObject *Buffer_repr(PyObject *self)
/* BGL_Wrap defined in BGL.h */
/* Let's try to take away this ifndef: */
/* #ifndef __APPLE__ */
BGL_Wrap(2, Accum, void, (GLenum, GLfloat))
@@ -680,319 +679,319 @@ static struct PyMethodDef BGL_methods[] = {
/* #ifndef __APPLE__ */
MethodDef( Accum),
MethodDef( AlphaFunc),
MethodDef( AreTexturesResident),
MethodDef( Begin),
MethodDef( BindTexture),
MethodDef( Bitmap),
MethodDef( BlendFunc),
MethodDef( CallList),
MethodDef( CallLists),
MethodDef( Clear),
MethodDef( ClearAccum),
MethodDef( ClearColor),
MethodDef( ClearDepth),
MethodDef( ClearIndex),
MethodDef( ClearStencil),
MethodDef( ClipPlane),
MethodDef( Color3b),
MethodDef( Color3bv),
MethodDef( Color3d),
MethodDef( Color3dv),
MethodDef( Color3f),
MethodDef( Color3fv),
MethodDef( Color3i),
MethodDef( Color3iv),
MethodDef( Color3s),
MethodDef( Color3sv),
MethodDef( Color3ub),
MethodDef( Color3ubv),
MethodDef( Color3ui),
MethodDef( Color3uiv),
MethodDef( Color3us),
MethodDef( Color3usv),
MethodDef( Color4b),
MethodDef( Color4bv),
MethodDef( Color4d),
MethodDef( Color4dv),
MethodDef( Color4f),
MethodDef( Color4fv),
MethodDef( Color4i),
MethodDef( Color4iv),
MethodDef( Color4s),
MethodDef( Color4sv),
MethodDef( Color4ub),
MethodDef( Color4ubv),
MethodDef( Color4ui),
MethodDef( Color4uiv),
MethodDef( Color4us),
MethodDef( Color4usv),
MethodDef( ColorMask),
MethodDef( ColorMaterial),
MethodDef( CopyPixels),
MethodDef( CullFace),
MethodDef( DeleteLists),
MethodDef( DeleteTextures),
MethodDef( DepthFunc),
MethodDef( DepthMask),
MethodDef( DepthRange),
MethodDef( Disable),
MethodDef( DrawBuffer),
MethodDef( DrawPixels),
MethodDef( EdgeFlag),
MethodDef( EdgeFlagv),
MethodDef( Enable),
MethodDef( End),
MethodDef( EndList),
MethodDef( EvalCoord1d),
MethodDef( EvalCoord1dv),
MethodDef( EvalCoord1f),
MethodDef( EvalCoord1fv),
MethodDef( EvalCoord2d),
MethodDef( EvalCoord2dv),
MethodDef( EvalCoord2f),
MethodDef( EvalCoord2fv),
MethodDef( EvalMesh1),
MethodDef( EvalMesh2),
MethodDef( EvalPoint1),
MethodDef( EvalPoint2),
MethodDef( FeedbackBuffer),
MethodDef( Finish),
MethodDef( Flush),
MethodDef( Fogf),
MethodDef( Fogfv),
MethodDef( Fogi),
MethodDef( Fogiv),
MethodDef( FrontFace),
MethodDef( Frustum),
MethodDef( GenLists),
MethodDef( GenTextures),
MethodDef( GetBooleanv),
MethodDef( GetClipPlane),
MethodDef( GetDoublev),
MethodDef( GetError),
MethodDef( GetFloatv),
MethodDef( GetIntegerv),
MethodDef( GetLightfv),
MethodDef( GetLightiv),
MethodDef( GetMapdv),
MethodDef( GetMapfv),
MethodDef( GetMapiv),
MethodDef( GetMaterialfv),
MethodDef( GetMaterialiv),
MethodDef( GetPixelMapfv),
MethodDef( GetPixelMapuiv),
MethodDef( GetPixelMapusv),
MethodDef( GetPolygonStipple),
MethodDef( GetString),
MethodDef( GetTexEnvfv),
MethodDef( GetTexEnviv),
MethodDef( GetTexGendv),
MethodDef( GetTexGenfv),
MethodDef( GetTexGeniv),
MethodDef( GetTexImage),
MethodDef( GetTexLevelParameterfv),
MethodDef( GetTexLevelParameteriv),
MethodDef( GetTexParameterfv),
MethodDef( GetTexParameteriv),
MethodDef( Hint),
MethodDef( IndexMask),
MethodDef( Indexd),
MethodDef( Indexdv),
MethodDef( Indexf),
MethodDef( Indexfv),
MethodDef( Indexi),
MethodDef( Indexiv),
MethodDef( Indexs),
MethodDef( Indexsv),
MethodDef( InitNames),
MethodDef( IsEnabled),
MethodDef( IsList),
MethodDef( IsTexture),
MethodDef( LightModelf),
MethodDef( LightModelfv),
MethodDef( LightModeli),
MethodDef( LightModeliv),
MethodDef( Lightf),
MethodDef( Lightfv),
MethodDef( Lighti),
MethodDef( Lightiv),
MethodDef( LineStipple),
MethodDef( LineWidth),
MethodDef( ListBase),
MethodDef( LoadIdentity),
MethodDef( LoadMatrixd),
MethodDef( LoadMatrixf),
MethodDef( LoadName),
MethodDef( LogicOp),
MethodDef( Map1d),
MethodDef( Map1f),
MethodDef( Map2d),
MethodDef( Map2f),
MethodDef( MapGrid1d),
MethodDef( MapGrid1f),
MethodDef( MapGrid2d),
MethodDef( MapGrid2f),
MethodDef( Materialf),
MethodDef( Materialfv),
MethodDef( Materiali),
MethodDef( Materialiv),
MethodDef( MatrixMode),
MethodDef( MultMatrixd),
MethodDef( MultMatrixf),
MethodDef( NewList),
MethodDef( Normal3b),
MethodDef( Normal3bv),
MethodDef( Normal3d),
MethodDef( Normal3dv),
MethodDef( Normal3f),
MethodDef( Normal3fv),
MethodDef( Normal3i),
MethodDef( Normal3iv),
MethodDef( Normal3s),
MethodDef( Normal3sv),
MethodDef( Ortho),
MethodDef( PassThrough),
MethodDef( PixelMapfv),
MethodDef( PixelMapuiv),
MethodDef( PixelMapusv),
MethodDef( PixelStoref),
MethodDef( PixelStorei),
MethodDef( PixelTransferf),
MethodDef( PixelTransferi),
MethodDef( PixelZoom),
MethodDef( PointSize),
MethodDef( PolygonMode),
MethodDef( PolygonOffset),
MethodDef( PolygonStipple),
MethodDef( PopAttrib),
MethodDef( PopMatrix),
MethodDef( PopName),
MethodDef( PrioritizeTextures),
MethodDef( PushAttrib),
MethodDef( PushMatrix),
MethodDef( PushName),
MethodDef( RasterPos2d),
MethodDef( RasterPos2dv),
MethodDef( RasterPos2f),
MethodDef( RasterPos2fv),
MethodDef( RasterPos2i),
MethodDef( RasterPos2iv),
MethodDef( RasterPos2s),
MethodDef( RasterPos2sv),
MethodDef( RasterPos3d),
MethodDef( RasterPos3dv),
MethodDef( RasterPos3f),
MethodDef( RasterPos3fv),
MethodDef( RasterPos3i),
MethodDef( RasterPos3iv),
MethodDef( RasterPos3s),
MethodDef( RasterPos3sv),
MethodDef( RasterPos4d),
MethodDef( RasterPos4dv),
MethodDef( RasterPos4f),
MethodDef( RasterPos4fv),
MethodDef( RasterPos4i),
MethodDef( RasterPos4iv),
MethodDef( RasterPos4s),
MethodDef( RasterPos4sv),
MethodDef( ReadBuffer),
MethodDef( ReadPixels),
MethodDef( Rectd),
MethodDef( Rectdv),
MethodDef( Rectf),
MethodDef( Rectfv),
MethodDef( Recti),
MethodDef( Rectiv),
MethodDef( Rects),
MethodDef( Rectsv),
MethodDef( RenderMode),
MethodDef( Rotated),
MethodDef( Rotatef),
MethodDef( Scaled),
MethodDef( Scalef),
MethodDef( Scissor),
MethodDef( SelectBuffer),
MethodDef( ShadeModel),
MethodDef( StencilFunc),
MethodDef( StencilMask),
MethodDef( StencilOp),
MethodDef( TexCoord1d),
MethodDef( TexCoord1dv),
MethodDef( TexCoord1f),
MethodDef( TexCoord1fv),
MethodDef( TexCoord1i),
MethodDef( TexCoord1iv),
MethodDef( TexCoord1s),
MethodDef( TexCoord1sv),
MethodDef( TexCoord2d),
MethodDef( TexCoord2dv),
MethodDef( TexCoord2f),
MethodDef( TexCoord2fv),
MethodDef( TexCoord2i),
MethodDef( TexCoord2iv),
MethodDef( TexCoord2s),
MethodDef( TexCoord2sv),
MethodDef( TexCoord3d),
MethodDef( TexCoord3dv),
MethodDef( TexCoord3f),
MethodDef( TexCoord3fv),
MethodDef( TexCoord3i),
MethodDef( TexCoord3iv),
MethodDef( TexCoord3s),
MethodDef( TexCoord3sv),
MethodDef( TexCoord4d),
MethodDef( TexCoord4dv),
MethodDef( TexCoord4f),
MethodDef( TexCoord4fv),
MethodDef( TexCoord4i),
MethodDef( TexCoord4iv),
MethodDef( TexCoord4s),
MethodDef( TexCoord4sv),
MethodDef( TexEnvf),
MethodDef( TexEnvfv),
MethodDef( TexEnvi),
MethodDef( TexEnviv),
MethodDef( TexGend),
MethodDef( TexGendv),
MethodDef( TexGenf),
MethodDef( TexGenfv),
MethodDef( TexGeni),
MethodDef( TexGeniv),
MethodDef( TexImage1D),
MethodDef( TexImage2D),
MethodDef( TexParameterf),
MethodDef( TexParameterfv),
MethodDef( TexParameteri),
MethodDef( TexParameteriv),
MethodDef( Translated),
MethodDef( Translatef),
MethodDef( Vertex2d),
MethodDef( Vertex2dv),
MethodDef( Vertex2f),
MethodDef( Vertex2fv),
MethodDef( Vertex2i),
MethodDef( Vertex2iv),
MethodDef( Vertex2s),
MethodDef( Vertex2sv),
MethodDef( Vertex3d),
MethodDef( Vertex3dv),
MethodDef( Vertex3f),
MethodDef( Vertex3fv),
MethodDef( Vertex3i),
MethodDef( Vertex3iv),
MethodDef( Vertex3s),
MethodDef( Vertex3sv),
MethodDef( Vertex4d),
MethodDef( Vertex4dv),
MethodDef( Vertex4f),
MethodDef( Vertex4fv),
MethodDef( Vertex4i),
MethodDef( Vertex4iv),
MethodDef( Vertex4s),
MethodDef( Vertex4sv),
MethodDef( Viewport),
MethodDef(Accum),
MethodDef(AlphaFunc),
MethodDef(AreTexturesResident),
MethodDef(Begin),
MethodDef(BindTexture),
MethodDef(Bitmap),
MethodDef(BlendFunc),
MethodDef(CallList),
MethodDef(CallLists),
MethodDef(Clear),
MethodDef(ClearAccum),
MethodDef(ClearColor),
MethodDef(ClearDepth),
MethodDef(ClearIndex),
MethodDef(ClearStencil),
MethodDef(ClipPlane),
MethodDef(Color3b),
MethodDef(Color3bv),
MethodDef(Color3d),
MethodDef(Color3dv),
MethodDef(Color3f),
MethodDef(Color3fv),
MethodDef(Color3i),
MethodDef(Color3iv),
MethodDef(Color3s),
MethodDef(Color3sv),
MethodDef(Color3ub),
MethodDef(Color3ubv),
MethodDef(Color3ui),
MethodDef(Color3uiv),
MethodDef(Color3us),
MethodDef(Color3usv),
MethodDef(Color4b),
MethodDef(Color4bv),
MethodDef(Color4d),
MethodDef(Color4dv),
MethodDef(Color4f),
MethodDef(Color4fv),
MethodDef(Color4i),
MethodDef(Color4iv),
MethodDef(Color4s),
MethodDef(Color4sv),
MethodDef(Color4ub),
MethodDef(Color4ubv),
MethodDef(Color4ui),
MethodDef(Color4uiv),
MethodDef(Color4us),
MethodDef(Color4usv),
MethodDef(ColorMask),
MethodDef(ColorMaterial),
MethodDef(CopyPixels),
MethodDef(CullFace),
MethodDef(DeleteLists),
MethodDef(DeleteTextures),
MethodDef(DepthFunc),
MethodDef(DepthMask),
MethodDef(DepthRange),
MethodDef(Disable),
MethodDef(DrawBuffer),
MethodDef(DrawPixels),
MethodDef(EdgeFlag),
MethodDef(EdgeFlagv),
MethodDef(Enable),
MethodDef(End),
MethodDef(EndList),
MethodDef(EvalCoord1d),
MethodDef(EvalCoord1dv),
MethodDef(EvalCoord1f),
MethodDef(EvalCoord1fv),
MethodDef(EvalCoord2d),
MethodDef(EvalCoord2dv),
MethodDef(EvalCoord2f),
MethodDef(EvalCoord2fv),
MethodDef(EvalMesh1),
MethodDef(EvalMesh2),
MethodDef(EvalPoint1),
MethodDef(EvalPoint2),
MethodDef(FeedbackBuffer),
MethodDef(Finish),
MethodDef(Flush),
MethodDef(Fogf),
MethodDef(Fogfv),
MethodDef(Fogi),
MethodDef(Fogiv),
MethodDef(FrontFace),
MethodDef(Frustum),
MethodDef(GenLists),
MethodDef(GenTextures),
MethodDef(GetBooleanv),
MethodDef(GetClipPlane),
MethodDef(GetDoublev),
MethodDef(GetError),
MethodDef(GetFloatv),
MethodDef(GetIntegerv),
MethodDef(GetLightfv),
MethodDef(GetLightiv),
MethodDef(GetMapdv),
MethodDef(GetMapfv),
MethodDef(GetMapiv),
MethodDef(GetMaterialfv),
MethodDef(GetMaterialiv),
MethodDef(GetPixelMapfv),
MethodDef(GetPixelMapuiv),
MethodDef(GetPixelMapusv),
MethodDef(GetPolygonStipple),
MethodDef(GetString),
MethodDef(GetTexEnvfv),
MethodDef(GetTexEnviv),
MethodDef(GetTexGendv),
MethodDef(GetTexGenfv),
MethodDef(GetTexGeniv),
MethodDef(GetTexImage),
MethodDef(GetTexLevelParameterfv),
MethodDef(GetTexLevelParameteriv),
MethodDef(GetTexParameterfv),
MethodDef(GetTexParameteriv),
MethodDef(Hint),
MethodDef(IndexMask),
MethodDef(Indexd),
MethodDef(Indexdv),
MethodDef(Indexf),
MethodDef(Indexfv),
MethodDef(Indexi),
MethodDef(Indexiv),
MethodDef(Indexs),
MethodDef(Indexsv),
MethodDef(InitNames),
MethodDef(IsEnabled),
MethodDef(IsList),
MethodDef(IsTexture),
MethodDef(LightModelf),
MethodDef(LightModelfv),
MethodDef(LightModeli),
MethodDef(LightModeliv),
MethodDef(Lightf),
MethodDef(Lightfv),
MethodDef(Lighti),
MethodDef(Lightiv),
MethodDef(LineStipple),
MethodDef(LineWidth),
MethodDef(ListBase),
MethodDef(LoadIdentity),
MethodDef(LoadMatrixd),
MethodDef(LoadMatrixf),
MethodDef(LoadName),
MethodDef(LogicOp),
MethodDef(Map1d),
MethodDef(Map1f),
MethodDef(Map2d),
MethodDef(Map2f),
MethodDef(MapGrid1d),
MethodDef(MapGrid1f),
MethodDef(MapGrid2d),
MethodDef(MapGrid2f),
MethodDef(Materialf),
MethodDef(Materialfv),
MethodDef(Materiali),
MethodDef(Materialiv),
MethodDef(MatrixMode),
MethodDef(MultMatrixd),
MethodDef(MultMatrixf),
MethodDef(NewList),
MethodDef(Normal3b),
MethodDef(Normal3bv),
MethodDef(Normal3d),
MethodDef(Normal3dv),
MethodDef(Normal3f),
MethodDef(Normal3fv),
MethodDef(Normal3i),
MethodDef(Normal3iv),
MethodDef(Normal3s),
MethodDef(Normal3sv),
MethodDef(Ortho),
MethodDef(PassThrough),
MethodDef(PixelMapfv),
MethodDef(PixelMapuiv),
MethodDef(PixelMapusv),
MethodDef(PixelStoref),
MethodDef(PixelStorei),
MethodDef(PixelTransferf),
MethodDef(PixelTransferi),
MethodDef(PixelZoom),
MethodDef(PointSize),
MethodDef(PolygonMode),
MethodDef(PolygonOffset),
MethodDef(PolygonStipple),
MethodDef(PopAttrib),
MethodDef(PopMatrix),
MethodDef(PopName),
MethodDef(PrioritizeTextures),
MethodDef(PushAttrib),
MethodDef(PushMatrix),
MethodDef(PushName),
MethodDef(RasterPos2d),
MethodDef(RasterPos2dv),
MethodDef(RasterPos2f),
MethodDef(RasterPos2fv),
MethodDef(RasterPos2i),
MethodDef(RasterPos2iv),
MethodDef(RasterPos2s),
MethodDef(RasterPos2sv),
MethodDef(RasterPos3d),
MethodDef(RasterPos3dv),
MethodDef(RasterPos3f),
MethodDef(RasterPos3fv),
MethodDef(RasterPos3i),
MethodDef(RasterPos3iv),
MethodDef(RasterPos3s),
MethodDef(RasterPos3sv),
MethodDef(RasterPos4d),
MethodDef(RasterPos4dv),
MethodDef(RasterPos4f),
MethodDef(RasterPos4fv),
MethodDef(RasterPos4i),
MethodDef(RasterPos4iv),
MethodDef(RasterPos4s),
MethodDef(RasterPos4sv),
MethodDef(ReadBuffer),
MethodDef(ReadPixels),
MethodDef(Rectd),
MethodDef(Rectdv),
MethodDef(Rectf),
MethodDef(Rectfv),
MethodDef(Recti),
MethodDef(Rectiv),
MethodDef(Rects),
MethodDef(Rectsv),
MethodDef(RenderMode),
MethodDef(Rotated),
MethodDef(Rotatef),
MethodDef(Scaled),
MethodDef(Scalef),
MethodDef(Scissor),
MethodDef(SelectBuffer),
MethodDef(ShadeModel),
MethodDef(StencilFunc),
MethodDef(StencilMask),
MethodDef(StencilOp),
MethodDef(TexCoord1d),
MethodDef(TexCoord1dv),
MethodDef(TexCoord1f),
MethodDef(TexCoord1fv),
MethodDef(TexCoord1i),
MethodDef(TexCoord1iv),
MethodDef(TexCoord1s),
MethodDef(TexCoord1sv),
MethodDef(TexCoord2d),
MethodDef(TexCoord2dv),
MethodDef(TexCoord2f),
MethodDef(TexCoord2fv),
MethodDef(TexCoord2i),
MethodDef(TexCoord2iv),
MethodDef(TexCoord2s),
MethodDef(TexCoord2sv),
MethodDef(TexCoord3d),
MethodDef(TexCoord3dv),
MethodDef(TexCoord3f),
MethodDef(TexCoord3fv),
MethodDef(TexCoord3i),
MethodDef(TexCoord3iv),
MethodDef(TexCoord3s),
MethodDef(TexCoord3sv),
MethodDef(TexCoord4d),
MethodDef(TexCoord4dv),
MethodDef(TexCoord4f),
MethodDef(TexCoord4fv),
MethodDef(TexCoord4i),
MethodDef(TexCoord4iv),
MethodDef(TexCoord4s),
MethodDef(TexCoord4sv),
MethodDef(TexEnvf),
MethodDef(TexEnvfv),
MethodDef(TexEnvi),
MethodDef(TexEnviv),
MethodDef(TexGend),
MethodDef(TexGendv),
MethodDef(TexGenf),
MethodDef(TexGenfv),
MethodDef(TexGeni),
MethodDef(TexGeniv),
MethodDef(TexImage1D),
MethodDef(TexImage2D),
MethodDef(TexParameterf),
MethodDef(TexParameterfv),
MethodDef(TexParameteri),
MethodDef(TexParameteriv),
MethodDef(Translated),
MethodDef(Translatef),
MethodDef(Vertex2d),
MethodDef(Vertex2dv),
MethodDef(Vertex2f),
MethodDef(Vertex2fv),
MethodDef(Vertex2i),
MethodDef(Vertex2iv),
MethodDef(Vertex2s),
MethodDef(Vertex2sv),
MethodDef(Vertex3d),
MethodDef(Vertex3dv),
MethodDef(Vertex3f),
MethodDef(Vertex3fv),
MethodDef(Vertex3i),
MethodDef(Vertex3iv),
MethodDef(Vertex3s),
MethodDef(Vertex3sv),
MethodDef(Vertex4d),
MethodDef(Vertex4dv),
MethodDef(Vertex4f),
MethodDef(Vertex4fv),
MethodDef(Vertex4i),
MethodDef(Vertex4iv),
MethodDef(Vertex4s),
MethodDef(Vertex4sv),
MethodDef(Viewport),
/* #endif */