shithub: libgraphics

ref: f2e5828b91c56c2fc0247c5feb5a7215ec4529cc
dir: /internal.h/

View raw version
/* alloc */
void *emalloc(ulong);
void *erealloc(void*, ulong);
Memimage *eallocmemimage(Rectangle, ulong);

/* fb */
Framebuf *mkfb(Rectangle);
void rmfb(Framebuf*);
Framebufctl *mkfbctl(Rectangle);
void rmfbctl(Framebufctl*);

/* render */
void shade(Framebuf*, OBJ*, Memimage*, Shader*, ulong);

/* util */
int min(int, int);
int max(int, int);
void memsetd(double*, double, usize);

/* nanosec */
uvlong nanosec(void);