This restricts rendering to within a rectangular region of the scene, without otherwise affecting the viewport or lens properties.
More...
This restricts rendering to within a rectangular region of the scene, without otherwise affecting the viewport or lens properties.
Geometry that falls outside the scissor region is not rendered. It is akin to the OpenGL glScissor() function.
The ScissorAttrib always specifies its region relative to its enclosing DisplayRegion, in screen space, and performs no culling.
See ScissorEffect if you wish to define a region relative to 2-D or 3-D coordinates in the scene graph, with culling.
Definition at line 41 of file scissorAttrib.h.
| int ScissorAttrib::compare_to_impl |
( |
const RenderAttrib * |
other | ) |
const [protected, virtual] |
Intended to be overridden by derived ScissorAttrib types to return a unique number indicating whether this ScissorAttrib is equivalent to the other one.
This should return 0 if the two ScissorAttrib objects are equivalent, a number less than zero if this one should be sorted before the other one, and a number greater than zero otherwise.
This will only be called with two ScissorAttrib objects whose get_type() functions return the same.
Reimplemented from RenderAttrib.
Definition at line 112 of file scissorAttrib.cxx.
References LVecBase4f::compare_to().
| const LVecBase4 & ScissorAttrib::get_frame |
( |
| ) |
const [inline] |
| size_t ScissorAttrib::get_hash_impl |
( |
| ) |
const [protected, virtual] |