]> git.mxchange.org Git - flightgear.git/blob - Astro/moon.hxx
C++ - ifing the code a bit.
[flightgear.git] / Astro / moon.hxx
1 /**************************************************************************
2  * moon.h
3  *
4  * Written 1997 by Durk Talsma, started October, 1997.
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License as
8  * published by the Free Software Foundation; either version 2 of the
9  * License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19  *
20  * $Id$
21  * (Log is kept at end of this file)
22  **************************************************************************/
23
24
25 #ifndef _MOON_HXX
26 #define _MOON_HXX
27
28
29 #ifndef __cplusplus                                                          
30 # error This library requires C++
31 #endif                                   
32
33
34 #include <math.h>
35
36 #include <Time/fg_time.h>
37
38 #include "orbits.hxx"
39
40
41 /* Initialize the Moon Display management Subsystem */
42 void fgMoonInit( void );
43
44 /* Draw the Moon */
45 void fgMoonRender( void );
46
47 struct CelestialCoord fgCalculateMoon(struct OrbElements Params,
48                                       struct OrbElements sunParams,
49                                       struct fgTIME t);
50
51 extern struct OrbElements pltOrbElements[9];
52
53
54 #endif /* _MOON_HXX */
55
56
57 /* $Log$
58 /* Revision 1.1  1998/04/22 13:21:28  curt
59 /* C++ - ifing the code a bit.
60 /*
61  * Revision 1.7  1998/04/21 17:02:30  curt
62  * Prepairing for C++ integration.
63  *
64  * Revision 1.6  1998/02/23 19:07:54  curt
65  * Incorporated Durk's Astro/ tweaks.  Includes unifying the sun position
66  * calculation code between sun display, and other FG sections that use this
67  * for things like lighting.
68  *
69  * Revision 1.5  1998/02/02 20:53:21  curt
70  * To version 0.29
71  *
72  * Revision 1.4  1998/01/22 02:59:27  curt
73  * Changed #ifdef FILE_H to #ifdef _FILE_H
74  *
75  * Revision 1.3  1998/01/19 19:26:58  curt
76  * Merged in make system changes from Bob Kuehne <rpk@sgi.com>
77  * This should simplify things tremendously.
78  *
79  * Revision 1.2  1998/01/19 18:40:17  curt
80  * Tons of little changes to clean up the code and to remove fatal errors
81  * when building with the c++ compiler.
82  *
83  * Revision 1.1  1998/01/07 03:16:16  curt
84  * Moved from .../Src/Scenery/ to .../Src/Astro/
85  *
86  * Revision 1.4  1997/12/11 04:43:56  curt
87  * Fixed sun vector and lighting problems.  I thing the moon is now lit
88  * correctly.
89  *
90  * Revision 1.3  1997/11/25 19:25:35  curt
91  * Changes to integrate Durk's moon/sun code updates + clean up.
92  *
93  * Revision 1.2  1997/10/25 03:24:23  curt
94  * Incorporated sun, moon, and star positioning code contributed by Durk Talsma.
95  *
96  * Revision 1.1  1997/10/25 03:16:09  curt
97  * Initial revision of code contributed by Durk Talsma.
98  *
99  */