Changeset View
Changeset View
Standalone View
Standalone View
source/blender/freestyle/intern/python/BPy_SShape.h
| Show All 20 Lines | |||||
| #pragma once | #pragma once | ||||
| extern "C" { | extern "C" { | ||||
| #include <Python.h> | #include <Python.h> | ||||
| } | } | ||||
| #include "../view_map/Silhouette.h" | #include "../view_map/Silhouette.h" | ||||
| using namespace Freestyle; | |||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| extern "C" { | extern "C" { | ||||
| #endif | #endif | ||||
| /////////////////////////////////////////////////////////////////////////////////////////// | /////////////////////////////////////////////////////////////////////////////////////////// | ||||
| extern PyTypeObject SShape_Type; | extern PyTypeObject SShape_Type; | ||||
| #define BPy_SShape_Check(v) (PyObject_IsInstance((PyObject *)v, (PyObject *)&SShape_Type)) | #define BPy_SShape_Check(v) (PyObject_IsInstance((PyObject *)v, (PyObject *)&SShape_Type)) | ||||
| /*---------------------------Python BPy_SShape structure definition----------*/ | /*---------------------------Python BPy_SShape structure definition----------*/ | ||||
| typedef struct { | typedef struct { | ||||
| PyObject_HEAD SShape *ss; | PyObject_HEAD Freestyle::SShape *ss; | ||||
| bool borrowed; /* true if *ss is a borrowed object */ | bool borrowed; /* true if *ss is a borrowed object */ | ||||
| } BPy_SShape; | } BPy_SShape; | ||||
| /*---------------------------Python BPy_SShape visible prototypes-----------*/ | /*---------------------------Python BPy_SShape visible prototypes-----------*/ | ||||
| int SShape_Init(PyObject *module); | int SShape_Init(PyObject *module); | ||||
| /////////////////////////////////////////////////////////////////////////////////////////// | /////////////////////////////////////////////////////////////////////////////////////////// | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||