Blender  V3.3
Macros | Functions | Variables
bpy_app_openvdb.c File Reference
#include "BLI_utildefines.h"
#include <Python.h>
#include "bpy_app_openvdb.h"
#include "../generic/py_capi_utils.h"

Go to the source code of this file.

Macros

#define SetStrItem(str)   PyStructSequence_SET_ITEM(openvdb_info, pos++, PyUnicode_FromString(str))
 
#define SetObjItem(obj)   PyStructSequence_SET_ITEM(openvdb_info, pos++, obj)
 

Functions

static PyObject * make_openvdb_info (void)
 
PyObject * BPY_app_openvdb_struct (void)
 

Variables

static PyTypeObject BlenderAppOVDBType
 
static PyStructSequence_Field app_openvdb_info_fields []
 
static PyStructSequence_Desc app_openvdb_info_desc
 

Macro Definition Documentation

◆ SetObjItem

#define SetObjItem (   obj)    PyStructSequence_SET_ITEM(openvdb_info, pos++, obj)

◆ SetStrItem

#define SetStrItem (   str)    PyStructSequence_SET_ITEM(openvdb_info, pos++, PyUnicode_FromString(str))

Function Documentation

◆ BPY_app_openvdb_struct()

PyObject* BPY_app_openvdb_struct ( void  )

Definition at line 79 of file bpy_app_openvdb.c.

References app_openvdb_info_desc, BlenderAppOVDBType, make_openvdb_info(), NULL, and ret.

Referenced by make_app_info().

◆ make_openvdb_info()

static PyObject* make_openvdb_info ( void  )
static

Variable Documentation

◆ app_openvdb_info_desc

PyStructSequence_Desc app_openvdb_info_desc
static
Initial value:
= {
"bpy.app.openvdb",
"This module contains information about OpenVDB blender is linked against",
}
#define ARRAY_SIZE(arr)
static PyStructSequence_Field app_openvdb_info_fields[]

Definition at line 28 of file bpy_app_openvdb.c.

Referenced by BPY_app_openvdb_struct().

◆ app_openvdb_info_fields

PyStructSequence_Field app_openvdb_info_fields[]
static
Initial value:
= {
{"supported", "Boolean, True when Blender is built with OpenVDB support"},
{"version", "The OpenVDB version as a tuple of 3 numbers"},
{"version_string", "The OpenVDB version formatted as a string"},
{NULL},
}

Definition at line 21 of file bpy_app_openvdb.c.

◆ BlenderAppOVDBType

PyTypeObject BlenderAppOVDBType
static

Definition at line 19 of file bpy_app_openvdb.c.

Referenced by BPY_app_openvdb_struct(), and make_openvdb_info().