|
JNGL
Easy to use cross-platform 2D game library
|
Lifetime object when the FrameBuffer is in use. More...
#include <jngl/FrameBuffer.hpp>
Public Member Functions | |
| Context (std::function< void()> resetCallback) | |
| Context (const Context &)=delete | |
| Context & | operator= (const Context &)=delete |
| Context (Context &&) noexcept | |
| Context & | operator= (Context &&) noexcept |
| void | clear () |
| Clear the framebuffer with a transparent background. | |
| void | clear (Rgb color) |
| Clear the framebuffer with color. | |
| void | clear (Rgba color) |
| Clear the framebuffer with color, including its alpha, e.g. | |
Lifetime object when the FrameBuffer is in use.
Definition at line 68 of file FrameBuffer.hpp.
| void clear | ( | Rgba | color | ) |
Clear the framebuffer with color, including its alpha, e.g.
to transparent black before drawing into it with BlendMode::Composite