pub enum RenderMode {
Immediate,
DoubleBuffered,
}
Expand description
The rendering mode for the VEX V5’s display
When using the display in the Immediate
mode, all draw operations will immediately show up on the display.
The DoubleBuffered
mode instead applies draw operations onto an intermediate buffer
that can be swapped onto the display by calling Display::render
, thereby preventing screen tearing.
By default, the display uses the Immediate
mode.
§Note
Display::render
MUST be called for anything to appear on the display when using the DoubleBuffered
mode.
Variants§
Immediate
Draw operations are immediately applied to the display without the need to call Display::render
.
DoubleBuffered
Draw calls are affected on an intermediary display buffer, rather than directly drawn to the display.
The intermediate buffer can later be applied to the display using Display::render
This mode is necessary for preventing screen tearing when drawing at high speeds.
Trait Implementations§
Source§impl Clone for RenderMode
impl Clone for RenderMode
Source§fn clone(&self) -> RenderMode
fn clone(&self) -> RenderMode
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more