Python support for BBM. More...
Go to the source code of this file.
Macros | |
| #define | BBM_EXPORT_BSDFMODEL(bsdfmodel) bbm::python::def_bsdf<bsdfmodel<bbm::BBM_CONFIG>>(m); |
Python support for BBM.
| bsdfmodel | = the class name of the BSDF model to export. |
Assumes that:
The macro will then create a default trampoline function that constructs a bsdf_ptr based on the parameters passed via python (args and kwargs). The python args/kwargs are compared to the attributes and corresponding attributes are set.
To compile the bsdf models in a python module, a py::module& named 'm' needs to be defined. This is the module the bsdf model is exported to.
If met, simply re-include this file and the bsdfmodels you want to include. See bbm_python.cpp for an example.
| #define BBM_EXPORT_BSDFMODEL | ( | bsdfmodel | ) | bbm::python::def_bsdf<bsdfmodel<bbm::BBM_CONFIG>>(m); |