molecular
Public Member Functions | List of all members
molecular::gfx::Attribute Class Reference

Vertex attribute variable. More...

#include <Uniform.h>

Inheritance diagram for molecular::gfx::Attribute:
molecular::gfx::Variable

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...
 
- Public Member Functions inherited from molecular::gfx::Variable
virtual ~Variable ()
 
virtual unsigned int GetArraySize () const
 

Detailed Description

Vertex attribute variable.

Points to a Renderer::VertexBuffer and includes information on how to interpret the data.

Constructor & Destructor Documentation

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.

Member Function Documentation

void molecular::gfx::Attribute::Apply ( RenderCmdSink::Program program,
Hash  name 
) const
overridevirtual

Feed to program.

Implements molecular::gfx::Variable.


The documentation for this class was generated from the following files: