diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-09-22 18:07:55 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-09-22 18:07:55 +0400 |
commit | 6c1da4d02288b4349c2753ddccf9f6a8e04e4c83 (patch) | |
tree | 6fdf30fb34fe49b1de7886047799da0e630ecaac /source/blender/makesrna/intern/rna_texture_api.c | |
parent | 34114b3b75e41fe6882442c5aed126a7131d1dea (diff) |
code cleanup: make many functions static
Diffstat (limited to 'source/blender/makesrna/intern/rna_texture_api.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_texture_api.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/source/blender/makesrna/intern/rna_texture_api.c b/source/blender/makesrna/intern/rna_texture_api.c index e62b3ecd804..a2880510958 100644 --- a/source/blender/makesrna/intern/rna_texture_api.c +++ b/source/blender/makesrna/intern/rna_texture_api.c @@ -32,6 +32,8 @@ #include "RNA_define.h" +#include "rna_internal.h" /* own include */ + #ifdef RNA_RUNTIME #include "IMB_imbuf.h" @@ -42,8 +44,8 @@ #include "RE_pipeline.h" #include "RE_shader_ext.h" -void save_envmap(struct EnvMap *env, bContext *C, ReportList *reports, const char *filepath, - struct Scene *scene, float layout[12]) +static void save_envmap(struct EnvMap *env, bContext *C, ReportList *reports, const char *filepath, + struct Scene *scene, float layout[12]) { if (scene == NULL) { scene = CTX_data_scene(C); @@ -52,7 +54,7 @@ void save_envmap(struct EnvMap *env, bContext *C, ReportList *reports, const cha RE_WriteEnvmapResult(reports, scene, env, filepath, scene->r.im_format.imtype, layout); } -void clear_envmap(struct EnvMap *env, bContext *C) +static void clear_envmap(struct EnvMap *env, bContext *C) { Main *bmain = CTX_data_main(C); Tex *tex; @@ -66,7 +68,7 @@ void clear_envmap(struct EnvMap *env, bContext *C) } } -void texture_evaluate(struct Tex *tex, float value[3], float color_r[4]) +static void texture_evaluate(struct Tex *tex, float value[3], float color_r[4]) { TexResult texres = {0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0, NULL}; multitex_ext(tex, value, NULL, NULL, 1, &texres); |