GRRLIB_fbSimple.h File Reference
Inline functions for primitive point and line drawing.
More...
#include <math.h>
Functions |
INLINE void | GRRLIB_FillScreen (const u32 color) |
| Clear screen with a specific color.
|
INLINE void | GRRLIB_Plot (const f32 x, const f32 y, const u32 color) |
| Draw a dot.
|
INLINE void | GRRLIB_Line (const f32 x1, const f32 y1, const f32 x2, const f32 y2, const u32 color) |
| Draw a line.
|
INLINE void | GRRLIB_Rectangle (const f32 x, const f32 y, const f32 width, const f32 height, const u32 color, const u8 filled) |
| Draw a rectangle.
|
Detailed Description
Inline functions for primitive point and line drawing.
Function Documentation
INLINE void GRRLIB_FillScreen |
( |
const u32 |
color |
) |
|
Clear screen with a specific color.
- Parameters:
-
| color | The color to use to fill the screen. |
INLINE void GRRLIB_Line |
( |
const f32 |
x1, |
|
|
const f32 |
y1, |
|
|
const f32 |
x2, |
|
|
const f32 |
y2, |
|
|
const u32 |
color | |
|
) |
| | |
Draw a line.
- Parameters:
-
| x1 | Starting point for line for the x coordinate. |
| y1 | Starting point for line for the y coordinate. |
| x2 | Ending point for line for the x coordinate. |
| y2 | Ending point for line for the x coordinate. |
| color | Line color in RGBA format. |
- Author:
- JESPA
INLINE void GRRLIB_Plot |
( |
const f32 |
x, |
|
|
const f32 |
y, |
|
|
const u32 |
color | |
|
) |
| | |
Draw a dot.
- Parameters:
-
| x | Specifies the x-coordinate of the dot. |
| y | Specifies the y-coordinate of the dot. |
| color | The color of the dot in RGBA format. |
- Author:
- Jespa
INLINE void GRRLIB_Rectangle |
( |
const f32 |
x, |
|
|
const f32 |
y, |
|
|
const f32 |
width, |
|
|
const f32 |
height, |
|
|
const u32 |
color, |
|
|
const u8 |
filled | |
|
) |
| | |
Draw a rectangle.
- Parameters:
-
| x | Specifies the x-coordinate of the upper-left corner of the rectangle. |
| y | Specifies the y-coordinate of the upper-left corner of the rectangle. |
| width | The width of the rectangle. |
| height | The height of the rectangle. |
| color | The color of the rectangle in RGBA format. |
| filled | Set to true to fill the rectangle. |