Blender V2.61 - r43446
Classes | Defines | Typedefs | Functions | Variables

RE_pipeline.h File Reference

#include "DNA_listBase.h"
#include "DNA_vec_types.h"

Go to the source code of this file.

Classes

struct  RenderPass
struct  RenderLayer
struct  RenderResult
struct  RenderStats

Defines

#define RE_MAXNAME   32
#define RE_BAKE_LIGHT   0
#define RE_BAKE_ALL   1
#define RE_BAKE_AO   2
#define RE_BAKE_NORMALS   3
#define RE_BAKE_TEXTURE   4
#define RE_BAKE_DISPLACEMENT   5
#define RE_BAKE_SHADOW   6
#define RE_BAKE_SPEC_COLOR   7
#define RE_BAKE_SPEC_INTENSITY   8
#define RE_BAKE_MIRROR_COLOR   9
#define RE_BAKE_MIRROR_INTENSITY   10
#define RE_BAKE_ALPHA   11
#define RE_BAKE_EMIT   12

Typedefs

typedef struct Render Render
typedef struct RenderPass RenderPass
typedef struct RenderLayer RenderLayer
typedef struct RenderResult RenderResult
typedef struct RenderStats RenderStats

Functions

struct RenderRE_NewRender (const char *name)
struct RenderRE_GetRender (const char *name)
int RE_RenderInProgress (struct Render *re)
void RE_InitRenderCB (struct Render *re)
void RE_FreeRender (struct Render *re)
void RE_FreeAllRender (void)
void RE_FreeRenderResult (struct RenderResult *rr)
struct RenderResultRE_AcquireResultRead (struct Render *re)
struct RenderResultRE_AcquireResultWrite (struct Render *re)
void RE_ReleaseResult (struct Render *re)
void RE_AcquireResultImage (struct Render *re, struct RenderResult *rr)
void RE_ReleaseResultImage (struct Render *re)
void RE_SwapResult (struct Render *re, struct RenderResult **rr)
struct RenderStatsRE_GetStats (struct Render *re)
void RE_ResultGet32 (struct Render *re, unsigned int *rect)
struct RenderLayerRE_GetRenderLayer (struct RenderResult *rr, const char *name)
float * RE_RenderLayerGetPass (struct RenderLayer *rl, int passtype)
void RE_InitState (struct Render *re, struct Render *source, struct RenderData *rd, struct SceneRenderLayer *srl, int winx, int winy, rcti *disprect)
struct ObjectRE_GetCamera (struct Render *re)
void RE_SetCamera (struct Render *re, struct Object *camera)
void RE_SetEnvmapCamera (struct Render *re, struct Object *cam_ob, float viewscale, float clipsta, float clipend)
void RE_SetWindow (struct Render *re, rctf *viewplane, float clipsta, float clipend)
void RE_SetOrtho (struct Render *re, rctf *viewplane, float clipsta, float clipend)
void RE_SetPixelSize (struct Render *re, float pixsize)
void RE_SetView (struct Render *re, float mat[][4])
void RE_Database_FromScene (struct Render *re, struct Main *bmain, struct Scene *scene, unsigned int lay, int use_camera_view)
void RE_Database_Free (struct Render *re)
void RE_DataBase_ApplyWindow (struct Render *re)
void RE_set_max_threads (int threads)
void RE_init_threadcount (Render *re)
void RE_TileProcessor (struct Render *re)
void RE_BlenderFrame (struct Render *re, struct Main *bmain, struct Scene *scene, struct SceneRenderLayer *srl, struct Object *camera_override, unsigned int lay, int frame, const short write_still)
void RE_BlenderAnim (struct Render *re, struct Main *bmain, struct Scene *scene, struct Object *camera_override, unsigned int lay, int sfra, int efra, int tfra)
void RE_SetReports (struct Render *re, struct ReportList *reports)
void RE_PreviewRender (struct Render *re, struct Main *bmain, struct Scene *scene)
int RE_ReadRenderResult (struct Scene *scene, struct Scene *scenode)
int RE_WriteRenderResult (struct ReportList *reports, RenderResult *rr, const char *filename, int compress)
struct RenderResultRE_MultilayerConvert (void *exrhandle, int rectx, int recty)
int RE_WriteEnvmapResult (struct ReportList *reports, struct Scene *scene, struct EnvMap *env, const char *relpath, const char imtype, float layout[12])
void RE_MergeFullSample (struct Render *re, struct Main *bmain, struct Scene *sce, struct bNodeTree *ntree)
void RE_make_stars (struct Render *re, struct Scene *scenev3d, void(*initfunc)(void), void(*vertexfunc)(float *), void(*termfunc)(void))
void RE_display_init_cb (struct Render *re, void *handle, void(*f)(void *handle, RenderResult *rr))
void RE_display_clear_cb (struct Render *re, void *handle, void(*f)(void *handle, RenderResult *rr))
void RE_display_draw_cb (struct Render *re, void *handle, void(*f)(void *handle, RenderResult *rr, volatile struct rcti *rect))
void RE_stats_draw_cb (struct Render *re, void *handle, void(*f)(void *handle, RenderStats *rs))
void RE_progress_cb (struct Render *re, void *handle, void(*f)(void *handle, float))
void RE_draw_lock_cb (struct Render *re, void *handle, void(*f)(void *handle, int))
void RE_test_break_cb (struct Render *re, void *handle, int(*f)(void *handle))
float RE_filter_value (int type, float x)
void RE_zbuf_accumulate_vecblur (struct NodeBlurData *nbd, int xsize, int ysize, float *newrect, float *imgrect, float *vecbufrect, float *zbufrect)
int RE_seq_render_active (struct Scene *scene, struct RenderData *rd)
void RE_Database_Baking (struct Render *re, struct Main *bmain, struct Scene *scene, unsigned int lay, const int type, struct Object *actob)
void RE_DataBase_GetView (struct Render *re, float mat[][4])
void RE_GetCameraWindow (struct Render *re, struct Object *camera, int frame, float mat[][4])
struct SceneRE_GetScene (struct Render *re)
int RE_is_rendering_allowed (struct Scene *scene, struct Object *camera_override, struct ReportList *reports)

