]> git.mxchange.org Git - simgear.git/blob - simgear/scene/sky/clouds3d/SkySceneLoader.hpp
Tweak lib name.
[simgear.git] / simgear / scene / sky / clouds3d / SkySceneLoader.hpp
1 //------------------------------------------------------------------------------
2 // File : SkySceneLoader.hpp
3 //------------------------------------------------------------------------------
4 // SkyWorks : Copyright 2002 Mark J. Harris and
5 //                                              The University of North Carolina at Chapel Hill
6 //------------------------------------------------------------------------------
7 // Permission to use, copy, modify, distribute and sell this software and its 
8 // documentation for any purpose is hereby granted without fee, provided that 
9 // the above copyright notice appear in all copies and that both that copyright 
10 // notice and this permission notice appear in supporting documentation. 
11 // Binaries may be compiled with this software without any royalties or 
12 // restrictions. 
13 //
14 // The author(s) and The University of North Carolina at Chapel Hill make no 
15 // representations about the suitability of this software for any purpose. 
16 // It is provided "as is" without express or 
17 // implied warranty.
18 /**
19  * @file SkySceneLoader.hpp
20  * 
21  * Definition of a simple class for loading scenes into SkyWorks.
22  */
23 #ifndef __SKYSCENELOADER_HPP__
24 #define __SKYSCENELOADER_HPP__
25
26 #include <string>
27 #include "SkyUtil.hpp"
28
29 #include <simgear/math/point3d.hxx>
30
31 //------------------------------------------------------------------------------
32 /**
33  * @class SkySceneLoader
34  * @brief A simple scene loader for SkyWorks scenes.
35  * 
36  * Loads a scene using the Load() method, which is passed the filename of a 
37  * file containing a SkyArchive describing the scene. 
38  */
39 class SkySceneLoader
40 {
41 public:
42   SkySceneLoader();
43   ~SkySceneLoader();
44
45   bool Load(std::string filename);
46   
47   void Set_Cloud_Orig( Point3D *posit );
48   
49   //void Update();
50   void Update( sgMat4 viewmat, Point3D *posit );
51   
52   void Resize( double w, double h);
53   
54   void Draw();
55   
56 };
57
58 #endif //__SKYSCENELOADER_HPP__