37 : _parametersManager(parametersManager)
50 frameBuffer->setAccumulation(
_renderer->getAccumulation());
51 frameBuffer->setSubsampling(
_renderer->getSubsampling());
59 _camera->setBufferTarget(frameBuffer->getName());
69 frameBuffer->incrementAccumFrames();
81 (frameBuffer->getAccumulation() && (frameBuffer->numAccumFrames() <
_renderer->getMaxAccumFrames()));
103 frameBuffer->resetModified();
PLATFORM_API void removeFrameBuffer(FrameBufferPtr frameBuffer)
Removes a frame buffer from the list of buffers that are filled during rendering.
PLATFORM_API void addRendererType(const std::string &name, const PropertyMap &properties={})
Adds a new renderer type with optional properties.
std::vector< FrameBufferPtr > _frameBuffers
PLATFORM_API bool continueRendering() const
Returns a boolean indicating whether render calls shall be continued based on current accumulation se...
ParametersManager & _parametersManager
PLATFORM_API Renderer & getRenderer()
Returns the renderer.
virtual PLATFORM_API void commit()
Commits changes to the engine. This includes scene modifications, camera modifications and renderer m...
virtual PLATFORM_API void preRender()
Executes engine-specific pre-render operations.
PLATFORM_API void clearFrameBuffers()
Clears all frame buffers.
PLATFORM_API void render()
Renders the current scene and populates the frame buffer accordingly.
PLATFORM_API void addFrameBuffer(FrameBufferPtr frameBuffer)
Adds a frame buffer to the list to be filled during rendering.
virtual PLATFORM_API void postRender()
Executes engine-specific post-render operations.
PLATFORM_API void addCameraType(const std::string &name, const PropertyMap &properties={})
Adds a new camera type with optional properties.
PLATFORM_API void resetFrameBuffers()
Resets all frame buffers.
PLATFORM_API const Camera & getCamera() const
Returns the camera.
PLATFORM_API Engine(ParametersManager ¶metersManager)
Engine Constructor.
PLATFORM_API AnimationParameters & getAnimationParameters()
PLATFORM_API RenderingParameters & getRenderingParameters()
void setProperties(const PropertyMap &properties)
Renderer class inherits from PropertyObject class The Renderer class has methods to render a FrameBuf...
void addCamera(const std::string &camera)
void addRenderer(const std::string &renderer)
std::shared_ptr< FrameBuffer > FrameBufferPtr