code cleanup: make many functions static
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user