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

RE_engine.h File Reference

#include "DNA_listBase.h"
#include "RNA_types.h"

Go to the source code of this file.

Classes

struct  RenderEngineType
struct  RenderEngine

Defines

#define RE_INTERNAL   1
#define RE_GAME   2
#define RE_USE_PREVIEW   4
#define RE_USE_POSTPROCESS   8
#define RE_USE_SHADING_NODES   16
#define RE_ENGINE_ANIMATION   1
#define RE_ENGINE_PREVIEW   2
#define RE_ENGINE_DO_DRAW   4
#define RE_ENGINE_DO_UPDATE   8

Typedefs

typedef struct RenderEngineType RenderEngineType
typedef struct RenderEngine RenderEngine

Functions

RenderEngineRE_engine_create (RenderEngineType *type)
void RE_engine_free (RenderEngine *engine)
void RE_layer_load_from_file (struct RenderLayer *layer, struct ReportList *reports, const char *filename, int x, int y)
void RE_result_load_from_file (struct RenderResult *result, struct ReportList *reports, const char *filename)
struct RenderResultRE_engine_begin_result (RenderEngine *engine, int x, int y, int w, int h)
void RE_engine_update_result (RenderEngine *engine, struct RenderResult *result)
void RE_engine_end_result (RenderEngine *engine, struct RenderResult *result)
int RE_engine_test_break (RenderEngine *engine)
void RE_engine_update_stats (RenderEngine *engine, const char *stats, const char *info)
void RE_engine_update_progress (RenderEngine *engine, float progress)
void RE_engine_report (RenderEngine *engine, int type, const char *msg)
int RE_engine_render (struct Render *re, int do_all)
int RE_engine_is_external (struct Render *re)
void RE_engines_init (void)
void RE_engines_exit (void)
RenderEngineTypeRE_engines_find (const char *idname)

Variables

ListBase R_engines

Detailed Description

Definition in file RE_engine.h.


Define Documentation

#define RE_ENGINE_ANIMATION   1

Definition at line 57 of file RE_engine.h.

Referenced by RE_engine_render(), and rna_def_render_engine().

#define RE_ENGINE_DO_DRAW   4

Definition at line 59 of file RE_engine.h.

Referenced by wm_region_test_render_do_draw().

#define RE_ENGINE_DO_UPDATE   8

Definition at line 60 of file RE_engine.h.

Referenced by ED_render_scene_update().

#define RE_ENGINE_PREVIEW   2

Definition at line 58 of file RE_engine.h.

Referenced by RE_engine_render(), and rna_def_render_engine().

#define RE_GAME   2

Definition at line 51 of file RE_engine.h.

#define RE_INTERNAL   1

Definition at line 50 of file RE_engine.h.

Referenced by RE_engines_exit().

#define RE_USE_POSTPROCESS   8

Definition at line 53 of file RE_engine.h.

Referenced by RE_engine_render(), and rna_def_render_engine().

#define RE_USE_PREVIEW   4

Definition at line 52 of file RE_engine.h.

Referenced by RE_engine_render(), and rna_def_render_engine().

#define RE_USE_SHADING_NODES   16

Definition at line 54 of file RE_engine.h.

Referenced by rna_def_render_engine(), and scene_use_new_shading_nodes().


Typedef Documentation

typedef struct RenderEngine RenderEngine

Function Documentation

struct RenderResult* RE_engine_begin_result ( RenderEngine engine,
int  x,
int  y,
int  w,
int  h 
) [read]

Definition at line 148 of file external_engine.c.

Referenced by BlenderSession::render().

RenderEngine* RE_engine_create ( RenderEngineType type)

Definition at line 124 of file external_engine.c.

References MEM_callocN(), and RenderEngine::type.

Referenced by RE_engine_render(), and view3d_main_area_draw_engine().

void RE_engine_end_result ( RenderEngine engine,
struct RenderResult result 
)

Definition at line 192 of file external_engine.c.

Referenced by BlenderSession::render().

void RE_engine_free ( RenderEngine engine)
int RE_engine_is_external ( struct Render re)
int RE_engine_render ( struct Render re,
int  do_all 
)
void RE_engine_report ( RenderEngine engine,
int  type,
const char *  msg 
)

Definition at line 264 of file external_engine.c.

References BKE_report(), RenderEngine::re, and Render::reports.

int RE_engine_test_break ( RenderEngine engine)

Definition at line 215 of file external_engine.c.

Referenced by BlenderSession::test_cancel().

void RE_engine_update_progress ( RenderEngine engine,
float  progress 
)

Definition at line 254 of file external_engine.c.

Referenced by BlenderSession::update_status_progress().

void RE_engine_update_result ( RenderEngine engine,
struct RenderResult result 
)

Definition at line 182 of file external_engine.c.

Referenced by BlenderSession::write_render_result().

void RE_engine_update_stats ( RenderEngine engine,
const char *  stats,
const char *  info 
)

Definition at line 227 of file external_engine.c.

Referenced by BlenderSession::update_status_progress().

void RE_engines_exit ( void  )
RenderEngineType* RE_engines_find ( const char *  idname)
void RE_engines_init ( void  )

Definition at line 79 of file external_engine.c.

References BLI_addtail().

Referenced by main().

void RE_layer_load_from_file ( struct RenderLayer layer,
struct ReportList reports,
const char *  filename,
int  x,
int  y 
)
void RE_result_load_from_file ( struct RenderResult result,
struct ReportList reports,
const char *  filename 
)

Definition at line 2369 of file pipeline.c.

References BKE_reportf(), render_result_exr_file_read_path(), and RPT_ERROR.


Variable Documentation

Definition at line 77 of file external_engine.c.

Referenced by set_engine(), and WM_read_file().