Problem with _render function

DenisKoronchik

23-05-2009 22:51:29

How to resolve it?
Boost.Python.ArgumentError: Python argument types in
RenderSystem._render(RenderSystem, RenderSystem, Boost.Python.class)
did not match C++ signature:
_render(struct RenderSystem_wrapper {lvalue}, class Ogre::RenderOperation op)
_render(class Ogre::RenderSystem {lvalue}, class Ogre::RenderOperation op)

team23

24-05-2009 17:28:38

That is basically telling you that you aren't sending it the parameters it expects.

You're passing it:
RenderSystem._render(RenderSystem, RenderSystem, Boost.Python.class)

It wants:
_render(class Ogre::RenderSystem {lvalue}, class Ogre::RenderOperation op)

So your call should look something like this:


#Blank initialize, this probably won't work but you get the idea
renderSys = ogre.RenderSystem()
renderOp = ogre.RenderOperation()

#Calling it shold just contain the RenderOperation, the RenderSystem is basically your self variable, it will be passed automatically
renderSys._render(renderOp)