Cleanup: more renaming in the render/ module for consistency
This commit is contained in:
parent
4f66cf3b8b
commit
880b0f981d
|
@ -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"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -83,7 +83,7 @@
|
|||
|
||||
#include "PIL_time.h"
|
||||
|
||||
#include "RE_shader_ext.h"
|
||||
#include "RE_texture.h"
|
||||
|
||||
/* FLUID sim particle import */
|
||||
#ifdef WITH_FLUID
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 ******** */
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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])
|
||||
{
|
||||
|
|
|
@ -61,7 +61,7 @@
|
|||
#include "MOD_ui_common.h"
|
||||
#include "MOD_util.h"
|
||||
|
||||
#include "RE_shader_ext.h"
|
||||
#include "RE_texture.h"
|
||||
|
||||
/* Displace */
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
|
||||
#include "GPU_material.h"
|
||||
|
||||
#include "RE_shader_ext.h"
|
||||
#include "RE_texture.h"
|
||||
|
||||
#include "NOD_common.h"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
*/
|
||||
|
||||
#include "../node_shader_util.h"
|
||||
#include "RE_shader_ext.h"
|
||||
#include "RE_texture.h"
|
||||
|
||||
static bNodeSocketTemplate outputs[] = {
|
||||
{SOCK_FLOAT, "Index"},
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
#include "../node_shader_util.h"
|
||||
|
||||
#include "RE_render_ext.h"
|
||||
#include "RE_texture.h"
|
||||
|
||||
/* **************** OUTPUT ******************** */
|
||||
|
||||
|
|
|
@ -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),
|
||||
|
|
|
@ -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" {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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},
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
|
@ -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
|
|
@ -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,
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue