From d2e9de93b8d1d6cd45abce8164d0f92af8f636d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Tue, 8 Sep 2020 03:34:47 +0200 Subject: GPU: Cleanup implementation casts - Use the syntactic wrap/unwrap method to make code more readable. - Update comment about hidden struct behind opaque types. - Cleanup GPUDrawList type. --- source/blender/gpu/GPU_index_buffer.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'source/blender/gpu/GPU_index_buffer.h') diff --git a/source/blender/gpu/GPU_index_buffer.h b/source/blender/gpu/GPU_index_buffer.h index df24e07caef..0c71dd539a6 100644 --- a/source/blender/gpu/GPU_index_buffer.h +++ b/source/blender/gpu/GPU_index_buffer.h @@ -31,11 +31,7 @@ extern "C" { #endif -/** - * IMPORTANT: Do not allocate manually as the real struct is bigger (i.e: GLIndexBuf). This is only - * the common and "public" part of the struct. Use the provided allocator. - * TODO(fclem) Make the content of this struct hidden and expose getters/setters. - **/ +/** Opaque type hiding blender::gpu::IndexBuf. */ typedef struct GPUIndexBuf GPUIndexBuf; GPUIndexBuf *GPU_indexbuf_calloc(void); -- cgit v1.2.3