libpython: bindings for PerspectiveCamera
parent
abce85e3d3
commit
209a19967b
|
@ -507,6 +507,7 @@ bp::object cast(ConfigurableObject *obj) {
|
|||
TryCast(Medium);
|
||||
TryCast(VolumeDataSource);
|
||||
TryCast(Film);
|
||||
TryCast(PerspectiveCamera);
|
||||
TryCast(ProjectiveCamera);
|
||||
TryCast(Sensor);
|
||||
TryCast(Emitter);
|
||||
|
@ -1265,6 +1266,7 @@ void export_core() {
|
|||
BP_CLASS(Bitmap, Object, (bp::init<Bitmap::EPixelFormat, Bitmap::EComponentFormat, const Vector2i &>()))
|
||||
.def(bp::init<Bitmap::EPixelFormat, Bitmap::EComponentFormat, const Vector2i &, int>())
|
||||
.def(bp::init<Bitmap::EFileFormat, Stream *>())
|
||||
.def(bp::init<Bitmap::EFileFormat, Stream *, std::string>())
|
||||
.def("getPixelFormat", &Bitmap::getPixelFormat)
|
||||
.def("getComponentFormat", &Bitmap::getComponentFormat)
|
||||
.def("getSize", &Bitmap::getSize, BP_RETURN_VALUE)
|
||||
|
|
|
@ -626,6 +626,14 @@ void export_render() {
|
|||
.def("setFarClip", &ProjectiveCamera::setFarClip)
|
||||
.def("setFocusDistance", &ProjectiveCamera::setFocusDistance);
|
||||
|
||||
BP_CLASS(PerspectiveCamera, ProjectiveCamera, bp::no_init)
|
||||
.def("getXFov", &PerspectiveCamera::getXFov)
|
||||
.def("setXFov", &PerspectiveCamera::setXFov)
|
||||
.def("getYFov", &PerspectiveCamera::getYFov)
|
||||
.def("setYFov", &PerspectiveCamera::setYFov)
|
||||
.def("getDiagonalFov", &PerspectiveCamera::getDiagonalFov)
|
||||
.def("setDiagonalFov", &PerspectiveCamera::setDiagonalFov);
|
||||
|
||||
BP_CLASS(Integrator, ConfigurableObject, bp::no_init)
|
||||
.def("preprocess", &Integrator::preprocess)
|
||||
.def("render", &Integrator::render)
|
||||
|
|
Loading…
Reference in New Issue