diff options
author | Jacques Lucke <jacques@blender.org> | 2020-03-02 17:28:47 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-03-02 17:29:09 +0300 |
commit | f48b46860b57b7caf3d804267952cd43ecec089a (patch) | |
tree | 711d700d0d5240d499ef055ff168d65de5472af0 /source/blender/gpu/GPU_immediate_util.h | |
parent | 360443a48346dc7c22fc6627849515da490b6e7b (diff) |
Cleanup: make remaining gpu headers work in C++
Diffstat (limited to 'source/blender/gpu/GPU_immediate_util.h')
-rw-r--r-- | source/blender/gpu/GPU_immediate_util.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/gpu/GPU_immediate_util.h b/source/blender/gpu/GPU_immediate_util.h index 419c84c803e..1cf6475408f 100644 --- a/source/blender/gpu/GPU_immediate_util.h +++ b/source/blender/gpu/GPU_immediate_util.h @@ -23,6 +23,10 @@ #ifndef __GPU_IMMEDIATE_UTIL_H__ #define __GPU_IMMEDIATE_UTIL_H__ +#ifdef __cplusplus +extern "C" { +#endif + /* Draw 2D rectangles (replaces glRect functions) */ /* caller is responsible for vertex format & shader */ void immRectf(uint pos, float x1, float y1, float x2, float y2); @@ -78,4 +82,8 @@ void imm_draw_cylinder_wire_3d( void imm_draw_cylinder_fill_3d( uint pos, float base, float top, float height, int slices, int stacks); +#ifdef __cplusplus +} +#endif + #endif /* __GPU_IMMEDIATE_UTIL_H__ */ |