On 6/1/06, Lakin Wecker <lak...@gm...> wrote:
> Well, this approach solved it for me for ColourValue, Vector3 and a
> few other classes, but I am now getting an error regarding an Enum:
>
> File "CameraTrackingDemo.py", line 2, in ?
>
> import Ogre as ogre
>
> TypeError: No to_python (by-value) converter found for C++ type:
> Ogre::HardwareBuffer::Usage
>
> I first tried just setting:
> ogre_ns.class_ ('HardwareBuffer').enumerations
> ('Usage').always_expose_using_scope = True
>
> Then I tried:
>
> ogre_ns.class_ ('HardwareBuffer').enumerations ('Usage').exclude()
>
> Neither seem to work and I still get the error message.
>
> The situation is as follows:
>
> class Ogre::HardwareBuffer {
> public:
> enum Usage { ... };
> };
>
> HardwareBuffer is excluded for the time being until I get void *
> wrapped appropriately, but there are other methods on other classes
> that use Ogre::HardwareBuffer::Usage ...
>
> I figure that excluding the HardwareBuffer class should also exclude
> the HardwareBuffer::Usage enumeration. Regardless, I've tried
> excluding it specifically, and still run into that problem ...
>
> As a workaround, I plan on excluding each individual method that uses Usage ...
Wait a minute, you can do something else
HB = mb.class_( 'HardwareBuffer' )
HB.include()
HB.decls().exclude()
HB.enum( 'Usage' ).include()
> Lakin
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
|