Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/compositor/operations/COM_DotproductOperation.cc')
-rw-r--r--source/blender/compositor/operations/COM_DotproductOperation.cc26
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]);
}