9d9eff6807a950226b310c9027efd172f2cc2fa5
[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.1 2000/06/19 18:05:03 kevin Exp $
6 **  $Log: drawbox.cpp,v $
7 **  Revision 1.1  2000/06/19 18:05:03  kevin
8 **  initial cvs import
9 **
10 **  Revision 1.1  2000/06/13 16:20:31  kevin
11 **  finished c++ conversions
12 **
13 **  Revision 1.3  2000/05/24 22:49:01  kevin
14 **  Updated SGP: first function X-windows version
15 **
16 **  Revision 1.2  2000/05/11 14:07:23  kevin
17 **  Fixed compilation warnings
18 **
19 **  Revision 1.1.1.1  2000/04/28 13:02:44  kevin
20 **  Initial CVS import for first public release
21 **
22 **
23 **
24 **  This program is free software; you can redistribute it and/or modify
25 **  it under the terms of the GNU General Public License (version 2) as
26 **  published by the Free Software Foundation.
27 **
28 **  This program is distributed in the hope that it will be useful,
29 **  but WITHOUT ANY WARRANTY; without even the implied warranty of
30 **  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
31 **  GNU General Public License for more details.
32 **
33 **  You should have received a copy of the GNU General Public License
34 **  along with this program; if not, write to the Free Software
35 **  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
36 ******************************************************************************/
37
38 /* NAME
39  *   sgp2_draw_rect                             Draw box in graphics mode
40  *
41  * SYNOPSIS
42  *   drawbox (xmin, ymin, xmax, ymax)
43  *   double xmin, ymin                  Lower left corner of box
44  *   double xmax, ymax                  Upper left corner of box
45  *
46  * NOTES
47  *   This routine leaves the current position of graphic cursor at lower
48  *   left corner of box.
49  */
50
51 #include "sgp.h"
52
53 void
54 sgp2_draw_rect(double xmin, double ymin, double xmax, double ymax)
55 {
56         sgp2_move_abs (xmin, ymin);
57         sgp2_line_abs (xmax, ymin);
58         sgp2_line_abs (xmax, ymax);
59         sgp2_line_abs (xmin, ymax);
60         sgp2_line_abs (xmin, ymin);
61 }