Cleanup: Move draw_subdivision.h to C++
This commit is contained in:
@@ -261,7 +261,7 @@ set(SRC
|
||||
intern/draw_shader.h
|
||||
intern/draw_shader_shared.h
|
||||
intern/draw_state.h
|
||||
intern/draw_subdivision.h
|
||||
intern/draw_subdivision.hh
|
||||
intern/draw_texture_pool.h
|
||||
intern/draw_view.h
|
||||
intern/draw_view.hh
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
#include "draw_cache_extract.hh"
|
||||
#include "draw_cache_inline.h"
|
||||
#include "draw_subdivision.h"
|
||||
#include "draw_subdivision.hh"
|
||||
|
||||
#include "mesh_extractors/extract_mesh.hh"
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
|
||||
#include "draw_cache_extract.hh"
|
||||
#include "draw_cache_inline.h"
|
||||
#include "draw_subdivision.h"
|
||||
#include "draw_subdivision.hh"
|
||||
|
||||
#include "draw_cache_impl.hh" /* own include */
|
||||
#include "draw_manager.h"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||
|
||||
#include "draw_subdivision.h"
|
||||
#include "draw_subdivision.hh"
|
||||
|
||||
#include "DNA_mesh_types.h"
|
||||
#include "DNA_object_types.h"
|
||||
|
||||
@@ -82,7 +82,7 @@
|
||||
#include "draw_manager_testing.h"
|
||||
#include "draw_manager_text.h"
|
||||
#include "draw_shader.h"
|
||||
#include "draw_subdivision.h"
|
||||
#include "draw_subdivision.hh"
|
||||
#include "draw_texture_pool.h"
|
||||
|
||||
/* only for callbacks */
|
||||
|
||||
@@ -4,10 +4,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "BLI_span.hh"
|
||||
#include "BLI_sys_types.h"
|
||||
|
||||
struct BMesh;
|
||||
@@ -297,18 +294,9 @@ void draw_subdiv_build_edituv_stretch_angle_buffer(const DRWSubdivCache &cache,
|
||||
/** Return the format used for the positions and normals VBO. */
|
||||
struct GPUVertFormat *draw_subdiv_get_pos_nor_format(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
# include "BLI_span.hh"
|
||||
|
||||
/* Helper to access the loose edges. */
|
||||
blender::Span<DRWSubdivLooseEdge> draw_subdiv_cache_get_loose_edges(const DRWSubdivCache &cache);
|
||||
|
||||
/* Helper to access only the loose vertices, i.e. not the ones attached to loose edges. To access
|
||||
* loose vertices of loose edges #draw_subdiv_cache_get_loose_edges should be used. */
|
||||
blender::Span<DRWSubdivLooseVertex> draw_subdiv_cache_get_loose_verts(const DRWSubdivCache &cache);
|
||||
|
||||
#endif
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
#include "extract_mesh.hh"
|
||||
|
||||
#include "draw_subdivision.h"
|
||||
#include "draw_subdivision.hh"
|
||||
|
||||
namespace blender::draw {
|
||||
/* ---------------------------------------------------------------------- */
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
#include "extract_mesh.hh"
|
||||
|
||||
#include "draw_subdivision.h"
|
||||
#include "draw_subdivision.hh"
|
||||
|
||||
namespace blender::draw {
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
||||
#include "draw_subdivision.h"
|
||||
#include "draw_subdivision.hh"
|
||||
#include "extract_mesh.hh"
|
||||
|
||||
namespace blender::draw {
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
||||
#include "draw_subdivision.h"
|
||||
#include "draw_subdivision.hh"
|
||||
#include "extract_mesh.hh"
|
||||
|
||||
namespace blender::draw {
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
||||
#include "draw_subdivision.h"
|
||||
#include "draw_subdivision.hh"
|
||||
#include "extract_mesh.hh"
|
||||
|
||||
namespace blender::draw {
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
#include "extract_mesh.hh"
|
||||
|
||||
#include "draw_subdivision.h"
|
||||
#include "draw_subdivision.hh"
|
||||
|
||||
namespace blender::draw {
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
#include "attribute_convert.hh"
|
||||
#include "draw_attributes.hh"
|
||||
#include "draw_subdivision.h"
|
||||
#include "draw_subdivision.hh"
|
||||
#include "extract_mesh.hh"
|
||||
|
||||
namespace blender::draw {
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
#include "GPU_capabilities.h"
|
||||
|
||||
#include "draw_subdivision.h"
|
||||
#include "draw_subdivision.hh"
|
||||
#include "extract_mesh.hh"
|
||||
|
||||
#define FORCE_HIDE 255
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
#include "draw_cache_impl.hh"
|
||||
|
||||
#include "draw_subdivision.h"
|
||||
#include "draw_subdivision.hh"
|
||||
|
||||
namespace blender::draw {
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
#include "draw_cache_impl.hh"
|
||||
|
||||
#include "draw_subdivision.h"
|
||||
#include "draw_subdivision.hh"
|
||||
|
||||
namespace blender::draw {
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
#include "extract_mesh.hh"
|
||||
|
||||
#include "draw_subdivision.h"
|
||||
#include "draw_subdivision.hh"
|
||||
|
||||
namespace blender::draw {
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
#include "extract_mesh.hh"
|
||||
|
||||
#include "draw_subdivision.h"
|
||||
#include "draw_subdivision.hh"
|
||||
|
||||
namespace blender::draw {
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
#include "extract_mesh.hh"
|
||||
|
||||
#include "draw_subdivision.h"
|
||||
#include "draw_subdivision.hh"
|
||||
|
||||
namespace blender::draw {
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
#include "extract_mesh.hh"
|
||||
|
||||
#include "draw_subdivision.h"
|
||||
#include "draw_subdivision.hh"
|
||||
|
||||
namespace blender::draw {
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
#include "extract_mesh.hh"
|
||||
|
||||
#include "draw_subdivision.h"
|
||||
#include "draw_subdivision.hh"
|
||||
|
||||
namespace blender::draw {
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#include "BKE_mesh.hh"
|
||||
#include "BKE_paint.hh"
|
||||
|
||||
#include "draw_subdivision.h"
|
||||
#include "draw_subdivision.hh"
|
||||
#include "extract_mesh.hh"
|
||||
|
||||
namespace blender::draw {
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* \ingroup draw
|
||||
*/
|
||||
|
||||
#include "draw_subdivision.h"
|
||||
#include "draw_subdivision.hh"
|
||||
#include "extract_mesh.hh"
|
||||
|
||||
namespace blender::draw {
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
#include "extract_mesh.hh"
|
||||
|
||||
#include "draw_subdivision.h"
|
||||
#include "draw_subdivision.hh"
|
||||
|
||||
namespace blender::draw {
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include "BLI_math_vector_types.hh"
|
||||
#include "BLI_string.h"
|
||||
|
||||
#include "draw_subdivision.h"
|
||||
#include "draw_subdivision.hh"
|
||||
#include "extract_mesh.hh"
|
||||
|
||||
namespace blender::draw {
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include "BKE_deform.h"
|
||||
#include "BKE_mesh.hh"
|
||||
|
||||
#include "draw_subdivision.h"
|
||||
#include "draw_subdivision.hh"
|
||||
#include "extract_mesh.hh"
|
||||
|
||||
namespace blender::draw {
|
||||
|
||||
Reference in New Issue
Block a user