Expand description
Brain Display
Structs§
- A decoded image written to by VEXos.
Functions§
- Sets the color (encoded as RGB8) used for all future erasing display draws.
- Gets the currently set background color as an RGB8 color.
- Fills a circular region of the screen with the current background color.
- Strokes a one-pixel wide circle defined by a center-point and a radius with the current foreground color.
- Fills a circular region of the screen with the current foreground color.
- Sets a rectangular region of the display’s framebuffer that the current task is allowed to modify.
- Sets a rectangular region of the display’s framebuffer that the a given task index is allowed to modify.
- Draw a buffer of pixels to a rectangular region of the screen.
- Disables double-buffered mode, switching back to immediate mode rendering.
- Fills the entire framebuffer with the current background color.
- Safety
- Sets the color (encoded as RGB8) used for all future non-erasing display draws.
- Gets the currently set foreground color as an RGB8 color.
- Draws a one-pixel wide stroke line between two points with the current background color.
- Draws a one-pixel wide stroke line between two points with the current foreground color.
- Fills a given pixel of the screen with the current background color.
- Fills a given pixel of the screen with the current foreground color.
- Fills a rectangular region of the screen with the current background color.
- Strokes a one-pixel wide rectangular region of the screen with the current foreground color.
- Fills rectangular region of the screen with the current foreground color.
- Enables double-buffered mode on the display, flushing the intermediate framebuffer.
- Moves a region of the screen defined by all the pixels whose y-axis coordinate are within the range [nStartLine, 272)
nLines
pixels upwards, without affecting portions of the screen outside the specified scroll region. - Moves a rectangular region of the screen
nLines
pixels upwards, without affecting portions of the screen outside the specified scroll region. - Returns the calculated height (in pixels) of a string if it were to be drawn to the display.
- Returns the calculated width (in pixels) of a string if it were to be drawn to the display.
- Safety
- Draws a string of large-sized, center-justified text to the display at a given line.
- Draws a string of large-sized text to the display at a given line.
- Draws a string of large-sized text to the display at a top-left coordinate.
- Draws a string of center-justified text to the display at a given line.
- Draws a string of text to the display at a given top-left coordinate.
- Draws a string of small-sized text to the display at a given line.
- Draws a string of text to the display at a given line.
- Draws a string of text to the display at a given top-left coordinate.
- Decodes a bitmap-encoded image passed to
ibuf
into a buffer of pixels that can be drawn to the display. - Decodes a PNG file passed to
ibuf
into a buffer of pixels that can be drawn to the display. This function useslibpng
internally to decode the file’s contents.