#include <ocean/plankton/VPipeline.hpp>
#include <ocean/GLvish/VGLRenderObject.hpp>
namespace
{
{
in<double> Red, Green, Blue, Alpha;
{
double red = 1, green = 1, blue = 1, alpha=1;
Red << Context >> red;
Green << Context >> green;
Blue << Context >> blue;
Alpha << Context >> alpha;
glClearDepth(1.0);
glColorMask( GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);
glClearColor( red, green, blue, alpha );
glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
Context.number_of_depthbuffer_clearance_objects++;
return true;
}
public:
, Red (this, "red" , 1.0)
, Green(this, "green", 1.0)
, Blue (this, "blue" , 1.0 )
, Alpha(this, "alpha", 1.0 )
{
Red ->Localize();
Green->Localize();
Blue ->Localize();
Alpha->Localize();
}
};
}
A set of variable names, with indices associated to each type.
Definition Context.hpp:18
Base class for objects that implement a drawing routine using OpenGL.
Definition VGLRenderObject.hpp:20
StrongPtr< Object, ObjectBase > RefPtr
Convenience template typedef to use RefPtr instead of StrongPtr.
Definition RefPtr.hpp:776
The Panthalassa namespace allows to conveniently specify the properties of a VCreator object during c...
Definition VCreatorProperties.hpp:385
Wizt::VCreatorProperty< Wizt::VCreatorProperties::CATEGORY > Category
Classification, such as Display or Computer or Demo.
Definition VCreatorProperties.hpp:390
The Vish namespace.
Definition Anemone.cpp:17
@ BACKGROUND_OBJECT
Background objects are fixed with respect to the viewer.
Definition RenderCategory.hpp:25
@ DEMO
This object is only for demonstration purposes, but not necessarily providing enduser functionality.
Definition ObjectQuality.hpp:34
A special vish context that is passed to VGLRenderObjects when rendering.
Definition VGLRenderContext.hpp:35
Implements a data sink.
Definition VPipeline.hpp:73