1
0
mirror of git://projects.qi-hardware.com/cae-tools.git synced 2024-12-23 07:54:38 +02:00
cae-tools/solidify/gui_util.h
Werner Almesberger 46704e6b0e Changed the style of projection displays from lines to filled surfaces, to
make it easier to discern where is up and where is down.

- solidify/gui_util.h, solidify/gui_util.c (hpoint, vpoint, alpha, aa_line):
  draw horizontal or vertical lines with anti-aliases beginning and end
- solidify/level.c (draw_xz, draw_zy): instead of drawing thin lines for z
  and z0, show a filled surface of the difference
2010-09-28 20:01:01 -03:00

30 lines
855 B
C

/*
* gui_util.h - GUI helper functions
*
* Written 2009 by Werner Almesberger
* Copyright 2009 by Werner Almesberger
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*/
#ifndef GUI_UTIL_H
#define GUI_UTIL_H
#include <stdint.h>
#include <gtk/gtk.h>
void hpoint(guchar *rgbbuf, int x, int y, int sx, uint8_t c[3]);
void vpoint(guchar *rgbbuf, int y, int x, int sx, uint8_t c[3]);
void aa_line(guchar *rgbbuf, int i, double fa, double fb, int max, int sx,
uint8_t c[3],
void (*point)(guchar *rgbbuf, int f, int i, int sx, uint8_t c[3]));
void draw_circle(GdkDrawable *da, GdkGC *gc, int x, int y, int r);
#endif /* !GUI_UTIL_H */