Re: texture_compression weirdness was Re: [PyOpenGL-Users] unable to build PyOpe
Brought to you by:
mcfletch
From: Scott N. <scu...@ho...> - 2003-02-11 01:33:43
|
Rene, Below is the three lines I commented out to get PyOpenGl 2.0.1.02 to build. After seeing Thomas's e-mail I went back to the wrapper code and looked at interface/GL/ARB/texture_compression.i I noticed that for the glCompressedTexSubImage* fuctions the declaration in the wrapper did not match the headers in glext.h. Although I have limited experience with swig, shouldn't the declarations match? Maybe I will try and change the wrapper in my version and see if I can get it to compile or not. # 3 lines I commented out in GL/glext.h extern void APIENTRY glCompressedTexSubImage3DARB (GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GL sizei, const GLvoid *); extern void APIENTRY glCompressedTexSubImage2DARB (GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLsizei, const GLv oid *); extern void APIENTRY glCompressedTexSubImage1DARB (GLenum, GLint, GLint, GLsizei, GLenum, GLsizei, const GLvoid *); ------------------------------------------------------------------- # Corresponding definitions from interface/GL/ARB/texture_compression.i DECLARE_VOID_EXT(glCompressedTexSubImage3DARB, (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLe num internalformat,\ GLsizei width, GLsizei height, GLsizei depth, GLint border,\ GLsizei imageSize, const void *data),\ (target, level, xoffset, yoffset, zoffset, internalformat, width, height, depth, border, imageSize, data)) DECLARE_VOID_EXT(glCompressedTexSubImage2DARB, (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLenum internalformat,\ GLsizei width, GLsizei height, GLint border,\ GLsizei imageSize, const void *data),\ (target, level, xoffset, yoffset, internalformat, width, height, border, imageSize, data)) DECLARE_VOID_EXT(glCompressedTexSubImage1DARB, (GLenum target, GLint level, GLint xoffset, GLenum internalformat,\ GLsizei width, GLint border,\ GLsizei imageSize, const void *data),\ (target, level, xoffset, internalformat, width, border, imageSize, data)) Let me know if you find out anything. Thanks, Scott _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 |