Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/intern/mesh_extractors/extract_mesh.c
- This file was moved from source/blender/draw/intern/draw_cache_extract_mesh_extractors.c.
| Show All 23 Lines | |||||
| */ | */ | ||||
| #include "MEM_guardedalloc.h" | #include "MEM_guardedalloc.h" | ||||
| #include "DNA_object_types.h" | #include "DNA_object_types.h" | ||||
| #include "ED_uvedit.h" | #include "ED_uvedit.h" | ||||
| #include "draw_cache_extract_mesh_private.h" | #include "extract_mesh.h" | ||||
| #include "draw_cache_impl.h" | #include "draw_cache_impl.h" | ||||
| void *mesh_extract_buffer_get(const MeshExtract *extractor, MeshBufferCache *mbc) | void *mesh_extract_buffer_get(const MeshExtract *extractor, MeshBufferCache *mbc) | ||||
| { | { | ||||
| /* NOTE: POINTER_OFFSET on windows platforms casts internally to `void *`, but on GCC/CLANG to | /* NOTE: POINTER_OFFSET on windows platforms casts internally to `void *`, but on GCC/CLANG to | ||||
| * `MeshBufferCache *`. What shows a different usage versus intent. */ | * `MeshBufferCache *`. What shows a different usage versus intent. */ | ||||
| void **buffer_ptr = (void **)POINTER_OFFSET(mbc, extractor->mesh_buffer_offset); | void **buffer_ptr = (void **)POINTER_OFFSET(mbc, extractor->mesh_buffer_offset); | ||||
| void *buffer = *buffer_ptr; | void *buffer = *buffer_ptr; | ||||
| ▲ Show 20 Lines • Show All 128 Lines • Show Last 20 Lines | |||||