diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:17:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:21:24 +0300 |
commit | e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch) | |
tree | 8cf3453d12edb177a218ef8009357518ec6cab6a /source/blender/gpu/GPU_immediate_util.h | |
parent | b3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (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_immediate_util.h')
-rw-r--r-- | source/blender/gpu/GPU_immediate_util.h | 37 |
1 files changed, 21 insertions, 16 deletions
diff --git a/source/blender/gpu/GPU_immediate_util.h b/source/blender/gpu/GPU_immediate_util.h index 50d20c753a3..370c576006f 100644 --- a/source/blender/gpu/GPU_immediate_util.h +++ b/source/blender/gpu/GPU_immediate_util.h @@ -30,16 +30,20 @@ void immRecti(uint pos, int x1, int y1, int x2, int y2); /* Same as immRectf/immRecti but does not call immBegin/immEnd. To use with GPU_PRIM_TRIS. */ void immRectf_fast(uint pos, float x1, float y1, float x2, float y2); -void immRectf_fast_with_color(uint pos, uint col, float x1, float y1, float x2, float y2, const float color[4]); -void immRecti_fast_with_color(uint pos, uint col, int x1, int y1, int x2, int y2, const float color[4]); +void immRectf_fast_with_color( + uint pos, uint col, float x1, float y1, float x2, float y2, const float color[4]); +void immRecti_fast_with_color( + uint pos, uint col, int x1, int y1, int x2, int y2, const float color[4]); void imm_cpack(uint x); void imm_draw_circle_wire_2d(uint shdr_pos, float x, float y, float radius, int nsegments); void imm_draw_circle_fill_2d(uint shdr_pos, float x, float y, float radius, int nsegments); -void imm_draw_circle_wire_aspect_2d(uint shdr_pos, float x, float y, float radius_x, float radius_y, int nsegments); -void imm_draw_circle_fill_aspect_2d(uint shdr_pos, float x, float y, float radius_x, float radius_y, int nsegments); +void imm_draw_circle_wire_aspect_2d( + uint shdr_pos, float x, float y, float radius_x, float radius_y, int nsegments); +void imm_draw_circle_fill_aspect_2d( + uint shdr_pos, float x, float y, float radius_x, float radius_y, int nsegments); /* use this version when GPUVertFormat has a vec3 position */ void imm_draw_circle_wire_3d(uint pos, float x, float y, float radius, int nsegments); @@ -47,12 +51,16 @@ void imm_draw_circle_fill_3d(uint pos, float x, float y, float radius, int nsegm /* same as 'imm_draw_disk_partial_fill_2d', except it draws a wire arc. */ void imm_draw_circle_partial_wire_2d( - uint pos, float x, float y, - float radius, int nsegments, float start, float sweep); + uint pos, float x, float y, float radius, int nsegments, float start, float sweep); -void imm_draw_disk_partial_fill_2d( - uint pos, float x, float y, - float radius_inner, float radius_outer, int nsegments, float start, float sweep); +void imm_draw_disk_partial_fill_2d(uint pos, + float x, + float y, + float radius_inner, + float radius_outer, + int nsegments, + float start, + float sweep); void imm_draw_box_wire_2d(uint pos, float x1, float y1, float x2, float y2); void imm_draw_box_wire_3d(uint pos, float x1, float y1, float x2, float y2); @@ -63,13 +71,10 @@ void imm_draw_cube_fill_3d(uint pos, const float co[3], const float aspect[3]); void imm_draw_cube_wire_3d(uint pos, const float co[3], const float aspect[3]); void imm_draw_cylinder_fill_normal_3d( - uint pos, uint nor, float base, float top, float height, - int slices, int stacks); + uint pos, uint nor, float base, float top, float height, int slices, int stacks); void imm_draw_cylinder_wire_3d( - uint pos, float base, float top, float height, - int slices, int stacks); + uint pos, float base, float top, float height, int slices, int stacks); void imm_draw_cylinder_fill_3d( - uint pos, float base, float top, float height, - int slices, int stacks); + uint pos, float base, float top, float height, int slices, int stacks); -#endif /* __GPU_IMMEDIATE_UTIL_H__ */ +#endif /* __GPU_IMMEDIATE_UTIL_H__ */ |