Classes | Public Types | Public Member Functions | Public Attributes

Wizt::VertexFieldCollection Class Reference
[The Fish Eye Retina - Fiber Bundle to OpenGL Gateway via Vish API]

Base class for render objects that require a collection of Fields a given on a Grid. More...

#include <VertexFieldCollection.hpp>

List of all members.

Classes

Public Types

Public Member Functions

Public Attributes


Detailed Description

Base class for render objects that require a collection of Fields a given on a Grid.

This base class supports loading the respective fields into the arrays of Vertex Buffer Object and calls an use-defined rendering methods.


Member Enumeration Documentation

anonymous enum
Enumerator:
NumberOfInputFields 

By default a collection of vertex fields requires input objects that provided at least one field.

This setting can be changed in a child class by defining another enum. It will only affect the associated FieldInputCreator<>, specifying for what kind of objects the derived class may be used as output.


Member Function Documentation

int Wizt::VertexFieldCollection::append ( const RefPtr< VBO > &  myVBO,
const VertexFragment VertexFragments,
const RefPtr< GLProgram > &  Shader 
) const

Append all the fields stored in these vertex fragments to the given vertex buffer object.

The VertexFragments may actually contain more fields, but only those required by this VBO are actually requested.

void Wizt::VertexFieldCollection::retrieveFields ( Fiber::FieldCollection FieldMap,
const RefPtr< Fiber::Representation > &  MyRepresentation,
const RefPtr< ValuePool > &  Context 
)

From the given Representation, retrieve all fields as required here into the given Fieldmap.

Parameters:
FieldMap A map from strings to RefPtr<Fields>.