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