Blender
V3.3
|
Go to the source code of this file.
Classes | |
struct | ColorObject |
Macros | |
#define | ColorObject_Check(v) PyObject_TypeCheck((v), &color_Type) |
#define | ColorObject_CheckExact(v) (Py_TYPE(v) == &color_Type) |
Functions | |
PyObject * | Color_CreatePyObject (const float col[3], PyTypeObject *base_type) ATTR_WARN_UNUSED_RESULT |
PyObject * | Color_CreatePyObject_wrap (float col[3], PyTypeObject *base_type) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1) |
PyObject * | Color_CreatePyObject_cb (PyObject *cb_user, unsigned char cb_type, unsigned char cb_subtype) ATTR_WARN_UNUSED_RESULT |
Variables | |
PyTypeObject | color_Type |
#define ColorObject_Check | ( | v | ) | PyObject_TypeCheck((v), &color_Type) |
Definition at line 10 of file mathutils_Color.h.
#define ColorObject_CheckExact | ( | v | ) | (Py_TYPE(v) == &color_Type) |
Definition at line 11 of file mathutils_Color.h.
PyObject* Color_CreatePyObject | ( | const float | col[3], |
PyTypeObject * | base_type | ||
) |
Definition at line 1165 of file mathutils_Color.c.
References BASE_MATH_FLAG_DEFAULT, BASE_MATH_NEW, col, COLOR_SIZE, color_Type, copy_v3_v3(), NULL, self, UNLIKELY, and zero_v3().
Referenced by Color_add(), Color_copy(), Color_CreatePyObject_cb(), Color_from_aces_to_scene_linear(), Color_from_rec709_linear_to_scene_linear(), Color_from_scene_linear_to_aces(), Color_from_scene_linear_to_rec709_linear(), Color_from_scene_linear_to_srgb(), Color_from_scene_linear_to_xyz_d65(), Color_from_srgb_to_scene_linear(), Color_from_xyz_d65_to_scene_linear(), color_mul_float(), Color_neg(), Color_new(), Color_sub(), and pyrna_math_object_from_array().
PyObject* Color_CreatePyObject_cb | ( | PyObject * | cb_user, |
unsigned char | cb_type, | ||
unsigned char | cb_subtype | ||
) |
Definition at line 1221 of file mathutils_Color.c.
References Color_CreatePyObject(), and NULL.
Referenced by pyrna_math_object_from_array(), and StrokeAttribute_color_get().
PyObject* Color_CreatePyObject_wrap | ( | float | col[3], |
PyTypeObject * | base_type | ||
) |
Definition at line 1203 of file mathutils_Color.c.
References BASE_MATH_FLAG_DEFAULT, BASE_MATH_FLAG_IS_WRAP, BASE_MATH_NEW, col, color_Type, and NULL.
|
extern |
Definition at line 1107 of file mathutils_Color.c.
Referenced by Color_CreatePyObject(), Color_CreatePyObject_wrap(), and PyInit_mathutils().