You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

32 lines
577 B

#include "graphics/rendertask.h"
#include "graphics/camera.h"
#include "graphics/drawable.h"
#include "graphics/rendertarget.h"
namespace vtk {
RenderTask::RenderTask(Drawable& drawable, Camera& camera, RenderTarget& renderTarget) :
mDrawable(drawable),
mCamera(camera),
mRenderTarget(renderTarget)
{
}
void RenderTask::draw() {
mRenderTarget.activate();
mDrawable.draw(*this);
}
Drawable& RenderTask::getDrawable() {
return mDrawable;
}
Camera& RenderTask::getCamera() {
return mCamera;
}
RenderTarget& RenderTask::getRenderTarget() {
return mRenderTarget;
}
}