|
World Manager
C4Portals.h
class PortalObject
The PortalObject class encapsulates data for a portal.
Definition
class PortalObject : public Object
Member Functions
Constructor
PortalObject(PortalType type);
PortalObject(PortalType type, const Vector2D& size);
The constructors have protected access. The PortalObject class can only exist as the base class for a more specific type of portal.
Parameters
type |
The portal type. See below for a list of possible types.
|
size |
The width and height of a rectangular portal.
|
Description
kPortalDirect |
An ordinary portal that leads from one zone to another.
|
kPortalRemote |
A portal having a remote transform. This is used for mirrors and portals through which remote areas of the world can be seen.
|
kPortalOcclusion |
An occluder, or antiportal, that blocks objects behind it from the perspective of the camera.
|
Base Classes
Object |
A PortalObject is an object that can be shared by multiple portal nodes.
|
See Also
Portal
ZoneObject
|