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.8 1999/01/19 20:57:00 curt
52 // MacOS portability changes contributed by "Robert Puyol" <puyol@abvent.fr>
54 // Revision 1.7 1998/09/24 15:36:20 curt
55 // Converted to c++ style comments.
57 // Revision 1.6 1998/09/24 15:25:26 curt
58 // Miscellaneous tweaks.
61 // Revision 1.5 1998/09/17 18:25:13 curt
62 // Fixed output message.
64 // Revision 1.4 1998/09/15 04:26:23 curt
65 // New textured moon and rewritten/restructured Astro code contributed by Durk
68 // Revision 1.3 1998/08/06 12:45:20 curt
69 // Modified to bring in stars in 8 increments based on magnitude, not number
72 // Revision 1.2 1998/04/28 01:19:03 curt
73 // Type-ified fgTIME and fgVIEW
75 // Revision 1.1 1998/04/22 13:21:35 curt
76 // C++ - ifing the code a bit.
78 // Revision 1.5 1998/04/21 17:02:33 curt
79 // Prepairing for C++ integration.
81 // Revision 1.4 1998/02/12 21:59:39 curt
82 // Incorporated code changes contributed by Charlie Hotchkiss
83 // <chotchkiss@namg.us.anritsu.com>
85 // Revision 1.3 1998/01/22 02:59:28 curt
86 // Changed #ifdef FILE_H to #ifdef _FILE_H
88 // Revision 1.2 1998/01/19 18:40:18 curt
89 // Tons of little changes to clean up the code and to remove fatal errors
90 // when building with the c++ compiler.
92 // Revision 1.1 1998/01/07 03:16:20 curt
93 // Moved from .../Src/Scenery/ to .../Src/Astro/
95 // Revision 1.6 1997/10/25 03:18:29 curt
96 // Incorporated sun, moon, and planet position and rendering code contributed
99 // Revision 1.5 1997/09/18 16:20:09 curt
100 // At dusk/dawn add/remove stars in stages.
102 // Revision 1.4 1997/09/05 01:36:00 curt
103 // Working on getting stars right.
105 // Revision 1.3 1997/08/29 17:55:28 curt
106 // Worked on properly aligning the stars.
108 // Revision 1.2 1997/08/27 21:32:30 curt
109 // Restructured view calculation code. Added stars.
111 // Revision 1.1 1997/08/27 03:34:50 curt