Class ModelInstanceEntries
Collection of model instance entries.
Inheritance
Inherited Members
Assembly: FlaxEngine.dll
File: Engine/Graphics/Models/ModelInstanceEntry.h
Syntax
public class ModelInstanceEntries : public Array, public ISerializable
Methods
Clone(const ModelInstanceEntries* other)
Clones the other buffer data
Declaration
public void Clone(const ModelInstanceEntries* other)
Parameters
Model The other buffer to clone. |
Deserialize(DeserializeStream& stream, ISerializeModifier* modifier)
Deserializes object from the input stream.
Declaration
public virtual void Deserialize(DeserializeStream& stream, ISerializeModifier* modifier) override
Parameters
Deserialize The input stream. |
ISerialize The deserialization modifier object. Always valid. |
Overrides
HasContentLoaded()
Declaration
public bool HasContentLoaded() const
Returns
bool
|
IsValidFor(const Model* model)
Determines whether buffer is valid for the given model.
Declaration
public bool IsValidFor(const Model* model) const
Parameters
Model
model
The model. |
Returns
bool
True if this buffer is valid for the specified model object. |
IsValidFor(const SkinnedModel* model)
Determines whether buffer is valid ofr the given skinned model.
Declaration
public bool IsValidFor(const SkinnedModel* model) const
Parameters
Skinned The skinned model. |
Returns
bool
True if this buffer is valid for the specified skinned model object. |
Release()
Releases the buffer data.
Declaration
public void Release()
Serialize(SerializeStream& stream, const void* otherObj)
Serializes object to the output stream compared to the values of the other object instance (eg. default class object). If other object is null then serialize all properties.
Declaration
public virtual void Serialize(SerializeStream& stream, const void* otherObj) override
Parameters
Serialize The output stream. |
void
otherObj
The instance of the object to compare with and serialize only the modified properties. If null, then serialize all properties. |
Overrides
Setup(const Model* model)
Setup buffer for given model
Declaration
public void Setup(const Model* model)
Parameters
Model
model
Model to setup for |
Setup(const SkinnedModel* model)
Setup buffer for given skinned model
Declaration
public void Setup(const SkinnedModel* model)
Parameters
Skinned Model to setup for |
Setup(int32 slotsCount)
Setup buffer for given amount of material slots
Declaration
public void Setup(int32 slotsCount)
Parameters
int32
slotsCount
Amount of material slots |
SetupIfInvalid(const Model* model)
Setups the buffer if is invalid (has different amount of entries).
Declaration
public void SetupIfInvalid(const Model* model)
Parameters
Model
model
The model. |
SetupIfInvalid(const SkinnedModel* model)
Setups the buffer if is invalid (has different amount of entries).
Declaration
public void SetupIfInvalid(const SkinnedModel* model)
Parameters
Skinned The skinned model. |