Associate a Field with a named vertex attribute array. More...
#include <VertexField.hpp>
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.
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.