1 #ifndef MY_POINT_H 2 #define MY_POINT_H 3 /* 4 (C) Copyright 2007,2008, Stephen M. Cameron. 5 6 This file is part of wordwarvi. 7 8 wordwarvi is free software; you can redistribute it and/or modify 9 it under the terms of the GNU General Public License as published by 10 the Free Software Foundation; either version 2 of the License, or 11 (at your option) any later version. 12 13 wordwarvi is distributed in the hope that it will be useful, 14 but WITHOUT ANY WARRANTY; without even the implied warranty of 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 GNU General Public License for more details. 17 18 You should have received a copy of the GNU General Public License 19 along with wordwarvi; if not, write to the Free Software 20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 21 22 */ 23 24 /* special values to do with drawing shapes. */ 25 #define LINE_BREAK (-9999) 26 #define COLOR_CHANGE (-9998) /* note, color change can ONLY follow LINE_BREAK */ 27 28 struct my_point_t { 29 short x,y; 30 }; 31 32 /* Just a grouping of arrays of points with the number of points in the array */ 33 struct my_vect_obj { 34 int npoints; 35 struct my_point_t *p; 36 }; 37 38 #define setup_vect(v, a) { v.p = a; v.npoints = ARRAY_SIZE(a); } 39 40 #endif 41