forked from bartvdbraak/blender
style cleanup
This commit is contained in:
parent
b0fc0baafe
commit
6d79568f66
@ -27,16 +27,16 @@
|
||||
|
||||
PixelateNode::PixelateNode(bNode *editorNode) : Node(editorNode)
|
||||
{
|
||||
/* pass */
|
||||
/* pass */
|
||||
}
|
||||
|
||||
void PixelateNode::convertToOperations(ExecutionSystem *graph, CompositorContext *context)
|
||||
{
|
||||
InputSocket *inputSocket = this->getInputSocket(0);
|
||||
OutputSocket *outputSocket = this->getOutputSocket(0);
|
||||
|
||||
PixelateOperation *operation = new PixelateOperation(inputSocket->getDataType());
|
||||
inputSocket->relinkConnections(operation->getInputSocket(0), 0, graph);
|
||||
outputSocket->relinkConnections(operation->getOutputSocket(0));
|
||||
graph->addOperation(operation);
|
||||
InputSocket *inputSocket = this->getInputSocket(0);
|
||||
OutputSocket *outputSocket = this->getOutputSocket(0);
|
||||
|
||||
PixelateOperation *operation = new PixelateOperation(inputSocket->getDataType());
|
||||
inputSocket->relinkConnections(operation->getInputSocket(0), 0, graph);
|
||||
outputSocket->relinkConnections(operation->getOutputSocket(0));
|
||||
graph->addOperation(operation);
|
||||
}
|
||||
|
@ -27,12 +27,12 @@
|
||||
|
||||
class PixelateOperation : public NodeOperation {
|
||||
private:
|
||||
SocketReader *m_inputOperation;
|
||||
SocketReader *m_inputOperation;
|
||||
public:
|
||||
PixelateOperation(DataType dataType);
|
||||
void initExecution();
|
||||
void deinitExecution();
|
||||
void executePixel(float output[4], float x, float y, PixelSampler sampler);
|
||||
PixelateOperation(DataType dataType);
|
||||
void initExecution();
|
||||
void deinitExecution();
|
||||
void executePixel(float output[4], float x, float y, PixelSampler sampler);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -37,21 +37,21 @@
|
||||
/* **************** Pixelate ******************** */
|
||||
|
||||
static bNodeSocketTemplate cmp_node_pixelate_in[] = {
|
||||
{ SOCK_RGBA, 1, N_("Color"), 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f, PROP_FACTOR},
|
||||
{ -1, 0, "" }
|
||||
{ SOCK_RGBA, 1, N_("Color"), 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f, PROP_FACTOR},
|
||||
{ -1, 0, "" }
|
||||
};
|
||||
static bNodeSocketTemplate cmp_node_pixelate_out[] = {
|
||||
{ SOCK_RGBA, 0, N_("Color")},
|
||||
{ -1, 0, "" }
|
||||
{ SOCK_RGBA, 0, N_("Color")},
|
||||
{ -1, 0, "" }
|
||||
};
|
||||
|
||||
void register_node_type_cmp_pixelate(bNodeTreeType *ttype)
|
||||
{
|
||||
static bNodeType ntype;
|
||||
static bNodeType ntype;
|
||||
|
||||
node_type_base(ttype, &ntype, CMP_NODE_PIXELATE, "Pixelate", NODE_CLASS_OP_FILTER, NODE_OPTIONS);
|
||||
node_type_socket_templates(&ntype, cmp_node_pixelate_in, cmp_node_pixelate_out);
|
||||
node_type_size(&ntype, 130, 100, 130);
|
||||
node_type_base(ttype, &ntype, CMP_NODE_PIXELATE, "Pixelate", NODE_CLASS_OP_FILTER, NODE_OPTIONS);
|
||||
node_type_socket_templates(&ntype, cmp_node_pixelate_in, cmp_node_pixelate_out);
|
||||
node_type_size(&ntype, 130, 100, 130);
|
||||
|
||||
nodeRegisterType(ttype, &ntype);
|
||||
nodeRegisterType(ttype, &ntype);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user