mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-10 06:39:49 +00:00
30 lines
625 B
C++
30 lines
625 B
C++
|
#ifndef SH_MATERIALINSTANCEPASS_H
|
||
|
#define SH_MATERIALINSTANCEPASS_H
|
||
|
|
||
|
#include <vector>
|
||
|
|
||
|
#include "PropertyBase.hpp"
|
||
|
#include "MaterialInstanceTextureUnit.hpp"
|
||
|
|
||
|
namespace sh
|
||
|
{
|
||
|
/**
|
||
|
* @brief
|
||
|
* Holds properties of a single texture unit in a \a MaterialInstancePass. \n
|
||
|
* No inheritance here for now.
|
||
|
*/
|
||
|
class MaterialInstancePass : public PropertySetGet
|
||
|
{
|
||
|
public:
|
||
|
MaterialInstanceTextureUnit* createTextureUnit (const std::string& name);
|
||
|
|
||
|
PropertySetGet mShaderProperties;
|
||
|
|
||
|
std::vector <MaterialInstanceTextureUnit> getTexUnits ();
|
||
|
private:
|
||
|
std::vector <MaterialInstanceTextureUnit> mTexUnits;
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif
|