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

Go to the source code of this file.

Macros

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

Functions

static PyObject * make_opensubdiv_info (void)
 
PyObject * BPY_app_opensubdiv_struct (void)
 

Variables

static PyTypeObject BlenderAppOpenSubdivType
 
static PyStructSequence_Field app_opensubdiv_info_fields []
 
static PyStructSequence_Desc app_opensubdiv_info_desc
 

Macro Definition Documentation

◆ SetObjItem

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

◆ SetStrItem

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

Function Documentation

◆ BPY_app_opensubdiv_struct()

PyObject* BPY_app_opensubdiv_struct ( void  )

◆ make_opensubdiv_info()

static PyObject* make_opensubdiv_info ( void  )
static

Variable Documentation

◆ app_opensubdiv_info_desc

PyStructSequence_Desc app_opensubdiv_info_desc
static
Initial value:
= {
"bpy.app.opensubdiv",
"This module contains information about OpenSubdiv blender is linked against",
}
#define ARRAY_SIZE(arr)
static PyStructSequence_Field app_opensubdiv_info_fields[]

Definition at line 27 of file bpy_app_opensubdiv.c.

Referenced by BPY_app_opensubdiv_struct().

◆ app_opensubdiv_info_fields

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

Definition at line 20 of file bpy_app_opensubdiv.c.

◆ BlenderAppOpenSubdivType

PyTypeObject BlenderAppOpenSubdivType
static

Definition at line 18 of file bpy_app_opensubdiv.c.

Referenced by BPY_app_opensubdiv_struct(), and make_opensubdiv_info().