JNGL
Easy to use cross-platform 2D game library
Loading...
Searching...
No Matches
FrameBuffer::Context Struct Reference

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.
 

Detailed Description

Lifetime object when the FrameBuffer is in use.

Definition at line 68 of file FrameBuffer.hpp.

Member Function Documentation

◆ clear()

void clear ( Rgba color)

Clear the framebuffer with color, including its alpha, e.g.

to transparent black before drawing into it with BlendMode::Composite


The documentation for this struct was generated from the following file: