diff options
| author | Cracker64 <cracker642@gmail.com> | 2011-04-23 03:11:05 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2011-04-23 13:00:51 (GMT) |
| commit | bd8de4c8420b7b6dc782d12a0eef1ea3fe6f5883 (patch) | |
| tree | 8a8b181ab8fcaabfe862e0ae1464c1da9b2bc500 /includes | |
| parent | aa3f475edc754ba84b65d83106b91104ac827854 (diff) | |
| download | powder-bd8de4c8420b7b6dc782d12a0eef1ea3fe6f5883.zip powder-bd8de4c8420b7b6dc782d12a0eef1ea3fe6f5883.tar.gz | |
Decorations! ,still messing with it. It does not save currently. TODO: fix typing in boxes to update the color. Line/box tools. Some basic color selections like an element menu.
Diffstat (limited to 'includes')
| -rw-r--r-- | includes/graphics.h | 2 | ||||
| -rw-r--r-- | includes/interface.h | 1 | ||||
| -rw-r--r-- | includes/misc.h | 3 |
3 files changed, 6 insertions, 0 deletions
diff --git a/includes/graphics.h b/includes/graphics.h index f17e3f3..d028e9b 100644 --- a/includes/graphics.h +++ b/includes/graphics.h @@ -114,6 +114,8 @@ void xor_rect(pixel *vid, int x, int y, int w, int h); void draw_parts(pixel *vid); +void draw_decorations(pixel *vid_buf,pixel *decorations); + void draw_wavelengths(pixel *vid, int x, int y, int h, int wl); void render_signs(pixel *vid_buf); diff --git a/includes/interface.h b/includes/interface.h index fec1a60..1a092af 100644 --- a/includes/interface.h +++ b/includes/interface.h @@ -244,5 +244,6 @@ int console_parse_coords(char *txt, int *x, int *y, char *err); int console_parse_type(char *txt, int *element, char *err); int console_parse_partref(char *txt, int *which, char *err); +void decorations_ui(pixel *vid_buf,pixel *decorations,int *bsx,int *bsy); #endif diff --git a/includes/misc.h b/includes/misc.h index ef23b1e..f504a7b 100644 --- a/includes/misc.h +++ b/includes/misc.h @@ -66,6 +66,9 @@ int register_extension(); int cpu_check(void); +void HSV_to_RGB(int h,int s,int v,int *r,int *g,int *b); + +void RGB_to_HSV(int r,int g,int b,int *h,int *s,int *v); // a b // c d struct matrix2d { |
