1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#define HZ2MS(hz) (1000/(hz))
void resized(void);
/* nanosec */
uvlong nanosec(void);
/* alloc */
void *emalloc(ulong);
void *erealloc(void*, ulong);
Image *eallocimage(Display*, Rectangle, ulong, int, ulong);
Memimage *eallocmemimage(Rectangle, ulong);
/* fb */
Framebuf *mkfb(Rectangle);
Framebufctl *newfbctl(Rectangle);
/* shadeop */
double step(double, double);
double smoothstep(double, double, double);
/* util */
int min(int, int);
int max(int, int);
double fmin(double, double);
double fmax(double, double);
void swap(int*, int*);
void memsetd(double*, double, usize);
Memimage *readtga(char*);
Memimage *readpng(char*);
Memimage *rgb(ulong);
|