diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:17:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:21:24 +0300 |
commit | e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch) | |
tree | 8cf3453d12edb177a218ef8009357518ec6cab6a /source/blender/nodes/texture/node_texture_util.h | |
parent | b3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (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/nodes/texture/node_texture_util.h')
-rw-r--r-- | source/blender/nodes/texture/node_texture_util.h | 75 |
1 files changed, 41 insertions, 34 deletions
diff --git a/source/blender/nodes/texture/node_texture_util.h b/source/blender/nodes/texture/node_texture_util.h index 111b747fa9c..f638bdb0eec 100644 --- a/source/blender/nodes/texture/node_texture_util.h +++ b/source/blender/nodes/texture/node_texture_util.h @@ -21,7 +21,6 @@ * \ingroup nodes */ - #ifndef __NODE_TEXTURE_UTIL_H__ #define __NODE_TEXTURE_UTIL_H__ @@ -66,54 +65,62 @@ #include "RE_shader_ext.h" typedef struct TexCallData { - TexResult *target; - /* all float[3] */ - float *co; - float *dxt, *dyt; - - int osatex; - bool do_preview; - bool do_manage; - short thread; - short which_output; - int cfra; - - MTex *mtex; + TexResult *target; + /* all float[3] */ + float *co; + float *dxt, *dyt; + + int osatex; + bool do_preview; + bool do_manage; + short thread; + short which_output; + int cfra; + + MTex *mtex; } TexCallData; typedef struct TexParams { - float *co; - float *dxt, *dyt; - const float *previewco; - int cfra; - int osatex; - - /* optional. we don't really want these here, but image - * textures need to do mapping & color correction */ - MTex *mtex; + float *co; + float *dxt, *dyt; + const float *previewco; + int cfra; + int osatex; + + /* optional. we don't really want these here, but image + * textures need to do mapping & color correction */ + MTex *mtex; } TexParams; -typedef void(*TexFn) (float *out, TexParams *params, bNode *node, bNodeStack **in, short thread); +typedef void (*TexFn)(float *out, TexParams *params, bNode *node, bNodeStack **in, short thread); typedef struct TexDelegate { - TexCallData *cdata; - TexFn fn; - bNode *node; - bNodePreview *preview; - bNodeStack *in[MAX_SOCKET]; - int type; + TexCallData *cdata; + TexFn fn; + bNode *node; + bNodePreview *preview; + bNodeStack *in[MAX_SOCKET]; + int type; } TexDelegate; - bool tex_node_poll_default(struct bNodeType *ntype, struct bNodeTree *ntree); -void tex_node_type_base(struct bNodeType *ntype, int type, const char *name, short nclass, short flag); +void tex_node_type_base( + struct bNodeType *ntype, int type, const char *name, short nclass, short flag); void tex_input_rgba(float *out, bNodeStack *in, TexParams *params, short thread); void tex_input_vec(float *out, bNodeStack *in, TexParams *params, short thread); float tex_input_value(bNodeStack *in, TexParams *params, short thread); -void tex_output(bNode *node, bNodeExecData *execdata, bNodeStack **in, bNodeStack *out, TexFn texfn, TexCallData *data); -void tex_do_preview(bNodePreview *preview, const float coord[2], const float col[4], bool do_manage); +void tex_output(bNode *node, + bNodeExecData *execdata, + bNodeStack **in, + bNodeStack *out, + TexFn texfn, + TexCallData *data); +void tex_do_preview(bNodePreview *preview, + const float coord[2], + const float col[4], + bool do_manage); void params_from_cdata(TexParams *out, TexCallData *in); |