Public Types | Public Member Functions | Public Attributes

GL::ElementRenderer Struct Reference
[Interfacing OpenGL and Fiber Bundle Data Structures]

Base class to draw a selection of elements as OpenGL points. More...

#include <PartialElementRenderer.hpp>

List of all members.

Public Types

Public Member Functions

Public Attributes


Detailed Description

Base class to draw a selection of elements as OpenGL points.

Makes use of DrawElements();

Examples:

CrystalSurface.cpp, EvolutionSurface.cpp, TransparentColoredSurface.cpp, and TransparentSurface.cpp.


Constructor & Destructor Documentation

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.


Member Function Documentation

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 
)
Todo:
Add memory management