NAP
Public Member Functions | List of all members
UniformValueArray Class Referenceabstract

#include <uniform.h>

Public Member Functions

virtual int getCount () const =0
 
- 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
 

Additional Inherited Members

- Static Public Member Functions inherited from Object
static bool isIDProperty (rtti::Instance &object, const rtti::Property &property)
 
- 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...
 

Description

Base class for list of uniform values. The list must be declared inside a uniform buffer object (block). myshader.frag example:

uniform UBO
{
uniform vec3 positions[10];
} ubo;
Inheritance diagram for UniformValueArray:
[legend]
Collaboration diagram for UniformValueArray:
[legend]

Member Function Documentation

◆ getCount()

virtual int getCount ( ) const
pure virtual
Returns
The number of elements in this array

Implemented in TypedUniformValueArray< T >.