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

Go to the source code of this file.

Macros

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

Functions

static PyObject * make_ocio_info (void)
 
PyObject * BPY_app_ocio_struct (void)
 

Variables

static PyTypeObject BlenderAppOCIOType
 
static PyStructSequence_Field app_ocio_info_fields []
 
static PyStructSequence_Desc app_ocio_info_desc
 

Macro Definition Documentation

◆ SetObjItem

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

◆ SetStrItem

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

Function Documentation

◆ BPY_app_ocio_struct()

PyObject* BPY_app_ocio_struct ( void  )

Definition at line 81 of file bpy_app_ocio.c.

References app_ocio_info_desc, BlenderAppOCIOType, make_ocio_info(), NULL, and ret.

Referenced by make_app_info().

◆ make_ocio_info()

static PyObject* make_ocio_info ( void  )
static

Variable Documentation

◆ app_ocio_info_desc

PyStructSequence_Desc app_ocio_info_desc
static
Initial value:
= {
"bpy.app.ocio",
"This module contains information about OpenColorIO blender is linked against",
}
#define ARRAY_SIZE(arr)
static PyStructSequence_Field app_ocio_info_fields[]
Definition: bpy_app_ocio.c:20

Definition at line 27 of file bpy_app_ocio.c.

Referenced by BPY_app_ocio_struct().

◆ app_ocio_info_fields

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

Definition at line 20 of file bpy_app_ocio.c.

◆ BlenderAppOCIOType

PyTypeObject BlenderAppOCIOType
static

Definition at line 18 of file bpy_app_ocio.c.

Referenced by BPY_app_ocio_struct(), and make_ocio_info().