Changeset View
Changeset View
Standalone View
Standalone View
source/blender/freestyle/intern/python/BPy_StrokeShader.h
| Show All 20 Lines | |||||
| #pragma once | #pragma once | ||||
| extern "C" { | extern "C" { | ||||
| #include <Python.h> | #include <Python.h> | ||||
| } | } | ||||
| #include "../system/FreestyleConfig.h" | #include "../system/FreestyleConfig.h" | ||||
| using namespace std; | |||||
| #include "../stroke/StrokeShader.h" | #include "../stroke/StrokeShader.h" | ||||
| using namespace Freestyle; | |||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| extern "C" { | extern "C" { | ||||
| #endif | #endif | ||||
| /////////////////////////////////////////////////////////////////////////////////////////// | /////////////////////////////////////////////////////////////////////////////////////////// | ||||
| extern PyTypeObject StrokeShader_Type; | extern PyTypeObject StrokeShader_Type; | ||||
| #define BPy_StrokeShader_Check(v) \ | #define BPy_StrokeShader_Check(v) \ | ||||
| (PyObject_IsInstance((PyObject *)v, (PyObject *)&StrokeShader_Type)) | (PyObject_IsInstance((PyObject *)v, (PyObject *)&StrokeShader_Type)) | ||||
| /*---------------------------Python BPy_StrokeShader structure definition----------*/ | /*---------------------------Python BPy_StrokeShader structure definition----------*/ | ||||
| typedef struct { | typedef struct { | ||||
| PyObject_HEAD StrokeShader *ss; | PyObject_HEAD Freestyle::StrokeShader *ss; | ||||
| } BPy_StrokeShader; | } BPy_StrokeShader; | ||||
| /*---------------------------Python BPy_StrokeShader visible prototypes-----------*/ | /*---------------------------Python BPy_StrokeShader visible prototypes-----------*/ | ||||
| int StrokeShader_Init(PyObject *module); | int StrokeShader_Init(PyObject *module); | ||||
| /////////////////////////////////////////////////////////////////////////////////////////// | /////////////////////////////////////////////////////////////////////////////////////////// | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||