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