Tfblib
|
Macros | |
#define | TFB_FL_KB_NONBLOCK (1 << 2) |
Non-blocking input mode. More... | |
#define | TFB_FL_NO_TTY_KD_GRAPHICS (1 << 0) |
Do NOT put TTY in graphics mode. More... | |
#define | TFB_FL_USE_DOUBLE_BUFFER (1 << 1) |
Do NOT write directly onto the framebuffer. More... | |
#define | TFB_FONT_ANY_WIDTH 0 |
When passed to the 'w' param of tfb_set_font_by_size(), means that any font width is acceptable. | |
#define | TFB_FONT_ANY_HEIGHT 0 |
When passed to the 'h' param of tfb_set_font_by_size(), means that any font height is acceptable. | |
#define TFB_FL_KB_NONBLOCK (1 << 2) |
Non-blocking input mode.
When passed to tfb_set_kb_raw_mode(), this flag makes the TTY input to be non-blocking.
#define TFB_FL_NO_TTY_KD_GRAPHICS (1 << 0) |
Do NOT put TTY in graphics mode.
Passing this flag to tfb_acquire_fb() will allow to use the framebuffer and to see stdout on TTY as well. That usually is undesirable because the text written to TTY will overwrite the graphics.
#define TFB_FL_USE_DOUBLE_BUFFER (1 << 1) |
Do NOT write directly onto the framebuffer.
Passing this flag to tfb_acquire_fb() will make it allocate a regular memory buffer where all the writes (while drawing) will be directed to. The changes will appear on-screen only after manually called tfb_flush_rect() or tfb_flush_rect(). This flag is useful for applications needing to clean and redraw the whole screen (or part of it) very often (e.g. games) in order to avoid the annoying flicker effect.