[SOLVED] My Tutorial 7 does´nt work well

texugo

10-12-2008 19:15:15

Hi everyone

I´m in basic tutorial 7 -CEGUI but something goes wrong with the code:

viewport = texture.addViewport(rttCamera)
viewport.setOverlaysEnabled(False)
viewport.setClearEveryFrame(True)
viewport.setBackgroundColour(ogre.ColourValue.Black)

when i run, python says:

viewport.setBackgroundColour(ogre.ColourValue.Black)
Boost.Python.ArgumentError: Python argument types in
Viewport.setBackgroundColour(Viewport, property)
did not match C++ signature:
setBackgroundColour(class Ogre::Viewport {lvalue}, class Ogre::ColourValue colour)

Some idea?

thanks

andy

11-12-2008 00:32:21

You needviewport.setBackgroundColour(ogre.ColourValue().Black)
Regards
Andy

texugo

11-12-2008 16:05:42

GREAT!!

:D :D :D

Thanks Andy