Cleanup: more renaming in the render/ module for consistency

This commit is contained in:
Brecht Van Lommel 2020-11-09 15:42:38 +01:00
parent 4f66cf3b8b
commit 880b0f981d
45 changed files with 91 additions and 138 deletions

View File

@ -58,7 +58,7 @@
#include "DEG_depsgraph.h"
#include "RE_pipeline.h"
#include "RE_render_ext.h"
#include "RE_texture.h"
#include "SEQ_sequencer.h"

View File

@ -50,7 +50,7 @@
#include "IMB_imbuf.h"
#include "IMB_imbuf_types.h"
#include "RE_render_ext.h" /* RE_texture_evaluate */
#include "RE_texture.h" /* RE_texture_evaluate */
#include "BLO_read_write.h"

View File

@ -76,9 +76,7 @@
#include "IMB_imbuf.h"
#include "IMB_imbuf_types.h"
/* to read material/texture color */
#include "RE_render_ext.h"
#include "RE_shader_ext.h"
#include "RE_texture.h"
#include "atomic_ops.h"

View File

@ -68,8 +68,7 @@
#include "DEG_depsgraph_physics.h"
#include "DEG_depsgraph_query.h"
#include "RE_render_ext.h"
#include "RE_shader_ext.h"
#include "RE_texture.h"
EffectorWeights *BKE_effector_add_weights(Collection *collection)
{

View File

@ -80,7 +80,7 @@
# include "DEG_depsgraph.h"
# include "DEG_depsgraph_query.h"
# include "RE_shader_ext.h"
# include "RE_texture.h"
# include "CLG_log.h"

View File

@ -47,7 +47,7 @@
#include "IMB_imbuf.h"
#include "IMB_imbuf_types.h"
#include "RE_render_ext.h"
#include "RE_texture.h"
#include "BLI_hash.h"

View File

@ -83,7 +83,7 @@
#include "DEG_depsgraph_build.h"
#include "DEG_depsgraph_query.h"
#include "RE_render_ext.h"
#include "RE_texture.h"
#include "BLO_read_write.h"

View File

@ -83,7 +83,7 @@
#include "PIL_time.h"
#include "RE_shader_ext.h"
#include "RE_texture.h"
/* FLUID sim particle import */
#ifdef WITH_FLUID

View File

@ -67,7 +67,7 @@
#include "BKE_scene.h"
#include "BKE_texture.h"
#include "RE_shader_ext.h"
#include "RE_texture.h"
#include "BLO_read_write.h"

View File

@ -22,7 +22,7 @@
#include "MEM_guardedalloc.h"
#include "RE_render_ext.h"
#include "RE_texture.h"
/* An implementation of the Scale3X edge-extrapolation algorithm.
*

View File

@ -25,8 +25,7 @@
#include "BLI_threads.h"
#include "RE_pipeline.h"
#include "RE_render_ext.h"
#include "RE_shader_ext.h"
#include "RE_texture.h"
#include "render_types.h"

View File

@ -27,9 +27,9 @@
#include "IMB_colormanagement.h"
#include "IMB_imbuf.h"
#include "IMB_imbuf_types.h"
#include "RE_pipeline.h"
#include "RE_render_ext.h"
#include "RE_shader_ext.h"
#include "RE_texture.h"
BaseImageOperation::BaseImageOperation()
{

View File

@ -25,8 +25,7 @@
#include "MEM_guardedalloc.h"
#include "RE_pipeline.h"
#include "RE_render_ext.h"
#include "RE_shader_ext.h"
#include "RE_texture.h"
/**
* \brief Base class for all image operations

View File

@ -23,8 +23,7 @@
#include "DNA_scene_types.h"
#include "RE_pipeline.h"
#include "RE_render_ext.h"
#include "RE_shader_ext.h"
#include "RE_texture.h"
/* ******** Render Layers Base Prog ******** */

View File

@ -24,8 +24,7 @@
#include "MEM_guardedalloc.h"
#include "RE_pipeline.h"
#include "RE_render_ext.h"
#include "RE_shader_ext.h"
#include "RE_texture.h"
/**
* Base class for all renderlayeroperations

View File

@ -75,7 +75,7 @@
#include "ED_uvedit.h"
#include "ED_view3d.h"
#include "RE_render_ext.h"
#include "RE_texture.h"
#include "UI_interface.h"
#include "UI_resources.h"

View File

@ -53,7 +53,7 @@
#include "RE_multires_bake.h"
#include "RE_pipeline.h"
#include "RE_shader_ext.h"
#include "RE_texture.h"
#include "PIL_time.h"

View File

@ -86,7 +86,7 @@
#include "RE_engine.h"
#include "RE_pipeline.h"
#include "RE_shader_ext.h"
#include "RE_texture.h"
#include "WM_api.h"
#include "WM_types.h"

View File

@ -64,7 +64,7 @@
#include "IMB_imbuf.h"
#include "IMB_imbuf_types.h"
#include "RE_render_ext.h"
#include "RE_texture.h"
#include "ED_screen.h"
#include "ED_view3d.h"

View File

@ -55,7 +55,7 @@
#include "MEM_guardedalloc.h"
#include "RE_render_ext.h"
#include "RE_texture.h"
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_query.h"

View File

@ -36,7 +36,7 @@
# include "IMB_imbuf.h"
# include "IMB_imbuf_types.h"
# include "RE_pipeline.h"
# include "RE_shader_ext.h"
# include "RE_texture.h"
static void texture_evaluate(struct Tex *tex, float value[3], float r_color[4])
{

View File

@ -61,7 +61,7 @@
#include "MOD_ui_common.h"
#include "MOD_util.h"
#include "RE_shader_ext.h"
#include "RE_texture.h"
/* Displace */

View File

@ -45,7 +45,7 @@
#include "MOD_modifiertypes.h"
#include "MOD_ui_common.h"
#include "RE_shader_ext.h"
#include "RE_texture.h"
#include "RNA_access.h"

View File

@ -57,7 +57,7 @@
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_query.h"
#include "RE_shader_ext.h"
#include "RE_texture.h"
#include "MOD_ui_common.h"
#include "MOD_util.h"

View File

@ -51,7 +51,8 @@
#include "RNA_access.h"
#include "MEM_guardedalloc.h"
#include "RE_shader_ext.h"
#include "RE_texture.h"
#include "MOD_modifiertypes.h"
#include "MOD_ui_common.h"

View File

@ -55,7 +55,7 @@
#include "MOD_ui_common.h"
#include "MOD_util.h"
#include "MOD_weightvg_util.h"
#include "RE_shader_ext.h" /* Texture masking. */
#include "RE_texture.h" /* Texture masking. */
/* Maps new_w weights in place, using either one of the predefined functions, or a custom curve.
* Return values are in new_w.

View File

@ -50,7 +50,7 @@
#include "GPU_material.h"
#include "RE_shader_ext.h"
#include "RE_texture.h"
#include "NOD_common.h"

View File

@ -63,7 +63,7 @@
#include "IMB_colormanagement.h"
#include "RE_pipeline.h"
#include "RE_shader_ext.h"
#include "RE_texture.h"
#include "GPU_material.h"
#include "GPU_texture.h"

View File

@ -18,7 +18,7 @@
*/
#include "../node_shader_util.h"
#include "RE_shader_ext.h"
#include "RE_texture.h"
static bNodeSocketTemplate outputs[] = {
{SOCK_FLOAT, "Index"},

View File

@ -19,7 +19,7 @@
#include "../node_shader_util.h"
#include "RE_render_ext.h"
#include "RE_texture.h"
/* **************** OUTPUT ******************** */

View File

@ -48,7 +48,7 @@
#include "RNA_access.h"
#include "RE_shader_ext.h"
#include "RE_texture.h"
static void texture_get_from_context(const bContext *C,
bNodeTreeType *UNUSED(treetype),

View File

@ -61,7 +61,7 @@
#include "IMB_imbuf_types.h"
#include "RE_pipeline.h"
#include "RE_shader_ext.h"
#include "RE_texture.h"
#ifdef __cplusplus
extern "C" {

View File

@ -24,7 +24,7 @@
#include "NOD_texture.h"
#include "node_texture_util.h"
#include "RE_shader_ext.h"
#include "RE_texture.h"
/*
* In this file: wrappers to use procedural textures as nodes

View File

@ -24,7 +24,7 @@
#include "NOD_texture.h"
#include "node_texture_util.h"
#include "RE_shader_ext.h"
#include "RE_texture.h"
static bNodeSocketTemplate inputs[] = {
{SOCK_RGBA, N_("Color1"), 1.0f, 1.0f, 1.0f, 1.0f},

View File

@ -42,8 +42,8 @@ set(INC
set(SRC
intern/bake_api.c
intern/external_engine.c
intern/bake.c
intern/engine.c
intern/initrender.c
intern/multires_bake.c
intern/pipeline.c
@ -57,8 +57,7 @@ set(SRC
RE_engine.h
RE_multires_bake.h
RE_pipeline.h
RE_render_ext.h
RE_shader_ext.h
RE_texture.h
intern/initrender.h
intern/render_result.h

View File

@ -1,83 +0,0 @@
/*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* The Original Code is Copyright (C) 2006 by Blender Foundation
* All rights reserved.
*/
/** \file
* \ingroup render
*/
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* this include is for texture exports */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* localized texture result data */
/* note; tr tg tb ta has to remain in this order */
typedef struct TexResult {
float tin, tr, tg, tb, ta;
int talpha;
float *nor;
} TexResult;
typedef struct BakeImBufuserData {
float *displacement_buffer;
char *mask_buffer;
} BakeImBufuserData;
/* node shaders... */
struct ImagePool;
struct MTex;
struct Tex;
/* this one uses nodes */
int multitex_ext(struct Tex *tex,
float texvec[3],
float dxt[3],
float dyt[3],
int osatex,
struct TexResult *texres,
const short thread,
struct ImagePool *pool,
bool scene_color_manage,
const bool skip_load_image);
/* nodes disabled */
int multitex_ext_safe(struct Tex *tex,
const float texvec[3],
struct TexResult *texres,
struct ImagePool *pool,
bool scene_color_manage,
const bool skip_load_image);
/* only for internal node usage */
int multitex_nodes(struct Tex *tex,
const float texvec[3],
float dxt[3],
float dyt[3],
int osatex,
struct TexResult *texres,
const short thread,
short which_output,
struct MTex *mtex,
struct ImagePool *pool);
#ifdef __cplusplus
}
#endif

View File

@ -30,6 +30,7 @@
struct Depsgraph;
struct ImagePool;
struct MTex;
struct Tex;
#ifdef __cplusplus
extern "C" {
@ -75,6 +76,46 @@ void RE_point_density_free(struct PointDensity *pd);
void RE_point_density_fix_linking(void);
/* texture_procedural.c */
/* Texture evaluation result.
* Note; tr tg tb ta has to remain in this order for array access. */
typedef struct TexResult {
float tin, tr, tg, tb, ta;
int talpha;
float *nor;
} TexResult;
/* This one uses nodes. */
int multitex_ext(struct Tex *tex,
float texvec[3],
float dxt[3],
float dyt[3],
int osatex,
struct TexResult *texres,
const short thread,
struct ImagePool *pool,
bool scene_color_manage,
const bool skip_load_image);
/* Nodes disabled. */
int multitex_ext_safe(struct Tex *tex,
const float texvec[3],
struct TexResult *texres,
struct ImagePool *pool,
bool scene_color_manage,
const bool skip_load_image);
/* Only for internal node usage. */
int multitex_nodes(struct Tex *tex,
const float texvec[3],
float dxt[3],
float dyt[3],
int osatex,
struct TexResult *texres,
const short thread,
short which_output,
struct MTex *mtex,
struct ImagePool *pool);
#ifdef __cplusplus
}
#endif

View File

@ -46,7 +46,7 @@
#include "RE_multires_bake.h"
#include "RE_pipeline.h"
#include "RE_shader_ext.h"
#include "RE_texture.h"
#include "IMB_imbuf.h"
#include "IMB_imbuf_types.h"
@ -111,6 +111,11 @@ typedef struct {
const int *orig_index_mp_to_orig;
} MNormalBakeData;
typedef struct BakeImBufuserData {
float *displacement_buffer;
char *mask_buffer;
} BakeImBufuserData;
static void multiresbake_get_normal(const MResolvePixelData *data,
float norm[],
const int tri_num,

View File

@ -86,7 +86,7 @@
#include "RE_engine.h"
#include "RE_pipeline.h"
#include "RE_render_ext.h"
#include "RE_texture.h"
#include "SEQ_sequencer.h"

View File

@ -46,8 +46,7 @@
#include "BKE_image.h"
#include "RE_render_ext.h"
#include "RE_shader_ext.h"
#include "RE_texture.h"
#include "render_types.h"
#include "texture_common.h"

View File

@ -56,8 +56,7 @@
#include "render_types.h"
#include "texture_common.h"
#include "RE_render_ext.h"
#include "RE_shader_ext.h"
#include "RE_texture.h"
static ThreadMutex sample_mutex = PTHREAD_MUTEX_INITIALIZER;

View File

@ -57,8 +57,7 @@
#include "render_types.h"
#include "texture_common.h"
#include "RE_render_ext.h"
#include "RE_shader_ext.h"
#include "RE_texture.h"
static RNG_THREAD_ARRAY *random_tex_array;

View File

@ -72,7 +72,7 @@
#include "IMB_imbuf.h" /* For #IMB_init. */
#include "RE_engine.h"
#include "RE_render_ext.h"
#include "RE_texture.h"
#include "ED_datafiles.h"