Public Types | Public Member Functions

Wizt::VBOField< TypedVertexAttribArray< Type > > Class Template Reference
[The Fish Eye Retina - Fiber Bundle to OpenGL Gateway via Vish API]

Associate a Field with a named vertex attribute array. More...

#include <VertexField.hpp>

List of all members.

Public Types

Public Member Functions


Detailed Description

template<class Type>
class Wizt::VBOField< TypedVertexAttribArray< Type > >

Associate a Field with a named vertex attribute array.

Such arrays must be defined as

   attribute float ThisIsMyData;

in GLGS shader code. The name of this array must be provided to load the data to GPU; it is the name as used by the FragmentPainter to reference this VertexField.


Member Function Documentation

template<class Type >
override RefPtr<BufferArray> Wizt::VBOField< TypedVertexAttribArray< Type > >::createVBOArray ( const RefPtr< Fiber::MemBase > &  MB,
const string &  arrayname,
const RefPtr< GLProgram > &  Shader,
const Fiber::MemBase::Creator_t theCreator 
) const [inline, virtual]

Virtual function to create a vertex array from a given memory array.

This function must be called within a valid OpenGL Context.

Implements Wizt::VertexField.