mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-30 22:07:58 +03:00
Imported Upstream version 0.26.0
This commit is contained in:
commit
9a2b6c69b6
1398 changed files with 212217 additions and 0 deletions
27
extern/shiny/Main/MaterialInstanceTextureUnit.hpp
vendored
Normal file
27
extern/shiny/Main/MaterialInstanceTextureUnit.hpp
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
#ifndef SH_MATERIALINSTANCETEXTUREUNIT_H
|
||||
#define SH_MATERIALINSTANCETEXTUREUNIT_H
|
||||
|
||||
#include "PropertyBase.hpp"
|
||||
|
||||
namespace sh
|
||||
{
|
||||
/**
|
||||
* @brief
|
||||
* A single texture unit state that belongs to a \a MaterialInstancePass \n
|
||||
* this is not the real "backend" \a TextureUnitState (provided by \a Platform),
|
||||
* it is merely a placeholder for properties. \n
|
||||
* @note The backend \a TextureUnitState will only be created if this texture unit is
|
||||
* actually used (i.e. referenced in the shader, or marked with property create_in_ffp = true).
|
||||
*/
|
||||
class MaterialInstanceTextureUnit : public PropertySetGet
|
||||
{
|
||||
public:
|
||||
MaterialInstanceTextureUnit (const std::string& name);
|
||||
std::string getName() const;
|
||||
void setName (const std::string& name) { mName = name; }
|
||||
private:
|
||||
std::string mName;
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue