1
/****************************************************************************
2
Xplanet 0.94 - render an image of a planet into an X window
3
Copyright (C) 2002 Hari Nair <hari@alumni.caltech.edu>
5
This program is free software; you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation; either version 2 of the License, or
8
(at your option) any later version.
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
15
You should have received a copy of the GNU General Public License
16
along with this program; if not, write to the Free Software
17
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
****************************************************************************/
29
#include "checkfuncs.h"
34
#include <X11/Xutil.h>
38
#include "ParseGeom.h"
39
typedef unsigned long Window;
41
#endif /* HAVE_LIBX11 */
72
list<string> greatarcfile;
84
double map_ulx, map_uly, map_lrx, map_lry;
87
list<string> markerfile;
99
list<string> satellitefile;
104
string specular_file;
115
unsigned int window_width;
116
unsigned int window_height;
123
void processArgs(int argc, char **argv, int &glutargc, char **glutargv);
125
double getObsLat() { return(obslat); }
126
void setObsLat(const double lat) { obslat = lat; }
127
double getObsLon() { return(obslon); }
128
void setObsLon(const double lon) { obslon = lon; }
136
double obslat, obslon;
139
const char* const body_string[RANDOMBODY] = {"mercury", "venus", "earth",
140
"moon", "mars", "jupiter",
141
"io", "europa", "ganymede",
142
"callisto", "saturn", "titan",
143
"uranus", "neptune", "pluto"};