CSEngine
|
Public Types | |
enum | SMaterialMode { NORMAL = 0 , DEFERRED = 1 , DEPTH_ONLY = 2 } |
Public Member Functions | |
SMaterial (const SMaterial *material) | |
void | Exterminate () override |
void | AttachElement () const |
void | InitElements (const ElementsMap &elements, SShaderGroup *shaders) |
void | SetInt (const std::string &name, int value) |
void | SetFloat (const std::string &name, float value) |
void | SetVec3 (const std::string &name, const vec3 &value) |
void | SetTexture (const std::string &name, SResource *texture) |
short | GetOrderLayer () const |
void | SetOrderLayer (int orderLayer) |
SMaterialMode | GetMode () const |
void | SetMode (SMaterialMode mode) |
SShaderGroup * | GetShaders () const |
int | GetTextureCount () const |
std::string | PrintMaterial () const |
Public Member Functions inherited from CSE::SResource | |
SResource (bool isRegister) | |
SResource (const SResource *resource, bool isRegister) | |
void | SetName (std::string name) |
void | SetAbsoluteID (std::string id) |
std::string | GetName () const |
std::string | GetAbsoluteID () const |
AssetMgr::AssetReference * | GetAssetReference (std::string hash="") const |
void | LinkResource (AssetMgr::AssetReference *asset) |
void | LinkResource (std::string name) |
void | SetHash (std::string &hash) override |
Public Member Functions inherited from CSE::SObject | |
SObject (bool isRegister) | |
virtual void | SetUndestroyable (bool enable) |
virtual void | Destroy () |
virtual void | __FORCE_DESTROY__ () |
virtual std::string | GenerateMeta () |
std::string | GetHash () const |
Static Public Member Functions | |
static SMaterial * | GenerateMaterial (SShaderGroup *shaders) |
Static Public Member Functions inherited from CSE::SResource | |
template<class T > | |
static T * | Create (const std::string &name) |
template<class T > | |
static T * | Create (const AssetMgr::AssetReference *asset) |
template<class T > | |
static T * | Get (std::string name) |
Protected Member Functions | |
void | Init (const AssetMgr::AssetReference *asset) override |
Additional Inherited Members | |
Protected Attributes inherited from CSE::SObject | |
std::string | m_hash |
Definition at line 16 of file SMaterial.h.
enum CSE::SMaterial::SMaterialMode |
Definition at line 18 of file SMaterial.h.
SMaterial::SMaterial | ( | ) |
Definition at line 11 of file SMaterial.cpp.
|
explicit |
Definition at line 15 of file SMaterial.cpp.
|
override |
Definition at line 38 of file SMaterial.cpp.
void SMaterial::AttachElement | ( | ) | const |
Definition at line 54 of file SMaterial.cpp.
|
overridevirtual |
Implements CSE::SObject.
Definition at line 42 of file SMaterial.cpp.
|
static |
Definition at line 287 of file SMaterial.cpp.
SMaterial::SMaterialMode SMaterial::GetMode | ( | ) | const |
Definition at line 275 of file SMaterial.cpp.
short SMaterial::GetOrderLayer | ( | ) | const |
Definition at line 263 of file SMaterial.cpp.
SShaderGroup * SMaterial::GetShaders | ( | ) | const |
Definition at line 271 of file SMaterial.cpp.
int SMaterial::GetTextureCount | ( | ) | const |
Definition at line 283 of file SMaterial.cpp.
|
overrideprotectedvirtual |
Implements CSE::SResource.
Definition at line 106 of file SMaterial.cpp.
void SMaterial::InitElements | ( | const ElementsMap & | elements, |
SShaderGroup * | shaders | ||
) |
Definition at line 64 of file SMaterial.cpp.
std::string SMaterial::PrintMaterial | ( | ) | const |
Definition at line 310 of file SMaterial.cpp.
void SMaterial::SetFloat | ( | const std::string & | name, |
float | value | ||
) |
Definition at line 88 of file SMaterial.cpp.
void SMaterial::SetInt | ( | const std::string & | name, |
int | value | ||
) |
Definition at line 82 of file SMaterial.cpp.
void SMaterial::SetMode | ( | SMaterialMode | mode | ) |
Definition at line 279 of file SMaterial.cpp.
void SMaterial::SetOrderLayer | ( | int | orderLayer | ) |
Definition at line 267 of file SMaterial.cpp.
void SMaterial::SetTexture | ( | const std::string & | name, |
SResource * | texture | ||
) |
Definition at line 100 of file SMaterial.cpp.
void SMaterial::SetVec3 | ( | const std::string & | name, |
const vec3 & | value | ||
) |
Definition at line 94 of file SMaterial.cpp.