| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/polyattribute.h>

Public Member Functions | |
| PolyAttribute (bool enabled=true) | |
| Per default all poly attributes are enabled. | |
| bool | operator== (const PolyAttribute &other) const |
| void | setGlobal (bool global) |
| specifies whether the poly attribute is applied globally or locally | |
| bool | isGlobal () const |
| queries whether the poly attribute is applied globally or not | |
| VRS_TYPEINFO (PolyAttribute, Attribute) | |
| VRS_SERIALIZABLE (PolyAttribute) | |
poly attributes in a rendering engine can also be temporarily disabled or enabled using Switch objects.
| VRS::PolyAttribute::PolyAttribute | ( | bool | enabled = true |
) |
Per default all poly attributes are enabled.
| bool VRS::PolyAttribute::operator== | ( | const PolyAttribute & | other | ) | const |
| void VRS::PolyAttribute::setGlobal | ( | bool | global | ) |
specifies whether the poly attribute is applied globally or locally
Global attributes are applied at the beginning of each maintraversal and unapplied after each maintraversal. For the user, they appear to be active for the whole scene graph. Other poly attributes are applied and unapplied locally in main rendering passes. For global polyattributes, the engine remembers the modelview-transformation in the pretraversal. This requires that any instance of a global attribute must be present only once in the scene graph.
Most poly attributes are local, but some default to global.
| bool VRS::PolyAttribute::isGlobal | ( | ) | const |
queries whether the poly attribute is applied globally or not
| VRS::PolyAttribute::VRS_TYPEINFO | ( | PolyAttribute | , | |
| Attribute | ||||
| ) |
| VRS::PolyAttribute::VRS_SERIALIZABLE | ( | PolyAttribute | ) |