1 /*****************************************************************************
2 ** This is part of the CTSim program
3 ** Copyright (C) 1983-2000 Kevin Rosenberg
5 ** $Id: drawbox.cpp,v 1.2 2000/06/19 19:04:05 kevin Exp $
7 ** This program is free software; you can redistribute it and/or modify
8 ** it under the terms of the GNU General Public License (version 2) as
9 ** published by the Free Software Foundation.
11 ** This program is distributed in the hope that it will be useful,
12 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ** GNU General Public License for more details.
16 ** You should have received a copy of the GNU General Public License
17 ** along with this program; if not, write to the Free Software
18 ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 ******************************************************************************/
22 * sgp2_draw_rect Draw box in graphics mode
25 * drawbox (xmin, ymin, xmax, ymax)
26 * double xmin, ymin Lower left corner of box
27 * double xmax, ymax Upper left corner of box
30 * This routine leaves the current position of graphic cursor at lower
37 sgp2_draw_rect(double xmin, double ymin, double xmax, double ymax)
39 sgp2_move_abs (xmin, ymin);
40 sgp2_line_abs (xmax, ymin);
41 sgp2_line_abs (xmax, ymax);
42 sgp2_line_abs (xmin, ymax);
43 sgp2_line_abs (xmin, ymin);