A planar convex polygon used to define the visibility from one Sector to another.
More...
#include <SceneManagerPortals.hpp>
List of all members.
Detailed Description
A planar convex polygon used to define the visibility from one Sector to another.
See also:
Constructor & Destructor Documentation
| vl::Portal::Portal |
( |
) |
[inline] |
Member Function Documentation
| std::vector<fvec3>& vl::Portal::geometry |
( |
) |
[inline] |
The set of points defining the shape of the portal. The points must define a planar convex polygon and must be in world coordinates.
| const std::vector<fvec3>& vl::Portal::geometry |
( |
) |
const [inline] |
The set of points defining the shape of the portal. The points must define a planar convex polygon and must be in world coordinates.
| void vl::Portal::setTargetSector |
( |
Sector * |
sector ) |
[inline] |
The Sector that is behind the portal and that is seen through the portal.
| Sector* vl::Portal::targetSector |
( |
) |
[inline] |
The Sector that is behind the portal and that is seen through the portal.
| const Sector* vl::Portal::targetSector |
( |
) |
const [inline] |
The Sector that is behind the portal and that is seen through the portal.
| bool vl::Portal::isOpen |
( |
) |
const [inline] |
If a Portal is closed or open. If the portal is closed then the camera cannot see the targetSector() through this portal.
| void vl::Portal::setIsOpen |
( |
bool |
is_open ) |
[inline] |
If a Portal is closed or open. If the portal is closed then the camera cannot see the targetSector() through this portal.
| void vl::Portal::setNormal |
( |
const fvec3 & |
n ) |
[inline, protected] |
| const fvec3& vl::Portal::normal |
( |
) |
const [inline, protected] |
| bool Portal::computeNormal |
( |
) |
[protected] |
Computes the normal of the portal polygon.
Must be called after all the sectors have been setup, linked to their portal, and their AABB has been updated.
Friends And Related Function Documentation
Member Data Documentation
The documentation for this class was generated from the following files: