cubos::engine::RenderTarget struct

Component which represents a render target.

If the framebuffer is set to nullptr, the target will be assumed to be the window. In that case, the size will be automatically updated to the window's size.

Public variables

glm::uvec2 size
Size of the target texture, in pixels.
core::gl::Framebuffer framebuffer
Framebuffer to render to.
bool cleared
Whether the target has been already cleared this frame.