Changeset View
Changeset View
Standalone View
Standalone View
source/blender/freestyle/intern/python/BPy_ViewMap.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; | |||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| extern "C" { | extern "C" { | ||||
| #endif | #endif | ||||
| /////////////////////////////////////////////////////////////////////////////////////////// | /////////////////////////////////////////////////////////////////////////////////////////// | ||||
| extern PyTypeObject ViewMap_Type; | extern PyTypeObject ViewMap_Type; | ||||
| #define BPy_ViewMap_Check(v) (PyObject_IsInstance((PyObject *)v, (PyObject *)&ViewMap_Type)) | #define BPy_ViewMap_Check(v) (PyObject_IsInstance((PyObject *)v, (PyObject *)&ViewMap_Type)) | ||||
| /*---------------------------Python BPy_ViewMap structure definition----------*/ | /*---------------------------Python BPy_ViewMap structure definition----------*/ | ||||
| typedef struct { | typedef struct { | ||||
| PyObject_HEAD ViewMap *vm; | PyObject_HEAD Freestyle::ViewMap *vm; | ||||
| } BPy_ViewMap; | } BPy_ViewMap; | ||||
| /*---------------------------Python BPy_ViewMap visible prototypes-----------*/ | /*---------------------------Python BPy_ViewMap visible prototypes-----------*/ | ||||
| int ViewMap_Init(PyObject *module); | int ViewMap_Init(PyObject *module); | ||||
| /////////////////////////////////////////////////////////////////////////////////////////// | /////////////////////////////////////////////////////////////////////////////////////////// | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||