diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-09-07 00:45:51 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-09-07 14:59:51 +0300 |
commit | bb2aeb4504907cab1cf8c4afc4dd1d6495c940e4 (patch) | |
tree | 550d043273b767d55ef32409e58de17cb75e724e /source/blender/gpu/GPU_vertex_buffer.h | |
parent | 99e3541d3b1a1fc62fcd24e9f0d12a631e4caead (diff) |
GPUVertBuf: Rename GPUVertBuf to VertBuf and add some getters
to avoid more typecasts.
Diffstat (limited to 'source/blender/gpu/GPU_vertex_buffer.h')
-rw-r--r-- | source/blender/gpu/GPU_vertex_buffer.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/source/blender/gpu/GPU_vertex_buffer.h b/source/blender/gpu/GPU_vertex_buffer.h index efed2725e27..e42d6c47b58 100644 --- a/source/blender/gpu/GPU_vertex_buffer.h +++ b/source/blender/gpu/GPU_vertex_buffer.h @@ -46,7 +46,6 @@ ENUM_OPERATORS(GPUVertBufStatus) extern "C" { #endif -#define VRAM_USAGE 1 /** * How to create a #GPUVertBuf: * 1) verts = GPU_vertbuf_calloc() @@ -64,9 +63,7 @@ typedef enum { typedef struct GPUVertBuf GPUVertBuf; -#define GPU_vertbuf_calloc() GPU_vertbuf_create(GPU_USAGE_STATIC); - -GPUVertBuf *GPU_vertbuf_create(GPUUsageType); +GPUVertBuf *GPU_vertbuf_calloc(void); GPUVertBuf *GPU_vertbuf_create_with_format_ex(const GPUVertFormat *, GPUUsageType); #define GPU_vertbuf_create_with_format(format) \ @@ -79,7 +76,6 @@ void GPU_vertbuf_discard(GPUVertBuf *); void GPU_vertbuf_handle_ref_add(GPUVertBuf *verts); void GPU_vertbuf_handle_ref_remove(GPUVertBuf *verts); -void GPU_vertbuf_init(GPUVertBuf *, GPUUsageType); void GPU_vertbuf_init_with_format_ex(GPUVertBuf *, const GPUVertFormat *, GPUUsageType); #define GPU_vertbuf_init_with_format(verts, format) \ @@ -87,7 +83,6 @@ void GPU_vertbuf_init_with_format_ex(GPUVertBuf *, const GPUVertFormat *, GPUUsa GPUVertBuf *GPU_vertbuf_duplicate(GPUVertBuf *verts); -uint GPU_vertbuf_size_get(const GPUVertBuf *); void GPU_vertbuf_data_alloc(GPUVertBuf *, uint v_len); void GPU_vertbuf_data_resize(GPUVertBuf *, uint v_len); void GPU_vertbuf_data_len_set(GPUVertBuf *, uint v_len); |