* The API syntax of StrokeVertex and StrokeAttribute was updated by means of getter/setter properties instead of class methods. Python style modules (including the Parameter Editor implementation) were updated accordingly. * Code clean-up was done for a few Python style modules, mostly by removing duplicated definitions of stroke shaders and fixing indentation.
37 lines
1018 B
C++
37 lines
1018 B
C++
#ifndef FREESTYLE_PYTHON_STROKEATTRIBUTE_H
|
|
#define FREESTYLE_PYTHON_STROKEATTRIBUTE_H
|
|
|
|
#include <Python.h>
|
|
|
|
#include "../stroke/Stroke.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
extern PyTypeObject StrokeAttribute_Type;
|
|
|
|
#define BPy_StrokeAttribute_Check(v) ( PyObject_IsInstance( (PyObject *) v, (PyObject *) &StrokeAttribute_Type) )
|
|
|
|
/*---------------------------Python BPy_StrokeAttribute structure definition----------*/
|
|
typedef struct {
|
|
PyObject_HEAD
|
|
StrokeAttribute *sa;
|
|
int borrowed; /* non-zero if *sa is a borrowed reference */
|
|
} BPy_StrokeAttribute;
|
|
|
|
/*---------------------------Python BPy_StrokeAttribute visible prototypes-----------*/
|
|
|
|
int StrokeAttribute_Init( PyObject *module );
|
|
void StrokeAttribute_mathutils_register_callback();
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* FREESTYLE_PYTHON_STROKEATTRIBUTE_H */
|