mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-05 23:40:02 +01:00
Making classes non-assignable
Following CppCheck recomendation, all classes that should not be manipulated by value are made non-assignable to ensure no mistake is made.
This commit is contained in:
@@ -1,9 +1,27 @@
|
||||
|
||||
#include <glm/gtc/matrix_access.hpp>
|
||||
#include <glm/gtc/matrix_transform.hpp>
|
||||
|
||||
#include "defines.h"
|
||||
#include "Log.h"
|
||||
#include "ImageProcessingShader.h"
|
||||
|
||||
#include "Interpolator.h"
|
||||
|
||||
|
||||
Interpolator::Interpolator(Source *subject, const SourceCore &target) :
|
||||
subject_(subject), cursor_(0.f)
|
||||
subject_(subject), from_(static_cast<SourceCore> (*subject)), to_(target), cursor_(0.f)
|
||||
{
|
||||
from_ = static_cast<SourceCore> (*subject);
|
||||
to_ = target;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
void Interpolator::apply(float percent)
|
||||
{
|
||||
cursor_ = CLAMP( percent, 0.f, 1.f);
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user