LinearFramebuffer class is a temporary render target for linear color workflow. More...
#include <kanzi/core.ui/application/application.hpp>
Public Member Functions | |
| TextureSharedPtr | getTexture () const |
| Get the texture used as render target in the framebuffer. | |
| LinearFramebuffer (Domain *domain) | |
| Constructs the linear framebuffer object. | |
| void | resolve (Renderer &renderer) |
| Render a framebuffer sized quad with linear to sRGB shader material. | |
| void | update (Domain *domain, Renderer &renderer, unsigned int width, unsigned int height) |
| Update framebuffer resolution. | |
| ~LinearFramebuffer () | |
| Destructs the linear framebuffer object. | |
LinearFramebuffer class is a temporary render target for linear color workflow.
LinearFramebuffer is needed because it is not possible to create sRGB backbuffer with emscripten/WebGL. This class can be used to capture rendering from the application and resolve it using linear to sRGB converting shader so that the backbuffer contents are correctly gamma corrected.
|
explicit |
Constructs the linear framebuffer object.
| kanzi::LinearFramebuffer::~LinearFramebuffer | ( | ) |
Destructs the linear framebuffer object.
Render a framebuffer sized quad with linear to sRGB shader material.
| renderer | Renderer for the framebuffer. |
|
inline |
Get the texture used as render target in the framebuffer.