Variables

const float default_envmap_layout []

Detailed Description

Definition in file RE_pipeline.h.


Define Documentation

#define RE_BAKE_ALL   1

Definition at line 254 of file RE_pipeline.h.

Referenced by bake_shade(), RE_Database_Baking(), and rna_def_scene_render_data().

#define RE_BAKE_ALPHA   11

Definition at line 264 of file RE_pipeline.h.

Referenced by bake_shade(), and rna_def_scene_render_data().

#define RE_BAKE_AO   2
#define RE_BAKE_DISPLACEMENT   5
#define RE_BAKE_EMIT   12

Definition at line 265 of file RE_pipeline.h.

Referenced by bake_shade(), and rna_def_scene_render_data().

#define RE_BAKE_LIGHT   0

Definition at line 253 of file RE_pipeline.h.

Referenced by bake_shade(), and RE_Database_Baking().

#define RE_BAKE_MIRROR_COLOR   9

Definition at line 262 of file RE_pipeline.h.

Referenced by bake_shade(), and rna_def_scene_render_data().

#define RE_BAKE_MIRROR_INTENSITY   10

Definition at line 263 of file RE_pipeline.h.

Referenced by bake_shade(), and rna_def_scene_render_data().

#define RE_BAKE_NORMALS   3
#define RE_BAKE_SHADOW   6
#define RE_BAKE_SPEC_COLOR   7

Definition at line 260 of file RE_pipeline.h.

Referenced by bake_shade(), and rna_def_scene_render_data().

#define RE_BAKE_SPEC_INTENSITY   8

Definition at line 261 of file RE_pipeline.h.

Referenced by bake_shade(), and rna_def_scene_render_data().

#define RE_BAKE_TEXTURE   4

Definition at line 257 of file RE_pipeline.h.

Referenced by bake_shade(), RE_Database_Baking(), and rna_def_scene_render_data().

#define RE_MAXNAME   32

Typedef Documentation

typedef struct Render Render

Definition at line 58 of file RE_pipeline.h.

typedef struct RenderLayer RenderLayer
typedef struct RenderPass RenderPass
typedef struct RenderResult RenderResult
typedef struct RenderStats RenderStats

Function Documentation

void RE_AcquireResultImage ( struct Render re,
struct RenderResult rr 
)
struct RenderResult* RE_AcquireResultRead ( struct Render re) [read]
struct RenderResult* RE_AcquireResultWrite ( struct Render re) [read]
void RE_BlenderAnim ( struct Render re,
struct Main bmain,
struct Scene scene,
struct Object camera_override,
unsigned int  lay,
int  sfra,
int  efra,
int  tfra 
)
void RE_BlenderFrame ( struct Render re,
struct Main bmain,
struct Scene scene,
struct SceneRenderLayer srl,
struct Object camera_override,
unsigned int  lay,
int  frame,
const short  write_still 
)
void RE_DataBase_ApplyWindow ( struct Render re)

Definition at line 5172 of file convertblender.c.

