[wxPython] wxPython glcanvas build on SGI a no-go

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[wxPython] wxPython glcanvas build on SGI a no-go

Randall Hopper-2
  The identifier "glColorTableEXT" is undefined.
  The identifier "glGetColorTableEXT" is undefined.
  The identifier "GL_COLOR_INDEX12_EXT" is undefined.
  The identifier "GL_COLOR_INDEX16_EXT" is undefined.
  The identifier "GL_COLOR_INDEX1_EXT" is undefined.
  The identifier "GL_COLOR_INDEX2_EXT" is undefined.
  The identifier "GL_COLOR_INDEX4_EXT" is undefined.
  The identifier "GL_COLOR_INDEX8_EXT" is undefined.
  The identifier "GL_COLOR_TABLE_ALPHA_SIZE_EXT" is undefined.
  The identifier "GL_COLOR_TABLE_BLUE_SIZE_EXT" is undefined.
  The identifier "GL_COLOR_TABLE_FORMAT_EXT" is undefined.
  The identifier "GL_COLOR_TABLE_GREEN_SIZE_EXT" is undefined.
  The identifier "GL_COLOR_TABLE_INTENSITY_SIZE_EXT" is undefined.
  The identifier "GL_COLOR_TABLE_LUMINANCE_SIZE_EXT" is undefined.
  The identifier "GL_COLOR_TABLE_RED_SIZE_EXT" is undefined.
  The identifier "GL_COLOR_TABLE_WIDTH_EXT" is undefined.
  The identifier "GL_EXT_paletted_texture" is undefined.

I'm guessing these are wgl'isms?  Do we need:

  #ifdef WIN32
        /* if this is a Windows operating system, get the function pointer*/
    glColorTable = (PFNGLCOLORTABLEEXTPROC)
                                        wglGetProcAddress("glColorTableEXT");
        if (glColorTable == NULL) {
                printf("glColorTableEXT not found\n");
        }
  #endif

etc.

     SGI IRIX 6.5.6f.  No glColorTableEXT to be found (for example).  But
there is a glColorTable().  The latter is documented in the Red book BTW
(3rd ed, OpenGL 1.2).

Randall

build.OUT (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [wxPython] wxPython glcanvas build on SGI a no-go

Robin Dunn
>
> wxPython glcanvas build on SGI a no-go
>

Yep, this is known.  The problem is that I just blindly made wrappers for
everything in my local copy of GL.h.  There was a set of patches sent to the
list a while back from somebody else building on SGI.

http://starship.python.net/pipermail/wxpython-users/1999-November/001131.html


A better solution though is to remove all non-wx-GL stuff from the glcanvas
module and use DA's PyOpenGL package instead.

http://starship.python.net:9673/crew/da/Code/PyOpenGL/


This is what I have done for the next release.  You can pull the new
glcanvas.i, .cpp, and .py files from CVS if you want.

--
Robin Dunn
Software Craftsman
[hidden email]
http://AllDunn.com/robin/
http://AllDunn.com/wxPython/  Check it out!




_______________________________________________
wxPython-users maillist  -  [hidden email]
http://starship.python.net/mailman/listinfo/wxpython-users