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

Public Member Functions | |
| Alternative (int id=1, double intensity=0.5) | |
| void | setId (int id) |
| Use an ID between 1 and 8. | |
| int | getId () const |
| Gets the ID of the alternative. | |
| void | setIntensity (double intensity) |
| Must be in range [0.0, 1.0]. | |
| double | getIntensity () const |
| Returns the intensity a shape set is rendered with. | |
| VRS_TYPEINFO (Alternative, MonoAttribute) | |
| VRS_SERIALIZABLE (Alternative) | |
| VRS::Alternative::Alternative | ( | int | id = 1, |
|
| double | intensity = 0.5 | |||
| ) |
The Alternative attribute specifies that shapes that are marked with it are rendered in a transparent way that absolutely prevents transparency artifacts. All shapes in the scene graph with Alternative attributes that hold the same ID (called a shape set in the following) are treated together. First, all shapes in the scene graph without Alternative attribute are rendered (opaque). Then, for each shape set, only the frontmost fragment is blended to the frame buffer (using the intensity of the corresponding Alternative attribute).
| void VRS::Alternative::setId | ( | int | id | ) |
Use an ID between 1 and 8.
| int VRS::Alternative::getId | ( | ) | const |
| void VRS::Alternative::setIntensity | ( | double | intensity | ) |
Must be in range [0.0, 1.0].
| double VRS::Alternative::getIntensity | ( | ) | const |
Returns the intensity a shape set is rendered with.
| VRS::Alternative::VRS_TYPEINFO | ( | Alternative | , | |
| MonoAttribute | ||||
| ) |
| VRS::Alternative::VRS_SERIALIZABLE | ( | Alternative | ) |