Enlighten object used for dynamic material updates at runtime.
Name | Description |
---|---|
Status | Status for material components. |
public: Geo::u32 CalculateSize
(
const ClusterMaterials * materials
)
Calculates the size (in bytes) required for a DynamicMaterialWorkspace.
public: void ConvertEndian
(
Geo::EConvertEndianMode mode
)
Convert the endian-ness of this DynamicMaterialWorkspace.
public: bool Copy
(
const DynamicMaterialWorkspace & source
)
Copy the given DynamicMaterialWorkspace into this one.
public: DynamicMaterialWorkspace * Create
(
const ClusterMaterials * materials,
void * memory
)
Creates a DynamicMaterialWorkspace.
public: DynamicMaterialWorkspace * Create
(
const DynamicMaterialWorkspace & source,
void * memory
)
Creates a DynamicMaterialWorkspace.
public: MaterialAlbedoComponent * GetMaterialAlbedo
(
Geo::u32 materialIndex
)
Gets the material component with the given index.
public: const MaterialAlbedoComponent * GetMaterialAlbedo
(
Geo::u32 materialIndex
) const
Gets the material component with the given index.
public: MaterialEmissiveComponent * GetMaterialEmissive
(
Geo::u32 materialIndex
)
Gets the material component with the given index.
public: const MaterialEmissiveComponent * GetMaterialEmissive
(
Geo::u32 materialIndex
) const
Gets the material component with the given index.
public: MaterialTransparencyComponent * GetMaterialTransparency
(
Geo::u32 materialIndex
)
Gets the material component with the given index.
public: const MaterialTransparencyComponent * GetMaterialTransparency
(
Geo::u32 materialIndex
) const
Gets the material component with the given index.
public: Geo::u32 GetSize() const
Gets the total size (in bytes) of this DynamicMaterialWorkspace.
public: bool IsAlbedoInitialiseRequired() const
Albedo.
public: bool IsAlbedoUpdateRequired() const
Albedo.
public: bool IsEmissiveInitialiseRequired() const
Emissive.
public: bool IsEmissiveUpdateRequired() const
Emissive.
public: bool IsTransparencyInitialiseRequired() const
Transparency.
public: bool IsTransparencyUpdateRequired() const
Transparency.
public: NonCopyable
(
NonCopyable &&
)
Defaulted to allow move.
public: NonCopyable & operator=
(
NonCopyable &&
)
Defaulted to allow move.
public: void SetAlbedoInitialised()
Albedo.
public: void SetAlbedoRequiresInitialise()
Albedo.
public: void SetAlbedoRequiresUpdate()
Albedo.
public: void SetAlbedoUpdated()
Albedo.
public: void SetEmissiveInitialised()
Emissive.
public: void SetEmissiveRequiresInitialise()
Emissive.
public: void SetEmissiveRequiresUpdate()
Emissive.
public: void SetEmissiveUpdated()
Emissive.
public: void SetTransparencyInitialised()
Transparency.
public: void SetTransparencyRequiresInitialise()
Transparency.
public: void SetTransparencyRequiresUpdate()
Transparency.
public: void SetTransparencyUpdated()
Transparency.
public: enum Status
{
STATUS_OK = 0,
STATUS_REQUIRES_UPDATE = 1,
STATUS_REQUIRES_INITIALISE = 2
}
Status for material components.
STATUS_OK | |
STATUS_REQUIRES_UPDATE | |
STATUS_REQUIRES_INITIALISE |