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:
authorJeroen Bakker <jeroen@blender.org>2021-06-22 12:10:59 +0300
committerJeroen Bakker <jeroen@blender.org>2021-06-22 12:11:31 +0300
commit3f1111b2a82fe975fdb55114943009e8ef0a2c43 (patch)
treec676e8a1d4a942d36838044290559110b13fde8b /source/blender/draw/intern/draw_hair_private.h
parentad9fd47d7b7cfddb3fb518c3138cfb756bc381e2 (diff)
Draw: Added testcases for hair refine shaders.
Diffstat (limited to 'source/blender/draw/intern/draw_hair_private.h')
-rw-r--r--source/blender/draw/intern/draw_hair_private.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_hair_private.h b/source/blender/draw/intern/draw_hair_private.h
index 28bd5d4dfb5..1f58d8d0ead 100644
--- a/source/blender/draw/intern/draw_hair_private.h
+++ b/source/blender/draw/intern/draw_hair_private.h
@@ -23,11 +23,20 @@
#pragma once
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define MAX_LAYER_NAME_CT 4 /* u0123456789, u, au, a0123456789 */
#define MAX_LAYER_NAME_LEN (GPU_MAX_SAFE_ATTR_NAME + 2)
#define MAX_THICKRES 2 /* see eHairType */
#define MAX_HAIR_SUBDIV 4 /* see hair_subdiv rna */
+typedef enum ParticleRefineShader {
+ PART_REFINE_CATMULL_ROM = 0,
+ PART_REFINE_MAX_SHADER,
+} ParticleRefineShader;
+
struct ModifierData;
struct Object;
struct ParticleHairCache;
@@ -91,3 +100,7 @@ bool hair_ensure_procedural_data(struct Object *object,
struct ParticleHairCache **r_hair_cache,
int subdiv,
int thickness_res);
+
+#ifdef __cplusplus
+}
+#endif