ECE4760 - Laser Projector (ipb7, jcc384, pfc38)
1
Raster Laser Projection
|
Go to the source code of this file.
Macros | |
#define | swap(a, b) { short t = a; a = b; b = t; } |
#define | pgm_read_byte(addr) (*(const unsigned char *)(addr)) |
Functions | |
void | rendering_drawCircle (short x0, short y0, short r, struct color color) |
void | rendering_drawCircleHelper (short x0, short y0, short r, unsigned char cornername, struct color color) |
void | rendering_fillCircle (short x0, short y0, short r, struct color color) |
void | rendering_fillCircleHelper (short x0, short y0, short r, unsigned char cornername, short delta, struct color color) |
void | rendering_drawLine (short x0, short y0, short x1, short y1, struct color color) |
void | rendering_drawRect (short x, short y, short w, short h, struct color color) |
void | rendering_drawRoundRect (short x, short y, short w, short h, short r, struct color color) |
void | rendering_fillRoundRect (short x, short y, short w, short h, short r, struct color color) |
void | rendering_drawTriangle (short x0, short y0, short x1, short y1, short x2, short y2, struct color color) |
void | rendering_fillTriangle (short x0, short y0, short x1, short y1, short x2, short y2, struct color color) |
void | rendering_drawBitmap (short x, short y, const unsigned char *bitmap, short w, short h, struct color color) |
void | rendering_write (unsigned char c) |
void | rendering_writeString (char *str) |
void | rendering_drawChar (short x, short y, unsigned char c, struct color color, struct color bg, unsigned char size) |
void | rendering_setCursor (short x, short y) |
void | rendering_setTextSize (unsigned char s) |
void | rendering_setTextColor (struct color c) |
void | rendering_setTextColor2 (struct color c, struct color b) |
void | rendering_setTextWrap (char w) |
unsigned char | rendering_getRotation (void) |
void | rendering_drawPixel (short x, short y, struct color color) |
void | rendering_drawFastVLine (short x, short y, short h, struct color color) |
void | rendering_drawFastHLine (short x, short y, short w, struct color color) |
void | rendering_fillRect (short x, short y, short w, short h, struct color color) |
void | rendering_drawMinimalCross (short const x, short const y, struct color const color) |
Draw a 3x3 pixel cross. More... | |
#define pgm_read_byte | ( | addr | ) | (*(const unsigned char *)(addr)) |
Definition at line 55 of file rendering.c.
#define swap | ( | a, | |
b | |||
) | { short t = a; a = b; b = t; } |
Definition at line 54 of file rendering.c.
void rendering_drawBitmap | ( | short | x, |
short | y, | ||
const unsigned char * | bitmap, | ||
short | w, | ||
short | h, | ||
struct color color | |||
) |
Definition at line 449 of file rendering.c.
void rendering_drawChar | ( | short | x, |
short | y, | ||
unsigned char | c, | ||
struct color color | , | ||
struct color | bg, | ||
unsigned char | size | ||
) |
Definition at line 496 of file rendering.c.
Definition at line 100 of file rendering.c.
void rendering_drawCircleHelper | ( | short | x0, |
short | y0, | ||
short | r, | ||
unsigned char | cornername, | ||
struct color color | |||
) |
Definition at line 145 of file rendering.c.
Definition at line 622 of file rendering.c.
Definition at line 594 of file rendering.c.
Definition at line 231 of file rendering.c.
void rendering_drawMinimalCross | ( | short const | x, |
short const | y, | ||
struct color const | color | ||
) |
Draw a 3x3 pixel cross.
x | X coordinate of center of cross |
y | Y coordinate of center of cross |
color | Color of cross |
The cross is the center pixel plus one pixel above and below the center and one pixel to the left and right of the center.
Definition at line 694 of file rendering.c.
Definition at line 583 of file rendering.c.
Definition at line 285 of file rendering.c.
Definition at line 306 of file rendering.c.
void rendering_drawTriangle | ( | short | x0, |
short | y0, | ||
short | x1, | ||
short | y1, | ||
short | x2, | ||
short | y2, | ||
struct color color | |||
) |
Definition at line 344 of file rendering.c.
Definition at line 183 of file rendering.c.
void rendering_fillCircleHelper | ( | short | x0, |
short | y0, | ||
short | r, | ||
unsigned char | cornername, | ||
short | delta, | ||
struct color color | |||
) |
Definition at line 199 of file rendering.c.
Definition at line 653 of file rendering.c.
Definition at line 333 of file rendering.c.
void rendering_fillTriangle | ( | short | x0, |
short | y0, | ||
short | x1, | ||
short | y1, | ||
short | x2, | ||
short | y2, | ||
struct color color | |||
) |
Definition at line 363 of file rendering.c.
|
inline |
Definition at line 572 of file rendering.c.
|
inline |
Definition at line 531 of file rendering.c.
|
inline |
Definition at line 551 of file rendering.c.
Definition at line 557 of file rendering.c.
|
inline |
Definition at line 542 of file rendering.c.
|
inline |
Definition at line 568 of file rendering.c.
void rendering_write | ( | unsigned char | c | ) |
Definition at line 464 of file rendering.c.
|
inline |
Definition at line 485 of file rendering.c.