objc

pix.h
Go to the documentation of this file.
1 
24 #pragma once
25 #include <stdbool.h>
26 #include <stddef.h>
27 #include <stdint.h>
28 
29 #include "display.h"
30 #include "frame.h"
31 #include "types.h"
32 
34 // GLOBAL VARIABLES
35 
43 extern pix_color_t pix_white;
44 extern pix_color_t pix_black;
45 extern pix_color_t pix_red;
46 extern pix_color_t pix_green;
47 extern pix_color_t pix_blue;
48 extern pix_color_t pix_yellow;
49 extern pix_color_t pix_cyan;
50 extern pix_color_t pix_magenta;
51 extern pix_color_t pix_gray;
54 
56 // LIFECYCLE
58 
66 extern void pix_init(void);
67 
75 extern void pix_exit(void);
Common pixel types and structures.
pix_color_t pix_dark_gray
Dark gray (64,64,64,255) ARGB.
uint32_t pix_color_t
Color value type for pixel operations.
Definition: types.h:54
pix_color_t pix_yellow
Yellow (255,255,0,255) ARGB.
pix_color_t pix_black
Black (0,0,0,255) ARGB.
Display functions.
pix_size_t pix_zero_size
Zero size (0,0)
Frame functions.
pix_color_t pix_red
Red (255,0,0,255) ARGB.
pix_color_t pix_blue
Blue (0,0,255,255) ARGB.
pix_point_t pix_zero_point
Zero point (0,0)
pix_color_t pix_cyan
Cyan (0,255,255,255) ARGB.
Point structure representing X,Y coordinates.
Definition: types.h:17
pix_color_t pix_gray
Gray (128,128,128,255) ARGB.
void pix_init(void)
Initializes the pixel system on startup.
pix_color_t pix_green
Green (0,255,0,255) ARGB.
Size structure representing width and height dimensions.
Definition: types.h:26
pix_color_t pix_magenta
Magenta (255,0,255,255) ARGB.
pix_color_t pix_light_gray
Light gray (192,192,192,255) ARGB.
pix_color_t pix_white
White (255,255,255,255) ARGB.
void pix_exit(void)
Cleans up the pixel system on shutdown.