** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: sgp.h,v 1.7 2000/05/24 22:48:17 kevin Exp $
-** $Log: sgp.h,v $
-** Revision 1.7 2000/05/24 22:48:17 kevin
-** First functional version of SDF library for X-window
-**
-** Revision 1.6 2000/05/11 14:07:00 kevin
-** Added support for Windows NT
-**
-** Revision 1.5 2000/05/07 12:46:19 kevin
-** made c++ compatible
-**
-** Revision 1.4 2000/04/30 19:17:35 kevin
-** Set up include files for conditional INTERACTIVE_GRAPHICS
-**
-** Revision 1.3 2000/04/28 18:35:21 kevin
-** removed unused files
-**
-** Revision 1.2 2000/04/28 14:14:16 kevin
-** *** empty log message ***
-**
+** $Id: sgp.h,v 1.9 2000/06/15 19:07:10 kevin Exp $
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
#endif
#if HAVE_G2_H
+extern "C" {
#include "g2.h"
#include "g2_X11.h"
+}
#endif
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
-
/* device names */
#define CRTDEV 1
/*-------------------------------------------------------------------------*/
-/* circle.c */
+/* circle.cpp */
void sgp2_draw_circle(const double r);
void sgp2_draw_arc(double start, double stop, const double r);
-/* ctm.c */
+/* ctm.cpp */
void ctm_xlat_pre_2(double x, double y);
void ctm_xlat_post_2(double x, double y);
void ctm_scale_pre_2(double sx, double sy);
void invert_gmtx_2(GRFMTX_2D a, GRFMTX_2D b);
double determ_gmtx_2(GRFMTX_2D a);
-/* drawbox.c */
+/* drawbox.cpp */
void sgp2_draw_rect (double xmin, double ymin, double xmax, double ymax);
-/* sgp.c */
+/* sgp.cpp */
SGP_ID sgp2_init (int xsize, int ysize, const char *title);
void sgp2_close (SGP_ID gid);
void sgp2_set_active_win (SGP_ID);
void ctm_pre_mult_2(GRFMTX_2D m);
void ctm_post_mult_2(GRFMTX_2D m);
-/* sgpdrive.c */
+/* sgpdrive.cpp */
int _sgp2_init_dev(SGP_ID gid);
int initdevice(int dev, int mode, int xsize, int ysize);
int opendevice(int dev);
void termgrf2(void);
void flushdevice(int dev);
-/* sgptext.c */
+/* sgptext.cpp */
void wrtsymbol(int sym, int x, int y, DEVICE *dev);
void wrtchar(int ch, int x, int y, CHARSPEC *cspec, DEVICE *dev);
void wrttext(char txtstr[], int x, int y, CHARSPEC *cspec, DEVICE *dev);
void crtcolor(int mode, int *f, int *b);
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
#endif