#define SERIALIZATION_ACCESS(type)
void _updateValue(T &member, const T &newValue, const bool triggerCallback=true)
Provides an abstract implementation of a ray-tracing engine.
Renderer class inherits from PropertyObject class The Renderer class has methods to render a FrameBuf...
PLATFORM_API void setBackgroundColor(const Vector3d &value)
Vector3d _backgroundColor
PLATFORM_API uint32_t getSubsampling() const
PLATFORM_API void setMaxAccumFrames(const size_t value)
virtual void setCamera(CameraPtr camera)=0
Set camera for renderer This virtual method is implemented in specific engine renderers to set the ca...
const RenderingParameters & _renderingParameters
PLATFORM_API const Vector3d & getBackgroundColor() const
PLATFORM_API size_t getMaxAccumFrames() const
PLATFORM_API Renderer(const AnimationParameters &animationParameters, const RenderingParameters &renderingParameters)
Constructs the Renderer object with animationParameters and renderingParameters.
void setEngine(Engine *engine)
Sets the _scene pointer to a specified ScenePtr.
virtual PickResult pick(const Vector2f &)
Pick method This method is used to pick a point on the scene and returns PickResult struct with hit b...
PLATFORM_API void setSamplesPerPixel(const uint32_t value)
PLATFORM_API void setHeadLight(const bool value)
PLATFORM_API bool getHeadLight() const
PLATFORM_API uint32_t getSamplesPerPixel() const
const AnimationParameters & _animationParameters
virtual void commit()=0
This virtual method is implemented in specific engine renderers to signal that rendering is complete.
PLATFORM_API bool getAccumulation() const
virtual float getVariance() const
Get variance from previous render() This method returns the variance from the previous render() call.
virtual void render(FrameBufferPtr frameBuffer)=0
Virtual method to render a FrameBuffer This method is implemented in specific engine renderers to dra...
PLATFORM_API void setSubsampling(const uint32_t subsampling)
std::shared_ptr< Camera > CameraPtr
glm::vec< 3, double > Vector3d
std::shared_ptr< FrameBuffer > FrameBufferPtr
PickResult Struct containing hit boolean value and Vector3d pos PickResult struct is used to retrieve...