Bare Metal Programming Tool Kit
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | List of all members
bmptk::graphics::frame_tee Class Reference

writes to the (2..4) underlying frames More...

#include <graphics.h>

Inheritance diagram for bmptk::graphics::frame_tee:
bmptk::graphics::frame

Public Member Functions

 frame_tee (frame &f1, frame &f2, frame &f3=frame_dummy_ref(), frame &f4=frame_dummy_ref())
 construct a frame_tee from underlying frames
 
void checked_write (const vector p, const color c)
 write to both underlying frames
 
void flush ()
 flush both underlying frames
 
void clear (const color c=color::white())
 clear both underlying frames, and remember the color used
 
- Public Member Functions inherited from bmptk::graphics::frame
 frame (const vector size)
 create a frame of specified size
 
vector size_get () const
 get the size of the frame
 
virtual vector translate_outfrom (const vector p) const
 translate a subframe coordinate to a master frame coordinate
 
virtual vector translate_into (const vector p) const
 translate a master frame coordinate to a subframe coordinate
 
bool is_valid (vector p)
 whether p is within the frame
 
color bg_get ()
 get the backround color
 
void write (const vector p, const color c)
 write one pixel, address specified by vector
 

Additional Inherited Members

- Protected Attributes inherited from bmptk::graphics::frame
const vector size
 frame size
 
color bg
 most recently applied background color (as used in clear())
 

Detailed Description

writes to the (2..4) underlying frames

A frame_tee is a frame that forwards writes to the underlying frames. The constructor supports 2..4 underlying frames.

Definition at line 1009 of file graphics.h.


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