Ben NanoNote 3D scans
Sign in or create your account | Project List | Help
Ben NanoNote 3D scans Git Source Tree
Root/
Source at commit f0a8bcd95e978480a1ef8a8a8f4a89b46bdc6e0d created 13 years 6 months ago. By Werner Almesberger, In POV-Ray output, move faces to more correct Z locations. | |
---|---|
1 | /* |
2 | * util.c - Common utility functions |
3 | * |
4 | * Written 2010 by Werner Almesberger |
5 | * Copyright 2010 by Werner Almesberger |
6 | * |
7 | * This program is free software; you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by |
9 | * the Free Software Foundation; either version 2 of the License, or |
10 | * (at your option) any later version. |
11 | */ |
12 | |
13 | |
14 | #include <gtk/gtk.h> |
15 | |
16 | #include "util.h" |
17 | |
18 | |
19 | void draw_circle(GdkDrawable *da, GdkGC *gc, int x, int y, int r) |
20 | { |
21 | gdk_draw_arc(da, gc, FALSE, x-r, y-r, 2*r, 2*r, 0, 360*64); |
22 | } |
23 |
Branches:
master