4 #define PACK_RGB32(r, g, b) \
5 ((((r) & 0xff) << 16) | (((g) & 0xff) << 8) | ((b) & 0xff) | 0xff000000)
7 #define UNPACK_R32(c) (((c) >> 16) & 0xff)
8 #define UNPACK_G32(c) (((c) >> 8) & 0xff)
9 #define UNPACK_B32(c) ((c) & 0xff)
12 int clip_line(int *x0, int *y0, int *x1, int *y1, int xmin, int ymin, int xmax, int ymax);
13 void draw_line(int x0, int y0, int x1, int y1, unsigned char color);
15 void draw_billboard(float x, float y, float z, float size, int lum, int a);
17 #endif /* GFXUTIL_H_ */