Changeset View
Changeset View
Standalone View
Standalone View
source/blender/python/gpu/gpu_py_shader.h
- This file was copied from source/blender/python/gpu/gpu_py_types.h.
| Show All 12 Lines | |||||
| * | * | ||||
| * You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | ||||
| * along with this program; if not, write to the Free Software Foundation, | * along with this program; if not, write to the Free Software Foundation, | ||||
| * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||||
| * | * | ||||
| * ***** END GPL LICENSE BLOCK ***** | * ***** END GPL LICENSE BLOCK ***** | ||||
| */ | */ | ||||
| /** \file blender/python/gpu/gpu_py_types.h | /** \file blender/python/gpu/gpu_py_shader.h | ||||
| * \ingroup bpygpu | * \ingroup bpygpu | ||||
| */ | */ | ||||
| #ifndef __GPU_PY_TYPES_H__ | #ifndef __GPU_PY_SHADER_H__ | ||||
| #define __GPU_PY_TYPES_H__ | #define __GPU_PY_SHADER_H__ | ||||
| #include "gpu_py_vertex_format.h" | extern PyTypeObject BPyGPUShader_Type; | ||||
| #include "gpu_py_vertex_buffer.h" | |||||
| #include "gpu_py_batch.h" | |||||
| #include "gpu_py_offscreen.h" | |||||
| PyObject *BPyInit_gpu_types(void); | #define BPyGPUShader_Check(v) (Py_TYPE(v) == &BPyGPUShader_Type) | ||||
| #endif /* __GPU_PY_TYPES_H__ */ | typedef struct BPyGPUShader { | ||||
| PyObject_VAR_HEAD | |||||
| struct GPUShader *shader; | |||||
| } BPyGPUShader; | |||||
| PyObject *BPyGPUShader_CreatePyObject(struct GPUShader *shader); | |||||
| PyObject *BPyInit_gpu_shader(void); | |||||
| PyObject *BPyInit_gpu_shader_builtin(void); | |||||
| #endif /* __GPU_PY_SHADER_H__ */ | |||||