]> git.lizzy.rs Git - irrlicht.git/blob - include/ISceneCollisionManager.h
Add back LightManager
[irrlicht.git] / include / ISceneCollisionManager.h
1 // Copyright (C) 2002-2012 Nikolaus Gebhardt\r
2 // This file is part of the "Irrlicht Engine".\r
3 // For conditions of distribution and use, see copyright notice in irrlicht.h\r
4 \r
5 #ifndef __I_SCENE_COLLISION_MANAGER_H_INCLUDED__\r
6 #define __I_SCENE_COLLISION_MANAGER_H_INCLUDED__\r
7 \r
8 #include "IReferenceCounted.h"\r
9 #include "position2d.h"\r
10 #include "line3d.h"\r
11 \r
12 namespace irr\r
13 {\r
14 \r
15 namespace scene\r
16 {\r
17         class ICameraSceneNode;\r
18 \r
19         class ISceneCollisionManager : public virtual IReferenceCounted\r
20         {\r
21         public:\r
22 \r
23                 //! Returns a 3d ray which would go through the 2d screen coordinates.\r
24                 /** \param pos: Screen coordinates in pixels.\r
25                 \param camera: Camera from which the ray starts. If null, the\r
26                 active camera is used.\r
27                 \return Ray starting from the position of the camera and ending\r
28                 at a length of the far value of the camera at a position which\r
29                 would be behind the 2d screen coordinates. */\r
30                 virtual core::line3d<f32> getRayFromScreenCoordinates(\r
31                         const core::position2d<s32>& pos, const ICameraSceneNode* camera = 0) = 0;\r
32 \r
33         };\r
34 \r
35 } // end namespace scene\r
36 } // end namespace irr\r
37 \r
38 #endif\r