13 #include "../generic/py_capi_utils.h"
22 {
"supported",
"Boolean, True when Blender is built with OpenVDB support"},
23 {
"version",
"The OpenVDB version as a tuple of 3 numbers"},
24 {
"version_string",
"The OpenVDB version formatted as a string"},
30 "This module contains information about OpenVDB blender is linked against",
37 PyObject *openvdb_info;
45 if (openvdb_info ==
NULL) {
50 # define SetStrItem(str) PyStructSequence_SET_ITEM(openvdb_info, pos++, PyUnicode_FromString(str))
53 #define SetObjItem(obj) PyStructSequence_SET_ITEM(openvdb_info, pos++, obj)
59 PyC_Tuple_Pack_I32(curversion >> 24, (curversion >> 16) % 256, (curversion >> 8) % 256));
61 "%2d, %2d, %2d", curversion >> 24, (curversion >> 16) % 256, (curversion >> 8) % 256));
69 Py_DECREF(openvdb_info);
static PyStructSequence_Desc app_openvdb_info_desc
static PyObject * make_openvdb_info(void)
static PyTypeObject BlenderAppOVDBType
PyObject * BPY_app_openvdb_struct(void)
static PyStructSequence_Field app_openvdb_info_fields[]
int OpenVDB_getVersionHex()
#define PyC_Tuple_Pack_I32(...)