mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-04 20:57:49 +00:00
25 lines
647 B
C++
25 lines
647 B
C++
#include "stdafx.h"
|
|
#include "V8DataModel/BlurEffect.h"
|
|
|
|
namespace RBX {
|
|
const char* const sBlurEffect = "BlurEffect";
|
|
|
|
REFLECTION_BEGIN();
|
|
static const Reflection::PropDescriptor<BlurEffect, int> prop_size("Size", category_Data, &BlurEffect::getSize, &BlurEffect::setSize);
|
|
REFLECTION_END();
|
|
|
|
int Size = 8;
|
|
bool isActive = false; // it has to be in lighting for now
|
|
|
|
BlurEffect::BlurEffect()
|
|
:DescribedCreatable<BlurEffect, PostEffect, sBlurEffect, Reflection::ClassDescriptor::PERSISTENT>("BlurEffect")
|
|
{
|
|
}
|
|
|
|
void BlurEffect::setSize(int value)
|
|
{
|
|
RBXASSERT(isFinite(value));
|
|
Size = value;
|
|
raisePropertyChanged(prop_size);
|
|
}
|
|
} |