Cleanup: replace typedef structs with structs.

This commit is contained in:
Jeroen Bakker 2021-06-08 12:02:43 +02:00
parent 340c535dbf
commit 322a614497
2 changed files with 4 additions and 4 deletions

View File

@ -36,13 +36,13 @@ namespace blender::draw {
#define NO_EDGE INT_MAX
typedef struct MeshExtract_LineAdjacency_Data {
struct MeshExtract_LineAdjacency_Data {
GPUIndexBufBuilder elb;
EdgeHash *eh;
bool is_manifold;
/* Array to convert vert index to any loop index of this vert. */
uint vert_to_loop[0];
} MeshExtract_LineAdjacency_Data;
};
static void *extract_lines_adjacency_init(const MeshRenderData *mr,
struct MeshBatchCache *UNUSED(cache),

View File

@ -34,11 +34,11 @@ namespace blender::draw {
/** \name Extract Paint Mask Line Indices
* \{ */
typedef struct MeshExtract_LinePaintMask_Data {
struct MeshExtract_LinePaintMask_Data {
GPUIndexBufBuilder elb;
/** One bit per edge set if face is selected. */
BLI_bitmap select_map[0];
} MeshExtract_LinePaintMask_Data;
};
static void *extract_lines_paint_mask_init(const MeshRenderData *mr,
struct MeshBatchCache *UNUSED(cache),