r109: reorganized header files
[ctsim.git] / libctgraphics / drawbox.cpp
1 /*****************************************************************************
2 **  This is part of the CTSim program
3 **  Copyright (C) 1983-2000 Kevin Rosenberg
4 **
5 **  $Id: drawbox.cpp,v 1.2 2000/06/19 19:04:05 kevin Exp $
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 (version 2) as
9 **  published by the Free Software Foundation.
10 **
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.
15 **
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 ******************************************************************************/
20
21 /* NAME
22  *   sgp2_draw_rect                             Draw box in graphics mode
23  *
24  * SYNOPSIS
25  *   drawbox (xmin, ymin, xmax, ymax)
26  *   double xmin, ymin                  Lower left corner of box
27  *   double xmax, ymax                  Upper left corner of box
28  *
29  * NOTES
30  *   This routine leaves the current position of graphic cursor at lower
31  *   left corner of box.
32  */
33
34 #include "sgp.h"
35
36 void
37 sgp2_draw_rect(double xmin, double ymin, double xmax, double ymax)
38 {
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);
44 }