EE445M RTOS
Taken at the University of Texas Spring 2015
framebuffer.h File Reference
#include <stdarg.h>
#include "libstd/defines.h"
#include "libstd/nexus.h"
#include "libmath/geometry/shape.h"
#include "libfont/font.h"
Include dependency graph for framebuffer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef char ** framebuffer
 

Functions

framebuffer fb_init (void)
 Create a framebuffer object and return the handle. More...
 
void fb_destroy (framebuffer)
 Destroy a framebuffer object. More...
 
void fb_erase_string (framebuffer, point *, char *)
 Erase string on fb starting at top_left_corner. More...
 
void fb_erase_string_anon (framebuffer fb, point *top_left_corner, char *string)
 Erase string on fb starting at top_left_corner and free top_left_corner. More...
 
void fb_erase_char (framebuffer, point *, char)
 Erase char on fb starting at top_left_corner. More...
 
void fb_erase_char_anon (framebuffer fb, point *top_left_corner, char c)
 Call and free . More...
 
private void _fb_draw_string (framebuffer, point *, char *)
 For internal use only. More...
 
void fb_draw_string (framebuffer fb, point *top_left_corner, char *string)
 Draw string on fb starting at top_left_corner. More...
 
void fb_draw_string_anon_pt (framebuffer fb, point *top_left_corner, char *string)
 Call fb_draw_string and destroy top_left_corner. More...
 
private void _fb_draw_char (framebuffer, point *, char)
 For internal use only. More...
 
void fb_draw_shape (framebuffer, shape *)
 Using as a canvas, draw . More...
 
void fb_draw_shapes (framebuffer, ushort,...)
 
void fb_draw_shape_arr (framebuffer, ushort, shape **)
 
void fb_erase_shape_arr (framebuffer, ushort, shape **)
 
private void _fb_draw_shape (framebuffer, shape *, shade_t)
 For internal use only. More...
 
void fb_erase_shape (framebuffer fb, shape *sh)
 Using as a canvas, draw . More...
 
void fb_set_pixel (framebuffer, uchar, uchar, shade_t)
 In fb, set pixel (x,y) to . More...
 
void fb_clear_pixel (framebuffer fb, uchar x, uchar y)
 Clear pixel (x,y) in . More...
 
void fb_erase_pixel (framebuffer fb, uchar x, uchar y)
 Erase pixel (x,y) in . More...
 
private void _fb_draw_line (framebuffer, point *, point *, shade_t)
 The heavy-lifter (pixel-setter) in line-segment-drawing. More...
 
void fb_erase_anon_line (framebuffer fb, point *point1, point *point2)
 Erases a line connecting two points before destroys the two points. More...
 
void fb_erase_line (framebuffer fb, point *point1, point *point2)
 Remove a line segment on from to . More...
 
void fb_draw_anon_line (framebuffer fb, point *point1, point *point2, shade_t shade)
 Draws a line connecting two points before destroying the two points. More...
 
void fb_draw_line (framebuffer fb, point *point1, point *point2, shade_t shade)
 Draw a line segment on from to of color .to of color .shade. More...
 
void fb_draw_line_gradient (framebuffer fb, point *point1, point *point2, shade_t shade)
 Draw a line segment on from to . More...
 
void fb_draw_ellipse (framebuffer, point *, ushort, ushort, shade_t)
 Draw an ellipse in fb at center with specified x- and y-radii of color shade. More...
 
void fb_draw_circle (framebuffer fb, circle *c)
 Draw a circle in at with radius of color . More...
 
private void _fb_fill_four_ellipse_points (framebuffer, point *, ushort, ushort)
 Fill an ellipse on fb. More...
 
void fb_draw_ellipse_fill (framebuffer, point *, ushort, ushort, shade_t)
 Draw on fb a shaded ellipse described by center, x- and y-radii. More...
 
private void _fb_plot_four_ellipse_points (framebuffer, point *, ushort, ushort)
 Plot on fb the four symmetric points on an ellipse described by a center and x- and y-offsets. More...
 
void fb_console_println_point (point *)
 Print a point (ordered pair) to the console followed by a newline. More...
 
void fb_console_print_point (point *)
 Print a point (ordered pair) to the console. More...
 
void fb_console_println_coordinate (uchar, uchar, shade_t)
 Print a coordinate (ordered pair) to the console followed by a newline. More...
 
void fb_console_print_coordinate (uchar, uchar, shade_t)
 Print a coordinate (ordered pair) to the console. More...
 

Typedef Documentation

typedef char** framebuffer

Definition at line 12 of file framebuffer.h.