VISH
0.2
|
Base class for VObjects that may do some rendering. More...
#include </home/werner/origo/vish/ocean/Anemonia/VEnvironmentRenderObject.hpp>
Base class for VObjects that may do some rendering.
Any VEnvironmentRenderObject will set itself as an input to all existing VScene objects.
void Wizt::VEnvironmentRenderObject::announce | ( | const string & | name, |
const VCamera & | ViewpointProperties, | ||
const RefPtr< ValuePool > & | Context | ||
) | const |
Announce a specific viewpoint as a possible suggestion on how to view this object.
The string must be unique. There may be an arbitrary number of viewpoints suggested, but it is recommended to keep this number as low as possible, ideally less than five.
void Wizt::VEnvironmentRenderObject::getRenderPrecision | ( | VRenderContext & | Context, |
double & | OverallPrecision, | ||
double & | ThisContribution | ||
) | const |
Retrieve render precision parameters:
OverallPrecision | An overall factor telling how far too slow the rendering is. With 1.0, it's all fine, with 0.5, rendering rather should be twice as fast. |
ThisContribution | A factor of how much this current object contributes to rendering. If this is a large number, then this object is the bottleneck. |