molecular
|
Vertex attribute variable. More...
#include <Uniform.h>
Public Member Functions | |
Attribute () | |
Attribute (RenderCmdSink::VertexBuffer *buffer, const VertexAttributeInfo &info) | |
Construct from buffer and info struct. More... | |
Attribute (RenderCmdSink::VertexBuffer *buffer, int components, VertexAttributeInfo::Type type=VertexAttributeInfo::kFloat, int stride=0, int offset=0) | |
Construct from buffer and individual infos. More... | |
void | Apply (RenderCmdSink::Program *program, Hash name) const override |
Feed to program. More... | |
![]() | |
virtual | ~Variable () |
virtual unsigned int | GetArraySize () const |
Vertex attribute variable.
Points to a Renderer::VertexBuffer and includes information on how to interpret the data.
molecular::gfx::Attribute::Attribute | ( | ) |
molecular::gfx::Attribute::Attribute | ( | RenderCmdSink::VertexBuffer * | buffer, |
const VertexAttributeInfo & | info | ||
) |
Construct from buffer and info struct.
molecular::gfx::Attribute::Attribute | ( | RenderCmdSink::VertexBuffer * | buffer, |
int | components, | ||
VertexAttributeInfo::Type | type = VertexAttributeInfo::kFloat , |
||
int | stride = 0 , |
||
int | offset = 0 |
||
) |
Construct from buffer and individual infos.
|
overridevirtual |
Feed to program.
Implements molecular::gfx::Variable.