gbasys
diff src/gfx.h @ 6:f77381b12726
palette
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Tue, 04 Sep 2012 05:05:50 +0300 |
parents | 06726f0b8cd3 |
children | 72c6429ae953 047c61960005 |
line diff
1.1 --- a/src/gfx.h Fri Jul 20 22:47:39 2012 +0300 1.2 +++ b/src/gfx.h Tue Sep 04 05:05:50 2012 +0300 1.3 @@ -54,6 +54,8 @@ 1.4 void blit(struct pixel_buffer *src, int src_x, int src_y, int src_w, int src_h, 1.5 struct pixel_buffer *dst, int dest_x, int dest_y); 1.6 1.7 +void set_palette(int idx, int r, int g, int b); 1.8 + 1.9 #define wait_vsync() while(*((volatile unsigned short*)0x4000006) < front_buffer->y) 1.10 1.11 #define put_pixel(px, py, col, pbuf) ((unsigned short*)(pbuf)->pixels)[(py) * (pbuf)->x + (px)] = col