Skip to content

Vp::SceneRenderTarget

A set of framebuffers and their settings into which a Scene can draw. More...

#include "Viewport/scene/SceneRenderTarget.h"

Public Functions

Name
voidaddFramebuffer(std::shared_ptr< Framebuffer > framebuffer)
std::weak_ptr< Framebuffer >getFramebuffer(unsigned int index)
std::weak_ptr< Framebuffer >getOutputFramebuffer()
const RenderOptions &getRenderOptions() const
voidsetOutputFramebuffer(std::weak_ptr< Framebuffer > framebuffer)
voidsetRenderOptions(const RenderOptions & renderOptions)

Detailed Description

cpp
class Vp::SceneRenderTarget;
class Vp::SceneRenderTarget;

A set of framebuffers and their settings into which a Scene can draw.

This is a separate class to allow rendering a single scene with different settings (requiring framebuffer(s) with different settings)

Public Functions Documentation

function addFramebuffer

cpp
void addFramebuffer(
    std::shared_ptr< Framebuffer > framebuffer
)
void addFramebuffer(
    std::shared_ptr< Framebuffer > framebuffer
)

function getFramebuffer

cpp
std::weak_ptr< Framebuffer > getFramebuffer(
    unsigned int index
)
std::weak_ptr< Framebuffer > getFramebuffer(
    unsigned int index
)

function getOutputFramebuffer

cpp
std::weak_ptr< Framebuffer > getOutputFramebuffer()
std::weak_ptr< Framebuffer > getOutputFramebuffer()

function getRenderOptions

cpp
const RenderOptions & getRenderOptions() const
const RenderOptions & getRenderOptions() const

function setOutputFramebuffer

cpp
void setOutputFramebuffer(
    std::weak_ptr< Framebuffer > framebuffer
)
void setOutputFramebuffer(
    std::weak_ptr< Framebuffer > framebuffer
)

function setRenderOptions

cpp
void setRenderOptions(
    const RenderOptions & renderOptions
)
void setRenderOptions(
    const RenderOptions & renderOptions
)

Updated on 2024-11-06 at 20:16:53 +0000