1 // stars.hxx -- data structures and routines for managing and rendering stars.
3 // Written by Curtis Olson, started August 1997.
5 // Copyright (C) 1997 Curtis L. Olson - curt@me.umn.edu
7 // This program is free software; you can redistribute it and/or
8 // modify it under the terms of the GNU General Public License as
9 // published by the Free Software Foundation; either version 2 of the
10 // License, or (at your option) any later version.
12 // This program is distributed in the hope that it will be useful, but
13 // WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 // General Public License for more details.
17 // You should have received a copy of the GNU General Public License
18 // along with this program; if not, write to the Free Software
19 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 // (Log is kept at end of this file)
30 # error This library requires C++
33 #include <Time/fg_time.hxx>
35 #define FG_STAR_LEVELS 8 // how many star transitions
37 // Initialize the Star Management Subsystem
38 int fgStarsInit( void );
41 void fgStarsRender( void );
43 // [no longer used?] extern struct OrbElements pltOrbElements[9];
44 extern fgTIME cur_time_params;
51 // Revision 1.1 1999/04/05 21:32:48 curt
54 // Revision 1.8 1999/01/19 20:57:00 curt
55 // MacOS portability changes contributed by "Robert Puyol" <puyol@abvent.fr>
57 // Revision 1.7 1998/09/24 15:36:20 curt
58 // Converted to c++ style comments.
60 // Revision 1.6 1998/09/24 15:25:26 curt
61 // Miscellaneous tweaks.
64 // Revision 1.5 1998/09/17 18:25:13 curt
65 // Fixed output message.
67 // Revision 1.4 1998/09/15 04:26:23 curt
68 // New textured moon and rewritten/restructured Astro code contributed by Durk
71 // Revision 1.3 1998/08/06 12:45:20 curt
72 // Modified to bring in stars in 8 increments based on magnitude, not number
75 // Revision 1.2 1998/04/28 01:19:03 curt
76 // Type-ified fgTIME and fgVIEW
78 // Revision 1.1 1998/04/22 13:21:35 curt
79 // C++ - ifing the code a bit.
81 // Revision 1.5 1998/04/21 17:02:33 curt
82 // Prepairing for C++ integration.
84 // Revision 1.4 1998/02/12 21:59:39 curt
85 // Incorporated code changes contributed by Charlie Hotchkiss
86 // <chotchkiss@namg.us.anritsu.com>
88 // Revision 1.3 1998/01/22 02:59:28 curt
89 // Changed #ifdef FILE_H to #ifdef _FILE_H
91 // Revision 1.2 1998/01/19 18:40:18 curt
92 // Tons of little changes to clean up the code and to remove fatal errors
93 // when building with the c++ compiler.
95 // Revision 1.1 1998/01/07 03:16:20 curt
96 // Moved from .../Src/Scenery/ to .../Src/Astro/
98 // Revision 1.6 1997/10/25 03:18:29 curt
99 // Incorporated sun, moon, and planet position and rendering code contributed
102 // Revision 1.5 1997/09/18 16:20:09 curt
103 // At dusk/dawn add/remove stars in stages.
105 // Revision 1.4 1997/09/05 01:36:00 curt
106 // Working on getting stars right.
108 // Revision 1.3 1997/08/29 17:55:28 curt
109 // Worked on properly aligning the stars.
111 // Revision 1.2 1997/08/27 21:32:30 curt
112 // Restructured view calculation code. Added stars.
114 // Revision 1.1 1997/08/27 03:34:50 curt