mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-26 08:56:37 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			29 lines
		
	
	
	
		
			625 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			29 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
 |