Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-04-17 07:17:24 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-04-17 07:21:24 +0300
commite12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch)
tree8cf3453d12edb177a218ef8009357518ec6cab6a /source/blender/gpu/GPU_buffers.h
parentb3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (diff)
ClangFormat: apply to source, most of intern
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
Diffstat (limited to 'source/blender/gpu/GPU_buffers.h')
-rw-r--r--source/blender/gpu/GPU_buffers.h60
1 files changed, 31 insertions, 29 deletions
diff --git a/source/blender/gpu/GPU_buffers.h b/source/blender/gpu/GPU_buffers.h
index 8762a1cb222..895887c2588 100644
--- a/source/blender/gpu/GPU_buffers.h
+++ b/source/blender/gpu/GPU_buffers.h
@@ -41,44 +41,46 @@ struct PBVH;
typedef struct GPU_PBVH_Buffers GPU_PBVH_Buffers;
/* build */
-GPU_PBVH_Buffers *GPU_pbvh_mesh_buffers_build(
- const int (*face_vert_indices)[3],
- const struct MPoly *mpoly, const struct MLoop *mloop, const struct MLoopTri *looptri,
- const struct MVert *verts,
- const int *face_indices,
- const int face_indices_len);
+GPU_PBVH_Buffers *GPU_pbvh_mesh_buffers_build(const int (*face_vert_indices)[3],
+ const struct MPoly *mpoly,
+ const struct MLoop *mloop,
+ const struct MLoopTri *looptri,
+ const struct MVert *verts,
+ const int *face_indices,
+ const int face_indices_len);
-GPU_PBVH_Buffers *GPU_pbvh_grid_buffers_build(
- int totgrid,
- unsigned int **grid_hidden);
+GPU_PBVH_Buffers *GPU_pbvh_grid_buffers_build(int totgrid, unsigned int **grid_hidden);
GPU_PBVH_Buffers *GPU_pbvh_bmesh_buffers_build(bool smooth_shading);
/* update */
enum {
- GPU_PBVH_BUFFERS_SHOW_MASK = (1 << 1),
+ GPU_PBVH_BUFFERS_SHOW_MASK = (1 << 1),
};
-void GPU_pbvh_mesh_buffers_update(
- GPU_PBVH_Buffers *buffers, const struct MVert *mvert,
- const int *vert_indices, int totvert, const float *vmask,
- const int (*face_vert_indices)[3],
- const int update_flags);
-
-void GPU_pbvh_bmesh_buffers_update(
- GPU_PBVH_Buffers *buffers,
- struct BMesh *bm,
- struct GSet *bm_faces,
- struct GSet *bm_unique_verts,
- struct GSet *bm_other_verts,
- const int update_flags);
-
-void GPU_pbvh_grid_buffers_update(
- GPU_PBVH_Buffers *buffers, struct CCGElem **grids,
- const struct DMFlagMat *grid_flag_mats,
- int *grid_indices, int totgrid, const struct CCGKey *key,
- const int update_flags);
+void GPU_pbvh_mesh_buffers_update(GPU_PBVH_Buffers *buffers,
+ const struct MVert *mvert,
+ const int *vert_indices,
+ int totvert,
+ const float *vmask,
+ const int (*face_vert_indices)[3],
+ const int update_flags);
+
+void GPU_pbvh_bmesh_buffers_update(GPU_PBVH_Buffers *buffers,
+ struct BMesh *bm,
+ struct GSet *bm_faces,
+ struct GSet *bm_unique_verts,
+ struct GSet *bm_other_verts,
+ const int update_flags);
+
+void GPU_pbvh_grid_buffers_update(GPU_PBVH_Buffers *buffers,
+ struct CCGElem **grids,
+ const struct DMFlagMat *grid_flag_mats,
+ int *grid_indices,
+ int totgrid,
+ const struct CCGKey *key,
+ const int update_flags);
/* draw */
struct GPUBatch *GPU_pbvh_buffers_batch_get(GPU_PBVH_Buffers *buffers, bool fast, bool wires);