#include <ocean/GLvish/VGLRenderObject.hpp>
#include <ocean/shrimp/VTime.hpp>
#include <ocean/plankton/VPipeline.hpp>
namespace
{
{
{
getParameterValue(t,
"time",
Context);
GLclampf red=1, green=1, blue=1, alpha=1;
int r=100, g=100, b=100;
Red << Context >> r;
Green << Context >> g;
Blue << Context >> b;
red = r/100. - t();
green = g/100. + t();
blue = b/100.;
glClearColor( red,
green,
blue,
alpha );
glClear(GL_COLOR_BUFFER_BIT);
return true;
}
public:
{
addParam(
"time",
VTime(0) );
}
};
}
namespace
{
MyCreator(
Category(
"Backgrounds" ) + VIdentifier(
"DynamicBackground" ) +
Application(
"General" ) +
Description(
"Display a background dependent on mouse interaction." ) +
ObjectQuality::DEMO );
}
A set of variable names, with indices associated to each type.
Definition Context.hpp:18
A reference counting pointer class which keeps objects alive as long as strong pointers to these obje...
Definition RefPtr.hpp:405
A certain object (especcially input types) might have multiple implementations by the GUI or alternat...
Definition VCreationPreferences.hpp:24
A set of property elements for VCreator objects.
Definition VCreatorProperties.hpp:258
Base class for objects that implement a drawing routine using OpenGL.
Definition VGLRenderObject.hpp:20
An input type for steering time-dependent objects.
Definition shrimp/VTime.hpp:32
The Panthalassa namespace allows to conveniently specify the properties of a VCreator object during c...
Definition VCreatorProperties.hpp:385
The Vish namespace.
Definition Anemone.cpp:17
@ BACKGROUND_OBJECT
Background objects are fixed with respect to the viewer.
Definition RenderCategory.hpp:25
A special vish context that is passed to VGLRenderObjects when rendering.
Definition VGLRenderContext.hpp:35
Implements a data sink.
Definition VPipeline.hpp:73