windows compilation fix

metadata
Wenzel Jakob 2014-07-28 02:20:10 -07:00
parent c43c5e409f
commit d00b238f93
1 changed files with 5 additions and 1 deletions

View File

@ -53,6 +53,10 @@ static AABB shapekdtree_getAABB(const ShapeKDTree *kdtree) {
return kdtree->getAABB();
}
static bool shapekdtree_isBuilt(const ShapeKDTree *kdtree) {
return kdtree->isBuilt();
}
static bp::object shapekdtree_rayIntersect(const ShapeKDTree *kdtree, const Ray &ray) {
Intersection its;
@ -330,7 +334,7 @@ void export_render() {
.def("getPrimitiveCount", &ShapeKDTree::getPrimitiveCount)
.def("addShape", &ShapeKDTree::addShape)
.def("build", &ShapeKDTree::build)
.def("isBuilt", &ShapeKDTree::isBuilt)
.def("isBuilt", &shapekdtree_isBuilt)
.def("getAABB", &shapekdtree_getAABB, BP_RETURN_VALUE)
.def("getShapes", &shapekdtree_getShapes)
.def("rayIntersect", &shapekdtree_rayIntersect);