python/src/module.cpp
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #include "bindings.h" | ||
| 2 | |||
| 3 | 220 | NB_MODULE(_terraingen, m) { | |
| 4 | 44 | m.doc() = "TerrainGen: scientific terrain generation for planetary surfaces."; | |
| 5 | // Python subclasses (distributions, profiles, layers) held by C++ objects in a script's | ||
| 6 | // globals are still referenced when the interpreter finalizes, which nanobind would report as | ||
| 7 | // leaks on every exit; the process frees them. | ||
| 8 | 44 | nanobind::set_leak_warnings(false); | |
| 9 | using namespace terraingen::python; | ||
| 10 | 44 | BindUtil(m); | |
| 11 | 44 | BindRaster(m); | |
| 12 | 44 | BindNoise(m); | |
| 13 | 44 | BindRandom(m); | |
| 14 | 44 | BindGpu(m); | |
| 15 | 44 | BindMesh(m); | |
| 16 | 44 | BindDistribution(m); | |
| 17 | 44 | BindCraterModels(m); | |
| 18 | 44 | BindSources(m); | |
| 19 | 44 | BindLayers(m); | |
| 20 | 44 | BindCraters(m); | |
| 21 | 44 | BindBoulders(m); | |
| 22 | 44 | BindAlbedo(m); | |
| 23 | 44 | BindMaterials(m); | |
| 24 | 44 | BindPipeline(m); | |
| 25 | 44 | } | |
| 26 |