31 _from_portal_mask = mask;
41 _into_portal_mask = mask;
56 return _from_portal_mask;
66 return _into_portal_mask;
82 _flags |= F_portal_geom;
84 _flags &= ~F_portal_geom;
93 return (_flags & F_portal_geom) != 0;
110 _vertices.push_back(vertex);
118 return _vertices.size();
126 nassertr(n >= 0 && n < (
int)_vertices.size(), LPoint3::zero());
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
get_vertex
Returns the nth vertex of the portal polygon.
get_into_portal_mask
Returns the current "into" PortalMask.
set_from_portal_mask
Sets the "from" PortalMask.
set_open
Python sets this based on curent camera zone.
get_portal_geom
Returns the current state of the portal_geom flag.
is_visible
Is this portal facing the camera.
void add_vertex(const LPoint3 &vertex)
Adds a new vertex to the portal polygon.
set_cell_in
Sets the cell that this portal belongs to.
is_clip_plane
Is this portal clipping against its left-right planes.
get_num_vertices
Returns the number of vertices in the portal polygon.
virtual void enable_clipping_planes()
initialize the clipping planes and renderstate
set_into_portal_mask
Sets the "into" PortalMask.
set_visible
this is set if the portal is facing camera
set_portal_geom
Sets the state of the "portal geom" flag for this PortalNode.
set_cell_out
Sets the cell that this portal leads out to.
get_from_portal_mask
Returns the current "from" PortalMask.
set_max_depth
Set the maximum depth this portal will be visible at.
get_cell_out
Sets the cell that this portal leads out to.
get_cell_in
Sets the cell that this portal belongs to.
void clear_vertices()
Resets the vertices of the portal to the empty list.
get_max_depth
Returns the maximum depth this portal will be visible at.
is_open
Is this portal open from current camera zone.
set_clip_plane
this is set if the portal will clip against its left and right planes
void set_portal_mask(PortalMask mask)
Simultaneously sets both the "from" and "into" PortalMask values to the same thing.