NAP
Public Attributes | List of all members
TypedUniformValue< T > Class Template Reference

#include <uniform.h>

Public Attributes

mValue = T()
 
- Public Attributes inherited from Uniform
std::string mName
 Name of uniform in shader. More...
 
- Public Attributes inherited from Object
std::string mID
 Property: 'mID' unique name of the object. Used as an identifier by the system. More...
 

Additional Inherited Members

- Public Member Functions inherited from Resource
 Resource ()
 
- Public Member Functions inherited from Object
 Object ()
 
virtual ~Object ()
 
virtual bool init (utility::ErrorState &errorState)
 
virtual void onDestroy ()
 
 Object (Object &)=delete
 
Objectoperator= (const Object &)=delete
 
 Object (Object &&)=delete
 
Objectoperator= (Object &&)=delete
 
- Static Public Member Functions inherited from Object
static bool isIDProperty (rtti::Instance &object, const rtti::Property &property)
 

Description

template<typename T>
class nap::TypedUniformValue< T >

Specific type of uniform value, for example: float, vec2, vec3, int etc. All values must be declared inside a uniform buffer object (block). myshader.frag example:

uniform UBO
{
vec3 color;
float length;
} ubo;
Inheritance diagram for TypedUniformValue< T >:
[legend]
Collaboration diagram for TypedUniformValue< T >:
[legend]

Member Data Documentation

◆ mValue

T mValue = T()
nap::uniform::constant::color
constexpr const char * color
color value (0-1)
Definition: constantshader.h:17