Refactor: Move BPY generic headers to proper C++ ones.
NOTE: `bgl.h` was left unchanged, as it is deprecated code anyway, and its conversion to C++ does not seem immediately trivial.
This commit is contained in:
committed by
Bastien Montagne
parent
4fac7828e4
commit
c3247aa4f0
@@ -15,7 +15,7 @@
|
||||
#include "GPU_primitive.hh"
|
||||
#include "GPU_texture.hh"
|
||||
|
||||
#include "../generic/py_capi_utils.h"
|
||||
#include "../generic/py_capi_utils.hh"
|
||||
|
||||
#include "gpu_py.hh" /* own include */
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "../generic/py_capi_utils.h"
|
||||
#include "../generic/py_capi_utils.hh"
|
||||
|
||||
extern struct PyC_StringEnumItems bpygpu_primtype_items[];
|
||||
extern struct PyC_StringEnumItems bpygpu_dataformat_items[];
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
|
||||
#include "GPU_batch.hh"
|
||||
|
||||
#include "../generic/py_capi_utils.h"
|
||||
#include "../generic/python_compat.h"
|
||||
#include "../generic/py_capi_utils.hh"
|
||||
#include "../generic/python_compat.hh"
|
||||
|
||||
#include "gpu_py.hh"
|
||||
#include "gpu_py_element.hh"
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
#include "GPU_texture.hh"
|
||||
|
||||
#include "../generic/py_capi_utils.h"
|
||||
#include "../generic/py_capi_utils.hh"
|
||||
|
||||
#include "gpu_py.hh"
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include "GPU_compute.hh"
|
||||
#include "GPU_state.hh"
|
||||
|
||||
#include "../generic/python_compat.h"
|
||||
#include "../generic/python_compat.hh"
|
||||
|
||||
#include "gpu_py.hh"
|
||||
#include "gpu_py_compute.hh" /* own include */
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
||||
#include "../generic/py_capi_utils.h"
|
||||
#include "../generic/python_compat.h"
|
||||
#include "../generic/py_capi_utils.hh"
|
||||
#include "../generic/python_compat.hh"
|
||||
|
||||
#include "gpu_py.hh"
|
||||
#include "gpu_py_element.hh" /* own include */
|
||||
|
||||
@@ -18,9 +18,9 @@
|
||||
#include "GPU_framebuffer.hh"
|
||||
#include "GPU_init_exit.hh"
|
||||
|
||||
#include "../generic/py_capi_utils.h"
|
||||
#include "../generic/python_compat.h"
|
||||
#include "../generic/python_utildefines.h"
|
||||
#include "../generic/py_capi_utils.hh"
|
||||
#include "../generic/python_compat.hh"
|
||||
#include "../generic/python_utildefines.hh"
|
||||
|
||||
#include "../mathutils/mathutils.hh"
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
#include "../mathutils/mathutils.hh"
|
||||
|
||||
#include "../generic/py_capi_utils.h"
|
||||
#include "../generic/py_capi_utils.hh"
|
||||
|
||||
#define USE_GPU_PY_MATRIX_API
|
||||
#include "GPU_matrix.hh"
|
||||
|
||||
@@ -32,8 +32,8 @@
|
||||
|
||||
#include "../mathutils/mathutils.hh"
|
||||
|
||||
#include "../generic/py_capi_utils.h"
|
||||
#include "../generic/python_compat.h"
|
||||
#include "../generic/py_capi_utils.hh"
|
||||
#include "../generic/python_compat.hh"
|
||||
|
||||
#include "gpu_py.hh"
|
||||
#include "gpu_py_texture.hh"
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
#include "BLI_utildefines.h"
|
||||
|
||||
#include "../generic/py_capi_utils.h"
|
||||
#include "../generic/py_capi_utils.hh"
|
||||
|
||||
#include "GPU_select.hh"
|
||||
|
||||
|
||||
@@ -17,9 +17,9 @@
|
||||
#include "GPU_texture.hh"
|
||||
#include "GPU_uniform_buffer.hh"
|
||||
|
||||
#include "../generic/py_capi_utils.h"
|
||||
#include "../generic/python_compat.h"
|
||||
#include "../generic/python_utildefines.h"
|
||||
#include "../generic/py_capi_utils.hh"
|
||||
#include "../generic/python_compat.hh"
|
||||
#include "../generic/python_utildefines.hh"
|
||||
|
||||
#include "../mathutils/mathutils.hh"
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#pragma once
|
||||
|
||||
#ifndef __cplusplus
|
||||
# include "../generic/py_capi_utils.h"
|
||||
# include "../generic/py_capi_utils.hh"
|
||||
#endif
|
||||
|
||||
struct GPUShaderCreateInfo;
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
#include "GPU_shader.hh"
|
||||
#include "intern/gpu_shader_create_info.hh"
|
||||
|
||||
#include "../generic/py_capi_utils.h"
|
||||
#include "../generic/python_compat.h"
|
||||
#include "../generic/py_capi_utils.hh"
|
||||
#include "../generic/python_compat.hh"
|
||||
|
||||
#include "gpu_py.hh"
|
||||
#include "gpu_py_shader.hh" /* own include */
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
#include "GPU_framebuffer.hh"
|
||||
#include "GPU_state.hh"
|
||||
|
||||
#include "../generic/py_capi_utils.h"
|
||||
#include "../generic/python_utildefines.h"
|
||||
#include "../generic/py_capi_utils.hh"
|
||||
#include "../generic/python_utildefines.hh"
|
||||
|
||||
#include "gpu_py.hh"
|
||||
#include "gpu_py_framebuffer.hh"
|
||||
|
||||
@@ -22,8 +22,8 @@
|
||||
|
||||
#include "BKE_image.h"
|
||||
|
||||
#include "../generic/py_capi_utils.h"
|
||||
#include "../generic/python_compat.h"
|
||||
#include "../generic/py_capi_utils.hh"
|
||||
#include "../generic/python_compat.hh"
|
||||
|
||||
#include "gpu_py.hh"
|
||||
#include "gpu_py_buffer.hh"
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
#include "GPU_context.hh"
|
||||
#include "GPU_uniform_buffer.hh"
|
||||
|
||||
#include "../generic/python_compat.h"
|
||||
#include "../generic/python_compat.hh"
|
||||
|
||||
#include "gpu_py.hh"
|
||||
#include "gpu_py_uniformbuffer.hh" /* own include */
|
||||
|
||||
@@ -15,9 +15,9 @@
|
||||
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
||||
#include "../generic/py_capi_utils.h"
|
||||
#include "../generic/python_compat.h"
|
||||
#include "../generic/python_utildefines.h"
|
||||
#include "../generic/py_capi_utils.hh"
|
||||
#include "../generic/python_compat.hh"
|
||||
#include "../generic/python_utildefines.hh"
|
||||
|
||||
#include "gpu_py.hh"
|
||||
#include "gpu_py_vertex_buffer.hh" /* own include */
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
|
||||
#include <Python.h>
|
||||
|
||||
#include "../generic/py_capi_utils.h"
|
||||
#include "../generic/python_compat.h"
|
||||
#include "../generic/py_capi_utils.hh"
|
||||
#include "../generic/python_compat.hh"
|
||||
|
||||
#include "gpu_py.hh"
|
||||
#include "gpu_py_vertex_format.hh" /* own include */
|
||||
|
||||
Reference in New Issue
Block a user