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

« back to all changes in this revision

Viewing changes to source/blender/nodes/composite/nodes/node_composite_bokehimage.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:
1
1
/*
2
 
* $Id$
3
 
*
4
 
* ***** BEGIN GPL LICENSE BLOCK *****
5
 
*
6
 
* This program is free software; you can redistribute it and/or
7
 
* modify it under the terms of the GNU General Public License
8
 
* as published by the Free Software Foundation; either version 2
9
 
* of the License, or (at your option) any later version. 
10
 
*
11
 
* This program is distributed in the hope that it will be useful,
12
 
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 
* GNU General Public License for more details.
15
 
16
 
* You should have received a copy of the GNU General Public License
17
 
* along with this program; if not, write to the Free Software Foundation,
18
 
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19
 
20
 
* The Original Code is Copyright (C) 2006 Blender Foundation.
21
 
* All rights reserved.
22
 
23
 
* The Original Code is: all of this file.
24
 
25
 
* Contributor(s): none yet.
26
 
27
 
* ***** END GPL LICENSE BLOCK *****
 
2
 * ***** BEGIN GPL LICENSE BLOCK *****
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or
 
5
 * modify it under the terms of the GNU General Public License
 
6
 * as published by the Free Software Foundation; either version 2
 
7
 * of the License, or (at your option) any later version.
 
8
 *
 
9
 * This program is distributed in the hope that it will be useful,
 
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
 * GNU General Public License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU General Public License
 
15
 * along with this program; if not, write to the Free Software Foundation,
 
16
 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
17
 *
 
18
 * The Original Code is Copyright (C) 2006 Blender Foundation.
 
19
 * All rights reserved.
 
20
 *
 
21
 * The Original Code is: all of this file.
 
22
 *
 
23
 * Contributor(s): none yet.
 
24
 *
 
25
 * ***** END GPL LICENSE BLOCK *****
28
26
 
29
 
*/
 
27
 */
30
28
 
31
29
/** \file blender/nodes/composite/nodes/node_composite_bokehimage.c
32
30
 *  \ingroup cmpnodes
41
39
        {       SOCK_RGBA, 0, N_("Image"),                      0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f},
42
40
        {       -1, 0, ""       }
43
41
};
44
 
static void node_composit_init_bokehimage(bNodeTree *UNUSED(ntree), bNode *node, bNodeTemplate *UNUSED(ntemp))
 
42
 
 
43
static void node_composit_init_bokehimage(bNodeTree *UNUSED(ntree), bNode *node)
45
44
{
46
 
        NodeBokehImage * data = MEM_callocN(sizeof(NodeBokehImage), "NodeBokehImage");
 
45
        NodeBokehImage *data = MEM_callocN(sizeof(NodeBokehImage), "NodeBokehImage");
47
46
        data->angle = 0.0f;
48
47
        data->flaps = 5;
49
48
        data->rounding = 0.0f;
52
51
        node->storage = data;
53
52
}
54
53
 
55
 
void register_node_type_cmp_bokehimage(bNodeTreeType *ttype)
 
54
void register_node_type_cmp_bokehimage(void)
56
55
{
57
56
        static bNodeType ntype;
58
57
        
59
 
        node_type_base(ttype, &ntype, CMP_NODE_BOKEHIMAGE, "Bokeh Image", NODE_CLASS_INPUT, NODE_PREVIEW|NODE_OPTIONS);
 
58
        cmp_node_type_base(&ntype, CMP_NODE_BOKEHIMAGE, "Bokeh Image", NODE_CLASS_INPUT, NODE_PREVIEW);
60
59
        node_type_socket_templates(&ntype, NULL, cmp_node_bokehimage_out);
61
 
        node_type_size(&ntype, 140, 100, 320);
62
60
        node_type_init(&ntype, node_composit_init_bokehimage);
63
61
        node_type_storage(&ntype, "NodeBokehImage", node_free_standard_storage, node_copy_standard_storage);
64
62
 
65
 
        nodeRegisterType(ttype, &ntype);
 
63
        nodeRegisterType(&ntype);
66
64
}