Fix crash
[ryzomcore.git] / snowballs2 / client / src / camera.h
blobc89ef90687cfe08b51e9b7a810e2172f5dbc5bdc
1 // NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
2 // Copyright (C) 2010 Winch Gate Property Limited
3 //
4 // This source file has been modified by the following contributors:
5 // Copyright (C) 2013 Jan BOON (Kaetemi) <jan.boon@kaetemi.be>
6 //
7 // This program is free software: you can redistribute it and/or modify
8 // it under the terms of the GNU Affero General Public License as
9 // published by the Free Software Foundation, either version 3 of the
10 // License, or (at your option) any later version.
12 // This program is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU Affero General Public License for more details.
17 // You should have received a copy of the GNU Affero General Public License
18 // along with this program. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef CAMERA_H
21 #define CAMERA_H
24 // Includes
27 #include <nel/3d/u_camera.h>
30 // External definitions
33 namespace NL3D
35 class UVisualCollisionEntity;
36 class CStereoOVR;
39 namespace SBCLIENT {
42 // External variables
45 extern NL3D::UCamera Camera;
46 extern NL3D::UCamera SkyCamera;
47 extern NL3D::UVisualCollisionEntity *CamCollisionEntity;
48 extern NL3D::UScene *SkyScene;
51 // External functions
54 void initCamera();
55 void updateCamera();
56 void releaseCamera();
59 void initSky ();
60 void releaseSky();
62 // Update the sky for this frame, and render it.
63 // Must be called before ANY rendering
64 // this is actually render
65 void updateSky ();
67 // this is update :x
68 void animateSky (double dt);
70 } /* namespace SBCLIENT */
73 #endif // CAMERA_H
75 /* End of camera.h */