Cython似乎没有意识到,sf::RenderTarget.clear()
方法可以用不同的参数调用,并且只允许调用.pxd中最后声明的变量。在
SFML的头文件(source):
class RenderTarget {
void clear(const Color& color = Color(0, 0, 0, 255));
}
我的Cython.pxd:
^{pr2}$我的Cython包装:
^{3}$编译错误:Call with wrong number of arguments (expected 1, got 0)
所以我只能调用whe .clear(color)
变量,而不能调用带有默认参数.clear()
的变量。我做错什么了?在
我的实现试图遵循explained here,但是我不能让它工作。在
我已经为类似情况下的方法提供了别名(C names)。在这种情况下
相关问题 更多 >
编程相关推荐