PortalObjectclass encapsulates data for a portal.
class PortalObject : public Object
||Returns the portal type.|
||Returns the portal flags.|
||Sets the portal flags.|
||Returns the number of vertices defining the boundary of the portal.|
||Sets the number of vertices defining the boundary of the portal.|
||Returns the object-space vertex array defining the boundary of the portal.|
||Configures a portal to be a rectangle of given size.|
The constructors have protected access. The
PortalObject(PortalType type, const Vector2D& size);
PortalObjectclass can only exist as the base class for a more specific type of portal.
||The portal type. See below for a list of possible types.|
||The width and height of a rectangular portal.|
PortalObjectclass is the base class for all types of portal objects, and it stores data that is common to all of them. Each specific type of portal has an associated object that is a subclass of the
A portal object can have one of the following types.
||Ordinary portal that leads from one zone to another through a polygonal boundary.|
||Portal having an indirect transform. This is used for rendering into the reflection and refraction buffers for things like mirrors and portals through which remote areas of the world can be seen.|
||Special portal used internally for camera widgets in panel effects.|
||Occluder, or antiportal, that blocks objects behind it from the perspective of the camera.|