Carna Version 3.3.3
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
Carna::base::RenderTask Class Reference

Invokes the rendering stages of the frame renderer successively. More...

#include <RenderTask.h>

+ Collaboration diagram for Carna::base::RenderTask:

Public Member Functions

 RenderTask (const FrameRenderer &renderer, const math::Matrix4f &projection, const math::Matrix4f &viewTransform)
 Instantiates. For internal usage only.
 
 RenderTask (const FrameRenderer &renderer, const math::Matrix4f &projection, const math::Matrix4f &viewTransform, Framebuffer &output)
 
 RenderTask (const RenderTask &parent, Framebuffer &output)
 Forks parent. The result of the fork will be rendered to output.
 
 RenderTask (const RenderTask &parent)
 Forks parent.
 
const math::Matrix4fviewTransform () const
 References the view matrix to be used.
 
void overrideViewTransform (const math::Matrix4f &)
 Overrides the view matrix to be used for further rendering.
 
void render (const Viewport &vp, unsigned int clearBuffersMask=0)
 Invokes renderStage an all associated render stages remained. Disabled stages are skipped.
 
void finish ()
 Finishes this task prematurely.
 

Public Attributes

const FrameRendererrenderer
 References the frame renderer.
 
const math::Matrix4fprojection
 References the projection matrix to be used.
 

Protected Member Functions

virtual void renderStage (RenderStage &rs, const Viewport &viewport)
 Renders rs with viewport through RenderStage::renderPass.
 

Detailed Description

Invokes the rendering stages of the frame renderer successively.

Author
Leonid Kostrykin
Date
22.2.15 - 19.3.15

Definition at line 40 of file RenderTask.h.

Constructor & Destructor Documentation

◆ RenderTask()

Carna::base::RenderTask::RenderTask ( const FrameRenderer renderer,
const math::Matrix4f projection,
const math::Matrix4f viewTransform,
Framebuffer output 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Member Data Documentation

◆ projection

const math::Matrix4f& Carna::base::RenderTask::projection

References the projection matrix to be used.

Definition at line 78 of file RenderTask.h.

◆ renderer

const FrameRenderer& Carna::base::RenderTask::renderer

References the frame renderer.

Definition at line 73 of file RenderTask.h.


The documentation for this class was generated from the following file: