Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2020-03-02 17:28:47 +0300
committerJacques Lucke <jacques@blender.org>2020-03-02 17:29:09 +0300
commitf48b46860b57b7caf3d804267952cd43ecec089a (patch)
tree711d700d0d5240d499ef055ff168d65de5472af0 /source/blender/gpu/GPU_batch_utils.h
parent360443a48346dc7c22fc6627849515da490b6e7b (diff)
Cleanup: make remaining gpu headers work in C++
Diffstat (limited to 'source/blender/gpu/GPU_batch_utils.h')
-rw-r--r--source/blender/gpu/GPU_batch_utils.h12
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__ */