#include <ocean/plankton/VPipeline.hpp>
#include <ocean/shrimp/ColorTypes.hpp>
#include <ocean/GLvish/VGLRenderObject.hpp>
namespace
{
{
in<Color> theColor;
{
Color rgb(.3, .3, .4, 1.0);
theColor << Context >> rgb;
glClearColor( rgb[0], rgb[1], rgb[2], 1.0 );
glClearDepth(1.0);
glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
Context.number_of_depthbuffer_clearance_objects++;
return true;
}
public:
, theColor(
this,
"color",
Color(.3, .3, .4, 1.0) )
{
theColor ->Localize();
}
};
myBackground(
Category(
"Backgrounds") / VIdentifier(
"Monochrome"), ObjectQuality::MATURE);
}
A set of variable names, with indices associated to each type.
Definition Context.hpp:18
Definition ColorSpace.hpp:110
A reference counting pointer class which keeps objects alive as long as strong pointers to these obje...
Definition RefPtr.hpp:405
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
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