Browse Source

python: recognize the new Trade::SceneFieldType::Bit.

No data access yet, that's waiting for the StridedBitArrayView APIs to
get exposed first.
next
Vladimír Vondruš 3 years ago
parent
commit
52d290a491
  1. 3
      src/python/magnum/trade.cpp

3
src/python/magnum/trade.cpp

@ -726,6 +726,8 @@ Containers::Triple<const char*, py::object(*)(const char*), void(*)(char*, py::h
#undef _c
#undef _cc
/** @todo handle this once StridedBitArrayView is exposed */
case Trade::SceneFieldType::Bit:
/** @todo handle these once there's something to test with */
case Trade::SceneFieldType::Half:
case Trade::SceneFieldType::Vector2h:
@ -1067,6 +1069,7 @@ void trade(py::module_& m) {
enumWithCustomValues<Trade::SceneField, Trade::Implementation::SceneFieldCustom>(sceneField);
py::enum_<Trade::SceneFieldType>{m, "SceneFieldType", "Scene field type"}
.value("BIT", Trade::SceneFieldType::Bit)
.value("FLOAT", Trade::SceneFieldType::Float)
.value("HALF", Trade::SceneFieldType::Half)
.value("DOUBLE", Trade::SceneFieldType::Double)

Loading…
Cancel
Save