draw.c File Reference

Buffered graphics routines. More...

#include "pic_utils.h"
#include "draw\draw.h"
#include "config.h"
#include "draw\draw_screen_buffer.h"
Include dependency graph for draw.c:

Go to the source code of this file.

Defines

#define FONT_FIRST_CHAR   32
#define FONT_HEIGHT   7
#define FONT_LAST_CHAR   127

Functions

void draw_bitmap (uns8 x, uns8 y, uns8 colour, char *bitmap)
void draw_circle (int x_centre, int y_centre, int r, uns8 colour)
void draw_circle2 (int x_centre, int y_centre, int r, uns8 colour)
void draw_circle_lines (int ctr_x, int ctr_y, int pt_x, int pt_y, uns8 colour)
void draw_circle_points (int ctr_x, int ctr_y, int pt_x, int pt_y, uns8 colour)
void draw_circle_points2 (int ctr_x, int ctr_y, int pt_x, int pt_y, uns8 colour)
void draw_clear_screen ()
void draw_filled_circle (int x_centre, int y_centre, int r, uns8 colour)
uns8 draw_get_pixel (uns8 x, uns8 y)
void draw_init ()
uns16 draw_length_str (char *str)
void draw_line (uns8 x0, uns8 y0, uns8 x1, uns8 y1, uns8 colour)
void draw_print_buffer ()
void draw_print_str (uns8 x, uns8 y, uns8 width, uns8 start_pixel, uns8 colour, char *str)
void draw_rect (uns8 x, uns8 y, uns16 width, uns8 height, uns8 colour)
void draw_set_pixel (uns8 x, uns8 y, uns8 colour)
void draw_setup_io ()

Variables

rom char PicPack5x7_bitmap_0 [1]
rom char PicPack5x7_bitmap_1 [1]
uns16 PicPack5x7_index [1]

Detailed Description

Definition in file draw.c.


Define Documentation

#define FONT_FIRST_CHAR   32

Definition at line 507 of file draw.c.

#define FONT_HEIGHT   7

Definition at line 509 of file draw.c.

#define FONT_LAST_CHAR   127

Definition at line 508 of file draw.c.


Function Documentation

void draw_bitmap ( uns8  x,
uns8  y,
uns8  colour,
char *  bitmap 
)

Definition at line 591 of file draw.c.

References draw_set_pixel(), and uns8.

Referenced by draw_tests_run().

Here is the call graph for this function:

Here is the caller graph for this function:

void draw_circle ( int  x_centre,
int  y_centre,
int  r,
uns8  colour 
)

Definition at line 390 of file draw.c.

References draw_circle_points().

Here is the call graph for this function:

void draw_circle2 ( int  x_centre,
int  y_centre,
int  r,
uns8  colour 
)

Definition at line 426 of file draw.c.

References draw_circle_points2().

Referenced by draw_tests_run().

Here is the call graph for this function:

Here is the caller graph for this function:

void draw_circle_lines ( int  ctr_x,
int  ctr_y,
int  pt_x,
int  pt_y,
uns8  colour 
)

Definition at line 345 of file draw.c.

References draw_line().

Referenced by draw_filled_circle().

Here is the call graph for this function:

Here is the caller graph for this function:

void draw_circle_points ( int  ctr_x,
int  ctr_y,
int  pt_x,
int  pt_y,
uns8  colour 
)

Definition at line 375 of file draw.c.

References draw_set_pixel().

Referenced by draw_circle().

Here is the call graph for this function:

Here is the caller graph for this function:

void draw_circle_points2 ( int  ctr_x,
int  ctr_y,
int  pt_x,
int  pt_y,
uns8  colour 
)

Definition at line 411 of file draw.c.

References draw_set_pixel().

Referenced by draw_circle2().

Here is the call graph for this function:

Here is the caller graph for this function:

void draw_clear_screen (  ) 

Definition at line 49 of file draw.c.

References draw_buffer0, DRAW_TOTAL_BUFFER_SIZE, and uns8.

Referenced by draw_init(), and draw_tests_run().

Here is the caller graph for this function:

void draw_filled_circle ( int  x_centre,
int  y_centre,
int  r,
uns8  colour 
)

Definition at line 352 of file draw.c.

References draw_circle_lines().

Here is the call graph for this function:

uns8 draw_get_pixel ( uns8  x,
uns8  y 
)

Definition at line 246 of file draw.c.

void draw_init (  ) 

Definition at line 128 of file draw.c.

References draw_clear_screen(), and drv_init().

Here is the call graph for this function:

uns16 draw_length_str ( char *  str  ) 

Definition at line 514 of file draw.c.

References PicPack5x7_index, uns16, and uns8.

void draw_line ( uns8  x0,
uns8  y0,
uns8  x1,
uns8  y1,
uns8  colour 
)

Definition at line 307 of file draw.c.

References draw_set_pixel().

Referenced by draw_circle_lines(), and draw_tests_run().

Here is the call graph for this function:

Here is the caller graph for this function:

void draw_print_buffer (  ) 

Definition at line 266 of file draw.c.

References draw_buffer0, DRAW_PIXELS_PER_BYTE, serial_print_int(), serial_print_int_hex(), serial_print_str(), serial_putc(), uns16, and uns8.

Here is the call graph for this function:

void draw_print_str ( uns8  x,
uns8  y,
uns8  width,
uns8  start_pixel,
uns8  colour,
char *  str 
)

Definition at line 529 of file draw.c.

References draw_set_pixel(), PicPack5x7_bitmap_0, PicPack5x7_bitmap_1, PicPack5x7_index, uns16, and uns8.

Referenced by draw_tests_run().

Here is the call graph for this function:

Here is the caller graph for this function:

void draw_rect ( uns8  x,
uns8  y,
uns16  width,
uns8  height,
uns8  colour 
)

Definition at line 251 of file draw.c.

References draw_set_pixel(), and uns16.

Referenced by draw_tests_run().

Here is the call graph for this function:

Here is the caller graph for this function:

void draw_set_pixel ( uns8  x,
uns8  y,
uns8  colour 
)

Definition at line 135 of file draw.c.

References draw_buffer0, uns16, and uns8.

Referenced by draw_bitmap(), draw_circle_points(), draw_circle_points2(), draw_line(), draw_print_str(), draw_rect(), and draw_tests_run().

Here is the caller graph for this function:

void draw_setup_io (  ) 

Definition at line 124 of file draw.c.

References drv_setup_io().

Here is the call graph for this function:


Variable Documentation

rom char PicPack5x7_bitmap_0[1]

Definition at line 54 of file draw_font_picpack_5x7.c.

Referenced by draw_print_str().

rom char PicPack5x7_bitmap_1[1]

Definition at line 123 of file draw_font_picpack_5x7.c.

Referenced by draw_print_str().

uns16 PicPack5x7_index[1]

Definition at line 157 of file draw_font_picpack_5x7.c.

Referenced by draw_length_str(), and draw_print_str().


Generated on Wed Dec 8 13:47:01 2010 for Pic Pack by  doxygen 1.6.1