37 INLINE
int ScissorEffect::
38 get_num_points()
const {
39 return (
int)_points.size();
50 nassertr(n >= 0 && n < (
int)_points.size(), LPoint3::zero());
60 nassertr(n >= 0 && n < (
int)_points.size(),
NodePath());
61 return _points[n]._node;
bool is_screen() const
Returns true if the ScissorEffect is a screen-based effect, meaning get_frame() has a meaningful valu...
const LVecBase4 & get_frame() const
If is_screen() returns true, this method may be called to query the screen- based scissor frame.
get_point
If is_screen() returns false, then get_num_points() and get_point() may be called to query the node-b...
bool get_clip() const
Returns true if this ScissorEffect actually enables scissoring, or false if it culls only.
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
get_node
Returns the node to which the nth point is relative, or empty NodePath to indicate the current node.