29 #include "../generic/py_capi_utils.h"
38 {
"supported",
"Boolean, True when Blender is built with OpenVDB support"},
39 {
"version",
"The OpenVDB version as a tuple of 3 numbers"},
40 {
"version_string",
"The OpenVDB version formatted as a string"},
46 "This module contains information about OpenVDB blender is linked against",
53 PyObject *openvdb_info;
61 if (openvdb_info ==
NULL) {
66 # define SetStrItem(str) PyStructSequence_SET_ITEM(openvdb_info, pos++, PyUnicode_FromString(str))
69 #define SetObjItem(obj) PyStructSequence_SET_ITEM(openvdb_info, pos++, obj)
75 PyC_Tuple_Pack_I32(curversion >> 24, (curversion >> 16) % 256, (curversion >> 8) % 256));
77 "%2d, %2d, %2d", curversion >> 24, (curversion >> 16) % 256, (curversion >> 8) % 256));
85 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(...)