From: Mads I. <mad...@gm...> - 2013-06-11 06:53:16
|
Hi, I have a C++ library, where certain class methods return GLfloat, GLubyte, GLenum, etc. When I try to access this from the Python side I get <Swig Object of type 'GLenum *' at 0x311a690> Somehow these should also be wrapped in such a way that these values are converted to floats, ints, etc. I have tried looking at typemaps, but find them very hard to understand. Also they seem focused on the function input signature rather than the return value (I'm probably wrong). Wrapping the entire <GL/gl.h> header would be overkill. Any suggestions? Best regards, Mads -- +-----------------------------------------------------+ | Mads Ipsen | +----------------------+------------------------------+ | Gåsebæksvej 7, 4. tv | | | DK-2500 Valby | phone: +45-29716388 | | Denmark | email: mad...@gm... | +----------------------+------------------------------+ |