Changeset View
Changeset View
Standalone View
Standalone View
source/blender/depsgraph/DEG_depsgraph.h
| Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | |||||
| struct EvaluationContext; | struct EvaluationContext; | ||||
| struct Main; | struct Main; | ||||
| struct PointerRNA; | struct PointerRNA; | ||||
| struct PropertyRNA; | struct PropertyRNA; | ||||
| struct RenderEngineType; | struct RenderEngineType; | ||||
| struct Scene; | struct Scene; | ||||
| struct SceneLayer; | struct ViewLayer; | ||||
| typedef enum eEvaluationMode { | typedef enum eEvaluationMode { | ||||
| DAG_EVAL_VIEWPORT = 0, /* evaluate for OpenGL viewport */ | DAG_EVAL_VIEWPORT = 0, /* evaluate for OpenGL viewport */ | ||||
| DAG_EVAL_PREVIEW = 1, /* evaluate for render with preview settings */ | DAG_EVAL_PREVIEW = 1, /* evaluate for render with preview settings */ | ||||
| DAG_EVAL_RENDER = 2, /* evaluate for render purposes */ | DAG_EVAL_RENDER = 2, /* evaluate for render purposes */ | ||||
| } eEvaluationMode; | } eEvaluationMode; | ||||
| /* Dependency graph evaluation context | /* Dependency graph evaluation context | ||||
| * | * | ||||
| * This structure stores all the local dependency graph data, | * This structure stores all the local dependency graph data, | ||||
| * which is needed for it's evaluation, | * which is needed for it's evaluation, | ||||
| */ | */ | ||||
| typedef struct EvaluationContext { | typedef struct EvaluationContext { | ||||
| eEvaluationMode mode; | eEvaluationMode mode; | ||||
| float ctime; | float ctime; | ||||
| struct Depsgraph *depsgraph; | struct Depsgraph *depsgraph; | ||||
| struct SceneLayer *scene_layer; | struct ViewLayer *view_layer; | ||||
| struct RenderEngineType *engine; | struct RenderEngineType *engine; | ||||
| } EvaluationContext; | } EvaluationContext; | ||||
| /* DagNode->eval_flags */ | /* DagNode->eval_flags */ | ||||
| enum { | enum { | ||||
| /* Regardless to curve->path animation flag path is to be evaluated anyway, | /* Regardless to curve->path animation flag path is to be evaluated anyway, | ||||
| * to meet dependencies with such a things as curve modifier and other guys | * to meet dependencies with such a things as curve modifier and other guys | ||||
| * who're using curve deform, where_on_path and so. | * who're using curve deform, where_on_path and so. | ||||
| ▲ Show 20 Lines • Show All 109 Lines • ▼ Show 20 Lines | |||||
| /* Initialize evaluation context. | /* Initialize evaluation context. | ||||
| * Used by the areas which currently overrides the context or doesn't have | * Used by the areas which currently overrides the context or doesn't have | ||||
| * access to a proper one. | * access to a proper one. | ||||
| */ | */ | ||||
| void DEG_evaluation_context_init(struct EvaluationContext *eval_ctx, | void DEG_evaluation_context_init(struct EvaluationContext *eval_ctx, | ||||
| eEvaluationMode mode); | eEvaluationMode mode); | ||||
| void DEG_evaluation_context_init_from_scene(struct EvaluationContext *eval_ctx, | void DEG_evaluation_context_init_from_scene(struct EvaluationContext *eval_ctx, | ||||
| struct Scene *scene, | struct Scene *scene, | ||||
| struct SceneLayer *scene_layer, | struct ViewLayer *view_layer, | ||||
| struct RenderEngineType *engine, | struct RenderEngineType *engine, | ||||
| eEvaluationMode mode); | eEvaluationMode mode); | ||||
| /* Free evaluation context. */ | /* Free evaluation context. */ | ||||
| void DEG_evaluation_context_free(struct EvaluationContext *eval_ctx); | void DEG_evaluation_context_free(struct EvaluationContext *eval_ctx); | ||||
| /* Graph Evaluation ----------------------------- */ | /* Graph Evaluation ----------------------------- */ | ||||
| ▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines | |||||