addPoint ConstPointerTo< RenderEffect > ScissorEffect::add_point(LPoint3f const &point, NodePath const &node = ((()))) const; Description: Returns a new ScissorEffect with the indicated point added. It is only valid to call this on a "node" type ScissorEffect. The full set of points, projected into screen space, defines the bounding volume of the rectangular scissor region. Each point may be relative to a different node, if desired. |
getClassType static TypeHandle ScissorEffect::get_class_type(void); Undocumented function. |
getClip bool ScissorEffect::get_clip(void) const; Description: Returns true if this ScissorEffect actually enables scissoring, or false if it culls only. |
getFrame LVecBase4f const &ScissorEffect::get_frame(void) const; Description: If is_screen() returns true, this method may be called to query the screen-based scissor frame. This is a series of left, right, bottom, top, representing the scissor frame relative to the current DisplayRegion. See ScissorAttrib. |
getNode NodePath ScissorEffect::get_node(int n) const; Description: Returns the node to which the nth point is relative, or empty NodePath to indicate the current node. |
getNumPoints int ScissorEffect::get_num_points(void) const; Description: Returns the number of node-based scissor points. See get_point(). |
getPoint LPoint3f const &ScissorEffect::get_point(int n) const; Description: If is_screen() returns false, then get_num_points() and get_point() may be called to query the node-based scissor frame. These return n points (at least two), which are understood to be in the space of this node, and which define any opposite corners of the scissor frame. |
isScreen bool ScissorEffect::is_screen(void) const; Description: Returns true if the ScissorEffect is a screen-based effect, meaning get_frame() has a meaningful value, but get_a() and get_b() do not. |
makeNode static ConstPointerTo< RenderEffect > ScissorEffect::make_node(bool clip = (1)); Description: Constructs a new node-relative ScissorEffect, with no points. This empty ScissorEffect does nothing. You must then call add_point a number of times to add the points you require. Description: Constructs a new node-relative ScissorEffect. The two points are understood to be relative to the indicated node, or the current node if the NodePath is empty, and determine the diagonally opposite corners of the scissor region. Description: Constructs a new node-relative ScissorEffect. The four points are understood to be relative to the indicated node, or the current node if the indicated NodePath is empty, and determine four points surrounding the scissor region. |
makeScreen static ConstPointerTo< RenderEffect > ScissorEffect::make_screen(LVecBase4f const &frame, bool clip = (1)); Description: Constructs a new screen-relative ScissorEffect. The frame defines a left, right, bottom, top region, relative to the DisplayRegion. See ScissorAttrib. |
compareTo int RenderEffect::compare_to(RenderEffect const &other) const; Description: Provides an arbitrary ordering among all unique RenderEffects, so we can store the essentially different ones in a big set and throw away the rest. This method is not needed outside of the RenderEffect class because all equivalent RenderEffect objects are guaranteed to share the same pointer; thus, a pointer comparison is always sufficient. |
getClassType static TypeHandle RenderEffect::get_class_type(void); Undocumented function. |
getNumEffects static int RenderEffect::get_num_effects(void); Description: Returns the total number of unique RenderEffect objects allocated in the world. This will go up and down during normal operations. |
listEffects static void RenderEffect::list_effects(ostream &out); Description: Lists all of the RenderEffects in the cache to the output stream, one per line. This can be quite a lot of output if the cache is large, so be prepared. |
output virtual void RenderEffect::output(ostream &out) const; Description: |
validateEffects static bool RenderEffect::validate_effects(void); Description: Ensures that the cache is still stored in sorted order. Returns true if so, false if there is a problem (which implies someone has modified one of the supposedly-const RenderEffect objects). |
write virtual void RenderEffect::write(ostream &out, int indent_level) const; Description: |
getClassType static TypeHandle TypedWritableReferenceCount::get_class_type(void); Undocumented function. |
getClassType static TypeHandle TypedWritable::get_class_type(void); Undocumented function. |
getClassType static TypeHandle TypedObject::get_class_type(void); Undocumented function. |
getType virtual TypeHandle TypedObject::get_type(void) const = 0; Derived classes should override this function to return get_class_type(). |
getTypeIndex int TypedObject::get_type_index(void) const; Description: Returns the internal index number associated with this object's TypeHandle, a unique number for each different type. This is equivalent to get_type().get_index(). |
isExactType bool TypedObject::is_exact_type(TypeHandle handle) const; Description: Returns true if the current object is the indicated type exactly. |
isOfType bool TypedObject::is_of_type(TypeHandle handle) const; Description: Returns true if the current object is or derives from the indicated type. |
getClassType static TypeHandle ReferenceCount::get_class_type(void); Undocumented function. |
getRefCount int ReferenceCount::get_ref_count(void) const; Description: Returns the current reference count. |
ref void ReferenceCount::ref(void) const; Description: Explicitly increments the reference count. User code should avoid using ref() and unref() directly, which can result in missed reference counts. Instead, let a PointerTo object manage the reference counting automatically. This function is const, even though it changes the object, because generally fiddling with an object's reference count isn't considered part of fiddling with the object. An object might be const in other ways, but we still need to accurately count the number of references to it. |
testRefCountIntegrity bool ReferenceCount::test_ref_count_integrity(void) const; Description: Does some easy checks to make sure that the reference count isn't completely bogus. Returns true if ok, false otherwise. |
testRefCountNonzero bool ReferenceCount::test_ref_count_nonzero(void) const; Description: Does some easy checks to make sure that the reference count isn't zero, or completely bogus. Returns true if ok, false otherwise. |
unref bool ReferenceCount::unref(void) const; Description: Explicitly decrements the reference count. Note that the object will not be implicitly deleted by unref() simply because the reference count drops to zero. (Having a member function delete itself is problematic; plus, we don't have a virtual destructor anyway.) However, see the helper function unref_delete(). User code should avoid using ref() and unref() directly, which can result in missed reference counts. Instead, let a PointerTo object manage the reference counting automatically. This function is const, even though it changes the object, because generally fiddling with an object's reference count isn't considered part of fiddling with the object. An object might be const in other ways, but we still need to accurately count the number of references to it. The return value is true if the new reference count is nonzero, false if it is zero. |