VenomEngine
Cross-Platform Modern Graphics Engine
Loading...
Searching...
No Matches
venom::common::MaterialImpl Class Reference
+ Inheritance diagram for venom::common::MaterialImpl:

Classes

struct  MaterialComponentResourceTable
 
struct  MaterialResourceTable
 

Public Member Functions

void SetComponent (const MaterialComponentType type, const MaterialComponent &comp)
 
void SetComponent (const MaterialComponentType type, const vcm::Vec3 &value)
 
void SetComponent (const MaterialComponentType type, const vcm::Vec4 &value)
 
void SetComponent (const MaterialComponentType type, const float value)
 
void SetComponent (const MaterialComponentType type, const Texture &texture)
 
void RemoveComponentValue (const MaterialComponentType type)
 
void RemoveComponentTexture (const MaterialComponentType type)
 
void SetComponentChannels (const MaterialComponentType type, const MaterialComponentValueChannels channels)
 
void SetComponentChannelsFromIndex (const MaterialComponentType type, const int index)
 
const MaterialComponent & GetComponent (const MaterialComponentType type) const
 
const vc::String & GetName () const
 
void SetName (const vc::String &name)
 
const vcm::Vec2 & GetTextureRepeatFactor () const
 
void SetTextureRepeatFactor (const vcm::Vec2 &factor)
 
- Public Member Functions inherited from venom::common::GraphicsPluginObject
virtual void Destroy () override
 /!\ THIS FUNCTION MUST BE CALLED FOR DESTRUCTION, DO NOT USE delete
 
- Public Member Functions inherited from venom::common::PluginObject
 PluginObject (const PluginType type)
 
PluginType GetType () const override
 
template<class T>
T * As ()
 
template<class T>
const T * As () const
 
template<class T>
T * ConstAs () const
 
template<class T>
T * RAs ()
 
template<class T>
const T * RAs () const
 
template<class T>
T * DAs ()
 
template<class T>
const T * DAs () const
 
void IncRefCount ()
 
void DecRefCount ()
 

Protected Member Functions

const MaterialResourceTable & _GetResourceTable (bool &wasDirty)
 

Additional Inherited Members

- Static Public Member Functions inherited from venom::common::GraphicsPluginObject
static bool HasCachedObject (const vc::String &path)
 Checks if an object is in the cache.
 
static SPtr< GraphicsCachedResource > GetCachedObject (const vc::String &path)
 Gets a cached object from the graphics cache.
 
static const vc::UMap< vc::String, vc::SPtr< GraphicsCachedResource > > & GetCachedObjects ()
 Gets all cached objects.
 
- Static Protected Member Functions inherited from venom::common::GraphicsPluginObject
static void _SetInCache (const vc::String &path, const SPtr< GraphicsCachedResource > &object)
 Sets an object in the cache.
 
static void _SetCacheSize (size_t size)
 Adds cache size to avoid unnecessary additional allocations.
 
static void _AddCacheSize (size_t size)
 Adds cache size to avoid unnecessary additional allocations.
 

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