diff options
author | Manuel Castilla <manzanillawork@gmail.com> | 2021-10-14 00:01:15 +0300 |
---|---|---|
committer | Manuel Castilla <manzanillawork@gmail.com> | 2021-10-14 00:41:14 +0300 |
commit | 1c42d4930a24d639b3aa561b9a8b4bbce05977e0 (patch) | |
tree | 68c2aae3fd5ae98b78708bea28c0b55d3f4fb5f0 /source/blender/compositor/operations/COM_DotproductOperation.cc | |
parent | a2ee3c3a9f01f5cb2f05f1e84a1b6c1931d9d4a4 (diff) |
Cleanup: convert camelCase naming to snake_case in Compositor
To convert old code to the current convention and
use a single code style.
Diffstat (limited to 'source/blender/compositor/operations/COM_DotproductOperation.cc')
-rw-r--r-- | source/blender/compositor/operations/COM_DotproductOperation.cc | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/source/blender/compositor/operations/COM_DotproductOperation.cc b/source/blender/compositor/operations/COM_DotproductOperation.cc index ef309392d4d..9507f991b52 100644 --- a/source/blender/compositor/operations/COM_DotproductOperation.cc +++ b/source/blender/compositor/operations/COM_DotproductOperation.cc @@ -22,21 +22,21 @@ namespace blender::compositor { DotproductOperation::DotproductOperation() { - this->addInputSocket(DataType::Vector); - this->addInputSocket(DataType::Vector); - this->addOutputSocket(DataType::Value); + this->add_input_socket(DataType::Vector); + this->add_input_socket(DataType::Vector); + this->add_output_socket(DataType::Value); this->set_canvas_input_index(0); input1Operation_ = nullptr; input2Operation_ = nullptr; flags.can_be_constant = true; } -void DotproductOperation::initExecution() +void DotproductOperation::init_execution() { - input1Operation_ = this->getInputSocketReader(0); - input2Operation_ = this->getInputSocketReader(1); + input1Operation_ = this->get_input_socket_reader(0); + input2Operation_ = this->get_input_socket_reader(1); } -void DotproductOperation::deinitExecution() +void DotproductOperation::deinit_execution() { input1Operation_ = nullptr; input2Operation_ = nullptr; @@ -44,15 +44,15 @@ void DotproductOperation::deinitExecution() /** \todo current implementation is the inverse of a dot-product. not 'logically' correct */ -void DotproductOperation::executePixelSampled(float output[4], - float x, - float y, - PixelSampler sampler) +void DotproductOperation::execute_pixel_sampled(float output[4], + float x, + float y, + PixelSampler sampler) { float input1[4]; float input2[4]; - input1Operation_->readSampled(input1, x, y, sampler); - input2Operation_->readSampled(input2, x, y, sampler); + input1Operation_->read_sampled(input1, x, y, sampler); + input2Operation_->read_sampled(input2, x, y, sampler); output[0] = -(input1[0] * input2[0] + input1[1] * input2[1] + input1[2] * input2[2]); } |