Wasabi
Public Member Functions | Public Attributes | List of all members
WMaterialCollection Class Reference

#include <WMaterial.hpp>

Public Member Functions

template<typename T >
WError SetVariable (const char *varName, T value)
 
template<typename T >
WError SetVariableArray (const char *varName, T *arr, int numElements)
 
WError SetVariableData (const char *varName, void *data, size_t len)
 
WError SetTexture (uint32_t bindingIndex, class WImage *img, uint32_t arrayIndex=0)
 
WError SetTexture (std::string name, class WImage *img, uint32_t arrayIndex=0)
 

Public Attributes

std::unordered_map< WMaterial *, bool > m_materials
 

Detailed Description

Helper class to deal with a collection of materials using the same interface as a single one.


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