Base class to draw a selection of elements as OpenGL points. More...
#include <PartialElementRenderer.hpp>
Base class to draw a selection of elements as OpenGL points.
Makes use of DrawElements();
CrystalSurface.cpp, EvolutionSurface.cpp, TransparentColoredSurface.cpp, and TransparentSurface.cpp.
GL::ElementRenderer::ElementRenderer | ( | const MemCore::RefPtr< Fiber::MemBase > & | FieldCoordinates, | |
const MemCore::RefPtr< Fiber::FragmentSelector > & | FS | |||
) |
Construct a partial element renderer by giving an array of coordinates and a fragment selector.
If the fragment selector is given, it will create a set of indices here. This is a possibly slow operation.
bool GL::ElementRenderer::draw | ( | ) | [virtual] |
The actual draw function.
If a CurrentIBO is set, it will use this one, otherwise will draw all elements.
Implements Wizt::VBO::Renderer.
Reimplemented in Wizt::SplatRenderObject::Renderer.
IBO_t GL::ElementRenderer::sortByDepth | ( | Wizt::VRenderContext & | Context, | |
const MemCore::RefPtr< Fiber::CreativeArrayBase > & | VertexCoordinates, | |||
unsigned | Discretization = 2 | |||
) |