diff options
Diffstat (limited to 'source/blender/gpu/GPU_batch_utils.h')
-rw-r--r-- | source/blender/gpu/GPU_batch_utils.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/source/blender/gpu/GPU_batch_utils.h b/source/blender/gpu/GPU_batch_utils.h index 3d41b957a67..8f85ac59aa5 100644 --- a/source/blender/gpu/GPU_batch_utils.h +++ b/source/blender/gpu/GPU_batch_utils.h @@ -21,11 +21,15 @@ #ifndef __GPU_BATCH_UTILS_H__ #define __GPU_BATCH_UTILS_H__ -struct rctf; - #include "BLI_compiler_attrs.h" #include "BLI_sys_types.h" +#ifdef __cplusplus +extern "C" { +#endif + +struct rctf; + /* gpu_batch_utils.c */ struct GPUBatch *GPU_batch_tris_from_poly_2d_encoded( const uchar *polys_flat, uint polys_flat_len, const struct rctf *rect) ATTR_WARN_UNUSED_RESULT @@ -37,4 +41,8 @@ struct GPUBatch *GPU_batch_wire_from_poly_2d_encoded( /* Only use by draw manager. Use the presets function instead for interface. */ struct GPUBatch *gpu_batch_sphere(int lat_res, int lon_res) ATTR_WARN_UNUSED_RESULT; +#ifdef __cplusplus +} +#endif + #endif /* __GPU_BATCH_UTILS_H__ */ |