~ubuntu-branches/ubuntu/trusty/blender/trusty-proposed

« back to all changes in this revision

Viewing changes to source/blender/nodes/shader/nodes/node_shader_tex_checker.c

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2013-08-14 10:43:49 UTC
  • mfrom: (14.2.19 sid)
  • Revision ID: package-import@ubuntu.com-20130814104349-t1d5mtwkphp12dyj
Tags: 2.68a-3
* Upload to unstable
* debian/: python3.3 Depends simplified
  - debian/control: python3.3 Depends dropped
    for blender-data package
  - 0001-blender_thumbnailer.patch refreshed
* debian/control: libavcodec b-dep versioning dropped

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
        {       -1, 0, ""       }
44
44
};
45
45
 
46
 
static void node_shader_init_tex_checker(bNodeTree *UNUSED(ntree), bNode *node, bNodeTemplate *UNUSED(ntemp))
 
46
static void node_shader_init_tex_checker(bNodeTree *UNUSED(ntree), bNode *node)
47
47
{
48
48
        NodeTexChecker *tex = MEM_callocN(sizeof(NodeTexChecker), "NodeTexChecker");
49
49
        default_tex_mapping(&tex->base.tex_mapping);
52
52
        node->storage = tex;
53
53
}
54
54
 
55
 
static int node_shader_gpu_tex_checker(GPUMaterial *mat, bNode *node, GPUNodeStack *in, GPUNodeStack *out)
 
55
static int node_shader_gpu_tex_checker(GPUMaterial *mat, bNode *node, bNodeExecData *UNUSED(execdata), GPUNodeStack *in, GPUNodeStack *out)
56
56
{
57
57
        if (!in[0].link)
58
58
                in[0].link = GPU_attribute(CD_ORCO, "");
63
63
}
64
64
 
65
65
/* node type definition */
66
 
void register_node_type_sh_tex_checker(bNodeTreeType *ttype)
 
66
void register_node_type_sh_tex_checker(void)
67
67
{
68
68
        static bNodeType ntype;
69
69
 
70
 
        node_type_base(ttype, &ntype, SH_NODE_TEX_CHECKER, "Checker Texture", NODE_CLASS_TEXTURE, 0);
 
70
        sh_node_type_base(&ntype, SH_NODE_TEX_CHECKER, "Checker Texture", NODE_CLASS_TEXTURE, 0);
71
71
        node_type_compatibility(&ntype, NODE_NEW_SHADING);
72
72
        node_type_socket_templates(&ntype, sh_node_tex_checker_in, sh_node_tex_checker_out);
73
 
        node_type_size(&ntype, 150, 60, 200);
74
73
        node_type_init(&ntype, node_shader_init_tex_checker);
75
74
        node_type_storage(&ntype, "NodeTexChecker", node_free_standard_storage, node_copy_standard_storage);
76
 
        node_type_exec(&ntype, NULL);
77
75
        node_type_gpu(&ntype, node_shader_gpu_tex_checker);
78
76
 
79
 
        nodeRegisterType(ttype, &ntype);
 
77
        nodeRegisterType(&ntype);
80
78
}