soc-2008-mxcurioni: renamed all Freestyle API related files with 'BPy_' prefix to avoid library name collision.

Included MediumType's initialization at proper time to avoid Blender's crash.
This commit is contained in:
Maxime Curioni
2008-07-23 07:56:08 +00:00
parent 0c494442d3
commit a9789d90ae
171 changed files with 132 additions and 113 deletions

View File

@@ -0,0 +1,31 @@
#ifndef FREESTYLE_PYTHON_CURVEPOINT_H
#define FREESTYLE_PYTHON_CURVEPOINT_H
#include "../BPy_Interface0D.h"
#include "../../stroke/Curve.h"
#ifdef __cplusplus
extern "C" {
#endif
///////////////////////////////////////////////////////////////////////////////////////////
#include <Python.h>
extern PyTypeObject CurvePoint_Type;
#define BPy_CurvePoint_Check(v) (( (PyObject *) v)->ob_type == &CurvePoint_Type)
/*---------------------------Python BPy_CurvePoint structure definition----------*/
typedef struct {
BPy_Interface0D py_if0D;
CurvePoint *cp;
} BPy_CurvePoint;
///////////////////////////////////////////////////////////////////////////////////////////
#ifdef __cplusplus
}
#endif
#endif /* FREESTYLE_PYTHON_CURVEPOINT_H */