C4 Engine
C4 Engine API Documentation

PortalObject::SetVertexCount

Defined in:  C4Portals.h
Sets the number of vertices defining the boundary of the portal.
Prototype

void SetVertexCount(int32 count);

Parameters
count The new vertex count. This should be at least 3 and no greater than kMaxPortalVertexCount.
Description
The SetVertexCount function sets the number of vertices defining the boundary of the portal. The maximum number of vertices that a portal may have is given by the kMaxPortalVertexCount constant. The vertex positions can be set by calling the PortalObject::GetVertexArray function.
See Also

PortalObject::GetVertexCount

PortalObject::GetVertexArray