HDK
|
Specialization of TypeSyntax for aggregate types. More...
#include <GlslSyntax.h>
Public Member Functions | |
string | getValue (const Value &value, bool uniform) const override |
![]() | |
StructTypeSyntax (const Syntax *parent, const string &name, const string &defaultValue, const string &uniformDefaultValue, const string &typeAlias=EMPTY_STRING, const string &typeDefinition=EMPTY_STRING, const StringVec &members=EMPTY_MEMBERS) | |
string | getValue (const Value &value, bool uniform) const override |
![]() | |
virtual | ~TypeSyntax () |
const string & | getName () const |
Returns the type name. More... | |
const string & | getTypeAlias () const |
Returns a type alias if needed to define the type in the target language. More... | |
const string & | getTypeDefinition () const |
Returns a type definition if needed to define the type in the target language. More... | |
const string & | getDefaultValue (bool uniform) const |
Returns the default value for this type. More... | |
const StringVec & | getMembers () const |
virtual string | getValue (const ShaderPort *port, bool uniform) const |
Additional Inherited Members | |
![]() | |
TypeSyntax (const Syntax *parent, const string &name, const string &defaultValue, const string &uniformDefaultValue, const string &typeAlias, const string &typeDefinition, const StringVec &members) | |
Protected constructor. More... | |
![]() | |
const Syntax * | _parent |
string | _name |
string | _defaultValue |
string | _uniformDefaultValue |
string | _typeAlias |
string | _typeDefinition |
StringVec | _members |
![]() | |
static const StringVec | EMPTY_MEMBERS |
Specialization of TypeSyntax for aggregate types.
Definition at line 55 of file GlslSyntax.h.
Returns a value formatted according to this type syntax. The value is constructed from the given value object.
Implements TypeSyntax.