On Sat, 2004-03-20 at 06:51, Ed Halley wrote: > I have found that glRenderMode() and glPickMatrix() are not available, > and I see no glGetInteger*() variations, so the OpenGL "picking" mode > (i.e., mouse hit testing) is impossible to operate. This would > correspond to portions of NeHe demo 32, and is a show-stopper for my > application.
Here's a patch to enable the first two. It's not great, but it's a start. > Lastly, the SDL_perl.spec file should be updated to the new > Module::Build procedure, so that we can offer .src.rpm files for cleaner > end-user installation and updating. I'm not an RPM guy, but I took a whack at it. Can you try the version in the latest snapshot? -- c
Index: typemap =================================================================== --- typemap (revision 242) +++ typemap (working copy) @@ -54,6 +54,7 @@ GLUnurbsObj * T_PTR GLUtesselator * T_PTR GLuint T_UV +GLint * T_PTR float * T_PTR float T_NV GLfloat T_NV Index: src/OpenGL.xs =================================================================== --- src/OpenGL.xs (revision 407) +++ src/OpenGL.xs (working copy) @@ -1779,8 +1779,15 @@ RETVAL = glGetError(); OUTPUT: RETVAL - +GLint +RenderMode ( mode ) + GLenum mode + CODE: + RETVAL = glRenderMode( mode ); + OUTPUT: + RETVAL + #endif #ifdef HAVE_GLU @@ -1809,6 +1816,16 @@ gluPerspective(fovy,aspect,myNear,myFar); void +PickMatrix ( x, y, delX, delY, viewport ) + double x + double y + double delX + double delY + GLint* viewport + CODE: + gluPickMatrix(x,y,delX,delY,viewport); + +void Ortho2D ( left, right, bottom, top ) double left double right
