Changeset View
Changeset View
Standalone View
Standalone View
source/blender/python/mathutils/mathutils.h
| Show All 11 Lines | |||||
| struct DynStr; | struct DynStr; | ||||
| extern char BaseMathObject_is_wrapped_doc[]; | extern char BaseMathObject_is_wrapped_doc[]; | ||||
| extern char BaseMathObject_is_frozen_doc[]; | extern char BaseMathObject_is_frozen_doc[]; | ||||
| extern char BaseMathObject_is_valid_doc[]; | extern char BaseMathObject_is_valid_doc[]; | ||||
| extern char BaseMathObject_owner_doc[]; | extern char BaseMathObject_owner_doc[]; | ||||
| PyObject *_BaseMathObject_new_impl(PyTypeObject *root_type, PyTypeObject *base_type); | |||||
| #define BASE_MATH_NEW(struct_name, root_type, base_type) \ | #define BASE_MATH_NEW(struct_name, root_type, base_type) \ | ||||
| ((struct_name *)((base_type ? (base_type)->tp_alloc(base_type, 0) : \ | ((struct_name *)_BaseMathObject_new_impl(&root_type, base_type)) | ||||
| _PyObject_GC_New(&(root_type))))) | |||||
| /** #BaseMathObject.flag */ | /** #BaseMathObject.flag */ | ||||
| enum { | enum { | ||||
| /** | /** | ||||
| * Do not own the memory used in this vector, | * Do not own the memory used in this vector, | ||||
| * \note This is error prone if the memory may be freed while this vector is in use. | * \note This is error prone if the memory may be freed while this vector is in use. | ||||
| * Prefer using callbacks where possible, see: #Mathutils_RegisterCallback | * Prefer using callbacks where possible, see: #Mathutils_RegisterCallback | ||||
| */ | */ | ||||
| Show All 40 Lines | |||||
| PyObject *BaseMathObject_is_valid_get(BaseMathObject *self, void *); | PyObject *BaseMathObject_is_valid_get(BaseMathObject *self, void *); | ||||
| extern char BaseMathObject_freeze_doc[]; | extern char BaseMathObject_freeze_doc[]; | ||||
| PyObject *BaseMathObject_freeze(BaseMathObject *self); | PyObject *BaseMathObject_freeze(BaseMathObject *self); | ||||
| int BaseMathObject_traverse(BaseMathObject *self, visitproc visit, void *arg); | int BaseMathObject_traverse(BaseMathObject *self, visitproc visit, void *arg); | ||||
| int BaseMathObject_clear(BaseMathObject *self); | int BaseMathObject_clear(BaseMathObject *self); | ||||
| void BaseMathObject_dealloc(BaseMathObject *self); | void BaseMathObject_dealloc(BaseMathObject *self); | ||||
| int BaseMathObject_is_gc(BaseMathObject *self); | |||||
| PyMODINIT_FUNC PyInit_mathutils(void); | PyMODINIT_FUNC PyInit_mathutils(void); | ||||
| int EXPP_FloatsAreEqual(float A, float B, int maxDiff); | int EXPP_FloatsAreEqual(float A, float B, int maxDiff); | ||||
| int EXPP_VectorsAreEqual(const float *vecA, const float *vecB, int size, int floatSteps); | int EXPP_VectorsAreEqual(const float *vecA, const float *vecB, int size, int floatSteps); | ||||
| typedef struct Mathutils_Callback Mathutils_Callback; | typedef struct Mathutils_Callback Mathutils_Callback; | ||||
| ▲ Show 20 Lines • Show All 142 Lines • Show Last 20 Lines | |||||