molecular
Public Member Functions | List of all members
molecular::gfx::Uniform< T, arraySize > Class Template Reference

Uniform variable that can be fed to a Renderer::Program More...

#include <Uniform.h>

Inheritance diagram for molecular::gfx::Uniform< T, arraySize >:
molecular::gfx::Variable

Public Member Functions

void Apply (RenderCmdSink::Program *program, Hash name) const override
 Feed to program. More...
 
unsigned int GetArraySize () const override
 
T & operator* ()
 
const T & operator* () const
 
T & operator[] (int i)
 
const T & operator[] (int i) const
 
- Public Member Functions inherited from molecular::gfx::Variable
virtual ~Variable ()
 

Detailed Description

template<class T, int arraySize = 1>
class molecular::gfx::Uniform< T, arraySize >

Uniform variable that can be fed to a Renderer::Program

Member Function Documentation

template<class T, int arraySize = 1>
void molecular::gfx::Uniform< T, arraySize >::Apply ( RenderCmdSink::Program program,
Hash  name 
) const
inlineoverridevirtual

Feed to program.

Implements molecular::gfx::Variable.

template<class T, int arraySize = 1>
unsigned int molecular::gfx::Uniform< T, arraySize >::GetArraySize ( ) const
inlineoverridevirtual

Reimplemented from molecular::gfx::Variable.

template<class T, int arraySize = 1>
T& molecular::gfx::Uniform< T, arraySize >::operator* ( )
inline
template<class T, int arraySize = 1>
const T& molecular::gfx::Uniform< T, arraySize >::operator* ( ) const
inline
template<class T, int arraySize = 1>
T& molecular::gfx::Uniform< T, arraySize >::operator[] ( int  i)
inline
template<class T, int arraySize = 1>
const T& molecular::gfx::Uniform< T, arraySize >::operator[] ( int  i) const
inline

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