diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-07-18 16:09:31 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-07-18 16:10:31 +0300 |
commit | 428743a9b06cc09b4eb4dd3e7794d45d13457fb8 (patch) | |
tree | c80387088d4a89de88627f43665c73d805049a65 /source/blender/gpu/GPU_element.h | |
parent | f882df9e0f9de99c37558ce375ce681c148eac82 (diff) |
Cleanup: style for GPU module
Diffstat (limited to 'source/blender/gpu/GPU_element.h')
-rw-r--r-- | source/blender/gpu/GPU_element.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/source/blender/gpu/GPU_element.h b/source/blender/gpu/GPU_element.h index 508c079fcd3..adc705ab641 100644 --- a/source/blender/gpu/GPU_element.h +++ b/source/blender/gpu/GPU_element.h @@ -57,37 +57,37 @@ typedef struct GPUIndexBuf { bool use_prim_restart; } GPUIndexBuf; -void GPU_indexbuf_use(GPUIndexBuf*); -uint GPU_indexbuf_size_get(const GPUIndexBuf*); +void GPU_indexbuf_use(GPUIndexBuf *); +uint GPU_indexbuf_size_get(const GPUIndexBuf *); typedef struct GPUIndexBufBuilder { uint max_allowed_index; uint max_index_len; uint index_len; GPUPrimType prim_type; - uint* data; + uint *data; bool use_prim_restart; } GPUIndexBufBuilder; /* supports all primitive types. */ -void GPU_indexbuf_init_ex(GPUIndexBufBuilder*, GPUPrimType, uint index_len, uint vertex_len, bool use_prim_restart); +void GPU_indexbuf_init_ex(GPUIndexBufBuilder *, GPUPrimType, uint index_len, uint vertex_len, bool use_prim_restart); /* supports only GPU_PRIM_POINTS, GPU_PRIM_LINES and GPU_PRIM_TRIS. */ -void GPU_indexbuf_init(GPUIndexBufBuilder*, GPUPrimType, uint prim_len, uint vertex_len); +void GPU_indexbuf_init(GPUIndexBufBuilder *, GPUPrimType, uint prim_len, uint vertex_len); -void GPU_indexbuf_add_generic_vert(GPUIndexBufBuilder*, uint v); -void GPU_indexbuf_add_primitive_restart(GPUIndexBufBuilder*); +void GPU_indexbuf_add_generic_vert(GPUIndexBufBuilder *, uint v); +void GPU_indexbuf_add_primitive_restart(GPUIndexBufBuilder *); -void GPU_indexbuf_add_point_vert(GPUIndexBufBuilder*, uint v); -void GPU_indexbuf_add_line_verts(GPUIndexBufBuilder*, uint v1, uint v2); -void GPU_indexbuf_add_tri_verts(GPUIndexBufBuilder*, uint v1, uint v2, uint v3); -void GPU_indexbuf_add_line_adj_verts(GPUIndexBufBuilder*, uint v1, uint v2, uint v3, uint v4); +void GPU_indexbuf_add_point_vert(GPUIndexBufBuilder *, uint v); +void GPU_indexbuf_add_line_verts(GPUIndexBufBuilder *, uint v1, uint v2); +void GPU_indexbuf_add_tri_verts(GPUIndexBufBuilder *, uint v1, uint v2, uint v3); +void GPU_indexbuf_add_line_adj_verts(GPUIndexBufBuilder *, uint v1, uint v2, uint v3, uint v4); -GPUIndexBuf* GPU_indexbuf_build(GPUIndexBufBuilder*); -void GPU_indexbuf_build_in_place(GPUIndexBufBuilder*, GPUIndexBuf*); +GPUIndexBuf *GPU_indexbuf_build(GPUIndexBufBuilder *); +void GPU_indexbuf_build_in_place(GPUIndexBufBuilder *, GPUIndexBuf *); -void GPU_indexbuf_discard(GPUIndexBuf*); +void GPU_indexbuf_discard(GPUIndexBuf *); /* Macros */ |