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
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
19 * @file SkySceneLoader.hpp
21 * Definition of a simple class for loading scenes into SkyWorks.
23 #ifndef __SKYSCENELOADER_HPP__
24 #define __SKYSCENELOADER_HPP__
30 #include <simgear/compiler.h>
31 #include <simgear/misc/sg_path.hxx>
32 #include <simgear/math/point3d.hxx>
34 #include "SkyUtil.hpp"
37 //------------------------------------------------------------------------------
39 * @class SkySceneLoader
40 * @brief A simple scene loader for SkyWorks scenes.
42 * Loads a scene using the Load() method, which is passed the filename of a
43 * file containing a SkyArchive describing the scene.
51 bool Load( unsigned char *data, unsigned int size, double latitude, double longitude );
52 bool Load( SGPath fileroot, double latitude, double longitude );
54 void Set_Cloud_Orig( Point3D *posit );
56 void Update( double *view_pos );
58 void Resize( double w, double h);
60 void Draw( sgMat4 mat );
64 #endif //__SKYSCENELOADER_HPP__