References project_renderdata(), and projectverto().

void RE_Database_Baking ( struct Render re,
struct Main bmain,
struct Scene scene,
unsigned int  lay,
const int  type,
struct Object actob 
)
void RE_Database_Free ( struct Render re)
void RE_Database_FromScene ( struct Render re,
struct Main bmain,
struct Scene scene,
unsigned int  lay,
int  use_camera_view 
)

Definition at line 5022 of file convertblender.c.

References World::ambr, World::ao_gather_method, World::ao_samp_method, BLI_memarena_new(), BLI_MEMARENA_STD_BUFSIZE, BLI_strncpy(), RenderStats::cfra, RenderData::cfra, RenderStats::convertdone, copy_v3_v3(), database_init_objects(), ListBase::first, Render::i, Scene::id, RenderStats::infostr, init_ao_sphere(), init_camera_inside_volumes(), init_render_materials(), init_render_qmcsampler(), init_render_textures(), init_render_world(), invert_m4_m4(), Render::lampren, ListBase::last, Render::lay, Render::lights, Render::main, make_envmaps(), make_occ_tree(), make_pointdensities(), make_sss_tree(), make_voxeldata(), makeraytree(), Render::memArena, RenderData::mode, World::mode, ID::name, normalize_m4(), NULL, OB_RECALC_OB, Object::obmat, RenderStats::partsdone, project_renderdata(), projectverto(), Scene::r, Render::r, R_NO_FRAME_UPDATE, R_PANORAMA, R_PREVIEWBUTS, R_RAYTRACE, R_SHADOW, R_SSS, RE_Database_Free(), RE_GetCamera(), RE_make_stars(), RE_SetCamera(), RE_SetView(), Object::recalc, RenderData::scemode, Render::scene, scene_update_for_newframe(), RenderStats::scenename, Render::sdh, Scene::set, set_material_lightgroups(), set_node_shader_lamp_loop(), set_renderlayer_lightgroups(), shade_material_loop(), slurph_opt, sort_halos(), Render::stats_draw, Render::tbh, Render::test_break, threaded_makeshadowbufs(), RenderStats::totface, Render::tothalo, RenderStats::tothalo, RenderStats::totlamp, Render::totlamp, Render::totstrand, RenderStats::totstrand, RenderStats::totvert, Render::totvert, Render::totvlak, volume_precache(), WO_AMB_OCC, WO_AOGATHER_APPROX, WO_AOSAMP_CONSTANT, WO_ENV_LIGHT, WO_INDIRECT_LIGHT, WO_STARS, and Render::wrld.

Referenced by do_render_3d(), and RE_Database_FromScene_Vectors().

void RE_DataBase_GetView ( struct Render re,
float  mat[][4] 
)

Definition at line 5177 of file convertblender.c.

References copy_m4_m4(), and Render::viewmat.

void RE_display_clear_cb ( struct Render re,
void *  handle,
void(*)(void *handle, RenderResult *rr)  f 
)

Definition at line 561 of file pipeline.c.

References Render::dch, and Render::display_clear.

void RE_display_draw_cb ( struct Render re,
void *  handle,
void(*)(void *handle, RenderResult *rr, volatile struct rcti *rect)  f 
)
void RE_display_init_cb ( struct Render re,
void *  handle,
void(*)(void *handle, RenderResult *rr)  f 
)

Definition at line 556 of file pipeline.c.

References Render::dih, and Render::display_init.

void RE_draw_lock_cb ( struct Render re,
void *  handle,
void(*)(void *handle, int)  f 
)

Referenced by screen_render_invoke().

float RE_filter_value ( int  type,
float  x 
)
void RE_FreeAllRender ( void  )

Definition at line 407 of file pipeline.c.

References RE_FreeRender(), and RenderGlobal.

Referenced by WM_exit_ext().

void RE_FreeRender ( struct Render re)
void RE_FreeRenderResult ( struct RenderResult rr)
struct Object* RE_GetCamera ( struct Render re) [read]
void RE_GetCameraWindow ( struct Render re,
struct Object camera,
int  frame,
float  mat[][4] 
)

Definition at line 520 of file initrender.c.

References RenderData::cfra, copy_m4_m4(), Render::r, RE_SetCamera(), and Render::winmat.

Referenced by screen_opengl_render_apply().

struct Render* RE_GetRender ( const char *  name) [read]
struct RenderLayer* RE_GetRenderLayer ( struct RenderResult rr,
const char *  name 
) [read]
struct Scene* RE_GetScene ( struct Render re) [read]

Definition at line 288 of file pipeline.c.

References NULL, and Render::scene.

