Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-04-17 07:17:24 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-04-17 07:21:24 +0300
commite12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch)
tree8cf3453d12edb177a218ef8009357518ec6cab6a /source/blender/depsgraph/DEG_depsgraph.h
parentb3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (diff)
ClangFormat: apply to source, most of intern
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
Diffstat (limited to 'source/blender/depsgraph/DEG_depsgraph.h')
-rw-r--r--source/blender/depsgraph/DEG_depsgraph.h46
1 files changed, 19 insertions, 27 deletions
diff --git a/source/blender/depsgraph/DEG_depsgraph.h b/source/blender/depsgraph/DEG_depsgraph.h
index 9770c7d49a3..c6a7cf9dcb7 100644
--- a/source/blender/depsgraph/DEG_depsgraph.h
+++ b/source/blender/depsgraph/DEG_depsgraph.h
@@ -62,19 +62,19 @@ struct Scene;
struct ViewLayer;
typedef enum eEvaluationMode {
- DAG_EVAL_VIEWPORT = 0, /* evaluate for OpenGL viewport */
- DAG_EVAL_RENDER = 1, /* evaluate for render purposes */
+ DAG_EVAL_VIEWPORT = 0, /* evaluate for OpenGL viewport */
+ DAG_EVAL_RENDER = 1, /* evaluate for render purposes */
} eEvaluationMode;
/* DagNode->eval_flags */
enum {
- /* 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
- * who're using curve deform, where_on_path and so. */
- DAG_EVAL_NEED_CURVE_PATH = (1 << 0),
- /* A shrinkwrap modifier or constraint targeting this mesh needs information
- * about non-manifold boundary edges for the Target Normal Project mode. */
- DAG_EVAL_NEED_SHRINKWRAP_BOUNDARY = (1 << 1),
+ /* 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
+ * who're using curve deform, where_on_path and so. */
+ DAG_EVAL_NEED_CURVE_PATH = (1 << 0),
+ /* A shrinkwrap modifier or constraint targeting this mesh needs information
+ * about non-manifold boundary edges for the Target Normal Project mode. */
+ DAG_EVAL_NEED_SHRINKWRAP_BOUNDARY = (1 << 1),
};
#ifdef __cplusplus
@@ -90,9 +90,7 @@ extern "C" {
/* Create new Depsgraph instance */
// TODO: what args are needed here? What's the building-graph entry point?
-Depsgraph *DEG_graph_new(struct Scene *scene,
- struct ViewLayer *view_layer,
- eEvaluationMode mode);
+Depsgraph *DEG_graph_new(struct Scene *scene, struct ViewLayer *view_layer, eEvaluationMode mode);
/* Free Depsgraph itself and all its data */
void DEG_graph_free(Depsgraph *graph);
@@ -154,9 +152,7 @@ void DEG_ids_check_recalc(struct Main *bmain,
* < context_type: context to perform evaluation for
* < ctime: (frame) new frame to evaluate values on
*/
-void DEG_evaluate_on_framechange(struct Main *bmain,
- Depsgraph *graph,
- float ctime);
+void DEG_evaluate_on_framechange(struct Main *bmain, Depsgraph *graph, float ctime);
/* Data changed recalculation entry point.
* < context_type: context to perform evaluation for
@@ -172,21 +168,17 @@ bool DEG_needs_eval(Depsgraph *graph);
*/
typedef struct DEGEditorUpdateContext {
- struct Main *bmain;
- struct Depsgraph *depsgraph;
- struct Scene *scene;
- struct ViewLayer *view_layer;
+ struct Main *bmain;
+ struct Depsgraph *depsgraph;
+ struct Scene *scene;
+ struct ViewLayer *view_layer;
} DEGEditorUpdateContext;
-typedef void (*DEG_EditorUpdateIDCb)(
- const DEGEditorUpdateContext *update_ctx,
- struct ID *id);
-typedef void (*DEG_EditorUpdateSceneCb)(
- const DEGEditorUpdateContext *update_ctx, int updated);
+typedef void (*DEG_EditorUpdateIDCb)(const DEGEditorUpdateContext *update_ctx, struct ID *id);
+typedef void (*DEG_EditorUpdateSceneCb)(const DEGEditorUpdateContext *update_ctx, int updated);
/* Set callbacks which are being called when depsgraph changes. */
-void DEG_editors_set_update_cb(DEG_EditorUpdateIDCb id_func,
- DEG_EditorUpdateSceneCb scene_func);
+void DEG_editors_set_update_cb(DEG_EditorUpdateIDCb id_func, DEG_EditorUpdateSceneCb scene_func);
/* Evaluation ----------------------------------- */
@@ -240,4 +232,4 @@ void DEG_debug_print_eval_time(struct Depsgraph *depsgraph,
} /* extern "C" */
#endif
-#endif /* __DEG_DEPSGRAPH_H__ */
+#endif /* __DEG_DEPSGRAPH_H__ */