ECE4760 - Laser Projector (ipb7, jcc384, pfc38)  1
Raster Laser Projection
rendering.h
Go to the documentation of this file.
1 #ifndef _RENDERING_H
2 #define _RENDERING_H
3 
4 /*******************************/
5 /* Includes */
6 /*******************************/
8 
9 #include "include.h"
10 #include "color.h"
11 #include "projector.h"
12 
14 
15 /*******************************/
16 /* GLOBAL Macro Definitions */
17 /*******************************/
19 
21 
22 /*********************************/
23 /* GLOBAL Type(def) Declarations */
24 /*********************************/
26 
28 
29 /********************************/
30 /* GLOBAL Variable Declarations */
31 /********************************/
33 
35 
36 /********************************/
37 /* GLOBAL Function Declarations */
38 /********************************/
40 
41 void rendering_drawLine(short x0, short y0, short x1, short y1,
42  struct color color);
43 
44 void rendering_drawRect(short x, short y, short w, short h,
45  struct color color);
46 
47 void rendering_drawCircle(short x0, short y0, short r,
48  struct color color);
49 
50 void rendering_drawCircleHelper(short x0, short y0, short r, unsigned char cornername,
51  struct color color);
52 
53 void rendering_fillCircle(short x0, short y0, short r,
54  struct color color);
55 
56 void rendering_fillCircleHelper(short x0, short y0, short r, unsigned char cornername,
57  short delta, struct color color);
58 
59 void rendering_drawTriangle(short x0, short y0, short x1, short y1,
60  short x2, short y2, struct color color);
61 
62 void rendering_fillTriangle(short x0, short y0, short x1, short y1,
63  short x2, short y2, struct color color);
64 
65 void rendering_drawRoundRect(short x0, short y0, short w, short h,
66  short radius, struct color color);
67 
68 void rendering_fillRoundRect(short x0, short y0, short w, short h, short radius,
69  struct color color);
70 
71 void rendering_drawBitmap(short x, short y, const unsigned char *bitmap, short w,
72  short h, struct color color);
73 
74 void rendering_drawChar(short x, short y, unsigned char c,
75  struct color color,
76  struct color bg, unsigned char size);
77 
78 void rendering_setCursor(short x, short y);
79 
80 void rendering_setTextColor(struct color c);
81 
82 void rendering_setTextColor2(struct color c,
83  struct color bg);
84 
85 void rendering_setTextSize(unsigned char s);
86 
87 void rendering_setTextWrap(char w);
88 
89 void rendering_write(unsigned char c);
90 
91 void rendering_writeString(char* str); // This is the function to use to write a string
92 
93 void rendering_drawPixel(short x, short y, struct color color);
94 
95 void rendering_drawFastVLine(short x, short y, short h,
96  struct color color);
97 
98 void rendering_drawFastHLine(short x, short y, short w,
99  struct color color);
100 
101 void rendering_fillRect(short x, short y, short w, short h,
102  struct color color);
103 
114 void rendering_drawMinimalCross(short const x, short const y,
115  struct color const color);
116 
118 
119 #endif
void rendering_setTextColor(struct color c)
Definition: rendering.c:551
void rendering_drawCircleHelper(short x0, short y0, short r, unsigned char cornername, struct color color)
Definition: rendering.c:145
void rendering_write(unsigned char c)
Definition: rendering.c:464
void rendering_writeString(char *str)
Definition: rendering.c:485
void rendering_drawBitmap(short x, short y, const unsigned char *bitmap, short w, short h, struct color color)
Definition: rendering.c:449
Definition: color.h:41
void rendering_fillCircle(short x0, short y0, short r, struct color color)
Definition: rendering.c:183
void rendering_drawRect(short x, short y, short w, short h, struct color color)
Definition: rendering.c:285
void rendering_setTextSize(unsigned char s)
Definition: rendering.c:542
void rendering_drawRoundRect(short x0, short y0, short w, short h, short radius, struct color color)
Definition: rendering.c:306
void rendering_drawTriangle(short x0, short y0, short x1, short y1, short x2, short y2, struct color color)
Definition: rendering.c:344
void rendering_setTextColor2(struct color c, struct color bg)
Definition: rendering.c:557
void rendering_drawCircle(short x0, short y0, short r, struct color color)
Definition: rendering.c:100
void rendering_setCursor(short x, short y)
Definition: rendering.c:531
void rendering_drawFastHLine(short x, short y, short w, struct color color)
Definition: rendering.c:622
void rendering_drawMinimalCross(short const x, short const y, struct color const color)
Draw a 3x3 pixel cross.
Definition: rendering.c:694
void rendering_drawChar(short x, short y, unsigned char c, struct color color, struct color bg, unsigned char size)
Definition: rendering.c:496
void rendering_fillCircleHelper(short x0, short y0, short r, unsigned char cornername, short delta, struct color color)
Definition: rendering.c:199
void rendering_drawLine(short x0, short y0, short x1, short y1, struct color color)
Definition: rendering.c:231
void rendering_fillTriangle(short x0, short y0, short x1, short y1, short x2, short y2, struct color color)
Definition: rendering.c:363
void rendering_drawFastVLine(short x, short y, short h, struct color color)
Definition: rendering.c:594
Color types and utilities.
void rendering_fillRect(short x, short y, short w, short h, struct color color)
Definition: rendering.c:653
void rendering_drawPixel(short x, short y, struct color color)
Definition: rendering.c:583
void rendering_setTextWrap(char w)
Definition: rendering.c:568
void rendering_fillRoundRect(short x0, short y0, short w, short h, short radius, struct color color)
Definition: rendering.c:333