C4 Engine
C4 Engine API Documentation

PortalObject::SetPortalSize

Defined in:  C4Portals.h
Configures a portal to be a rectangle of given size.
Prototype

void SetPortalSize(const Vector2D& size);

Parameters
size The portal size.
Description
The SetPortalSize function sets the portal's vertex count to 4 and sets the vertex positions to be a rectangle having one corner at the origin, width given by the x coordinate of the size parameter, and height given by the y coordinate of the size parameter.
See Also

PortalObject::GetVertexCount

PortalObject::GetVertexArray