Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
CachedShaderSetting< T, count, cache > Class Template Reference

#include <shader.h>

+ Collaboration diagram for CachedShaderSetting< T, count, cache >:

Public Member Functions

void set (const T value[count], video::IMaterialRendererServices *services)
 
 set (const v2f value, video::IMaterialRendererServices *services)
 
 set (const v3f value, video::IMaterialRendererServices *services)
 
 set (const video::SColorf value, video::IMaterialRendererServices *services)
 
 set (const core::matrix4 &value, video::IMaterialRendererServices *services)
 

Protected Member Functions

 CachedShaderSetting (const char *name, bool is_pixel)
 

Private Attributes

const char * m_name
 
m_sent [count]
 
bool has_been_set = false
 
bool is_pixel
 

Constructor & Destructor Documentation

◆ CachedShaderSetting()

template<typename T , std::size_t count, bool cache>
CachedShaderSetting< T, count, cache >::CachedShaderSetting ( const char * name,
bool is_pixel )
inlineprotected

Member Function Documentation

◆ set() [1/5]

template<typename T , std::size_t count, bool cache>
CachedShaderSetting< T, count, cache >::set ( const core::matrix4 & value,
video::IMaterialRendererServices * services )
inline

References CachedShaderSetting< T, count, cache >::set().

+ Here is the call graph for this function:

◆ set() [2/5]

◆ set() [3/5]

template<typename T , std::size_t count, bool cache>
CachedShaderSetting< T, count, cache >::set ( const v2f value,
video::IMaterialRendererServices * services )
inline

References CachedShaderSetting< T, count, cache >::set().

+ Here is the call graph for this function:

◆ set() [4/5]

template<typename T , std::size_t count, bool cache>
CachedShaderSetting< T, count, cache >::set ( const v3f value,
video::IMaterialRendererServices * services )
inline

References CachedShaderSetting< T, count, cache >::set().

+ Here is the call graph for this function:

◆ set() [5/5]

template<typename T , std::size_t count, bool cache>
CachedShaderSetting< T, count, cache >::set ( const video::SColorf value,
video::IMaterialRendererServices * services )
inline

References CachedShaderSetting< T, count, cache >::set().

+ Here is the call graph for this function:

Member Data Documentation

◆ has_been_set

template<typename T , std::size_t count, bool cache>
bool CachedShaderSetting< T, count, cache >::has_been_set = false
private

◆ is_pixel

template<typename T , std::size_t count, bool cache>
bool CachedShaderSetting< T, count, cache >::is_pixel
private

◆ m_name

template<typename T , std::size_t count, bool cache>
const char* CachedShaderSetting< T, count, cache >::m_name
private

◆ m_sent

template<typename T , std::size_t count, bool cache>
T CachedShaderSetting< T, count, cache >::m_sent[count]
private

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