struct RenderStats* RE_GetStats ( struct Render re) [read]

Definition at line 345 of file pipeline.c.

References Render::i.

Referenced by stampdata().

void RE_init_threadcount ( Render re)
void RE_InitRenderCB ( struct Render re)
void RE_InitState ( struct Render re,
struct Render source,
struct RenderData rd,
struct SceneRenderLayer srl,
int  winx,
int  winy,
rcti disprect 
)
int RE_is_rendering_allowed ( struct Scene scene,
struct Object camera_override,
struct ReportList reports 
)
void RE_make_stars ( struct Render re,
struct Scene scenev3d,
void(*)(void)  initfunc,
void(*)(float *)  vertexfunc,
void(*)(void)  termfunc 
)
void RE_MergeFullSample ( struct Render re,
struct Main bmain,
struct Scene sce,
struct bNodeTree ntree 
)
struct RenderResult* RE_MultilayerConvert ( void *  exrhandle,
int  rectx,
int  recty 
) [read]

Definition at line 210 of file pipeline.c.

References render_result_new_from_exr().

Referenced by image_create_multilayer().

struct Render* RE_NewRender ( const char *  name) [read]
void RE_PreviewRender ( struct Render re,
struct Main bmain,
struct Scene scene 
)
void RE_progress_cb ( struct Render re,
void *  handle,
void(*)(void *handle, float)  f 
)

Definition at line 576 of file pipeline.c.

References Render::prh, and Render::progress.

Referenced by screen_render_invoke().

int RE_ReadRenderResult ( struct Scene scene,
struct Scene scenode 
)
void RE_ReleaseResult ( struct Render re)
void RE_ReleaseResultImage ( struct Render re)
int RE_RenderInProgress ( struct Render re)
float* RE_RenderLayerGetPass ( struct RenderLayer rl,
int  passtype 
)
void RE_ResultGet32 ( struct Render re,
unsigned int *  rect 
)
int RE_seq_render_active ( struct Scene scene,
struct RenderData rd 
)
void RE_set_max_threads ( int  threads)

Definition at line 2307 of file pipeline.c.

References BLENDER_MAX_THREADS, BLI_system_thread_count(), RenderGlobal, and threads.

Referenced by set_threads().

void RE_SetCamera ( struct Render re,
struct Object camera 
)
void RE_SetEnvmapCamera ( struct Render re,
struct Object cam_ob,
float  viewscale,
float  clipsta,
float  clipend 
)
void RE_SetOrtho ( struct Render re,
rctf viewplane,
float  clipsta,
float  clipend 
)
void RE_SetPixelSize ( struct Render re,
float  pixsize 
)

Definition at line 514 of file initrender.c.

References Render::viewdx, Render::viewdy, and Render::ycor.

void RE_SetReports ( struct Render re,
struct ReportList reports 
)

Definition at line 1989 of file pipeline.c.

References Render::reports.

Referenced by render_animation(), render_frame(), render_startjob(), and screen_render_exec().

void RE_SetView ( struct Render re,
float  mat[][4] 
)
void RE_SetWindow ( struct Render re,
rctf viewplane,
float  clipsta,
float  clipend 
)
void RE_stats_draw_cb ( struct Render re,
void *  handle,
void(*)(void *handle, RenderStats *rs)  f 
)

Definition at line 571 of file pipeline.c.

References Render::sdh, and Render::stats_draw.

Referenced by screen_render_invoke().

void RE_SwapResult ( struct Render re,
struct RenderResult **  rr 
)

Definition at line 272 of file pipeline.c.

References Render::result, and SWAP.

Referenced by BKE_image_backup_render().

void RE_test_break_cb ( struct Render re,
void *  handle,
int(*)(void *handle)  f 
)
void RE_TileProcessor ( struct Render re)

Definition at line 894 of file pipeline.c.

References threaded_tile_processor().

Referenced by render_envmap(), and sss_create_tree_mat().

int RE_WriteEnvmapResult ( struct ReportList reports,
struct Scene scene,
struct EnvMap env,
const char *  relpath,
const char  imtype,
float  layout[12] 
)
int RE_WriteRenderResult ( struct ReportList reports,
RenderResult rr,
const char *  filename,
int  compress 
)
void RE_zbuf_accumulate_vecblur ( struct NodeBlurData nbd,
int  xsize,
int  ysize,
float *  newrect,
float *  imgrect,
float *  vecbufrect,
float *  zbufrect 
)

Variable Documentation

const float default_envmap_layout[]

Definition at line 2377 of file pipeline.c.

Referenced by save_envmap(), and TEXTURE_OT_envmap_save().