|
| Model () |
| Constructs a Model object by default.
|
|
| Model (const Model &model)=default |
|
| Model (Model &&model)=default |
|
virtual | ~Model () |
| Destructs the object and cleans resources.
|
|
void | AddToRenderQueue (AbstractRenderQueue *renderQueue, const InstanceData &instanceData) const override |
| Adds this model to the render queue. More...
|
|
void | AddToRenderQueue (AbstractRenderQueue *renderQueue, const Matrix4f &transformMatrix, unsigned int renderOrder=0) |
| Adds this model to a render queue, using user-specified transform matrix and render order. More...
|
|
const MaterialRef & | GetMaterial (const String &subMeshName) const |
| Gets the material of the named submesh. More...
|
|
const MaterialRef & | GetMaterial (std::size_t skinIndex, const String &subMeshName) const |
| Gets the material by index of the named submesh. More...
|
|
Mesh * | GetMesh () const |
| Gets the mesh. More...
|
|
virtual bool | IsAnimated () const |
| Checks whether the model is animated. More...
|
|
bool | LoadFromFile (const String &filePath, const ModelParameters ¶ms=ModelParameters()) |
| Loads the model from file. More...
|
|
bool | LoadFromMemory (const void *data, std::size_t size, const ModelParameters ¶ms=ModelParameters()) |
| Loads the model from memory. More...
|
|
bool | LoadFromStream (Stream &stream, const ModelParameters ¶ms=ModelParameters()) |
| Loads the model from stream. More...
|
|
bool | SetMaterial (const String &subMeshName, MaterialRef material) |
| Sets the material of the named submesh. More...
|
|
bool | SetMaterial (std::size_t skinIndex, const String &subMeshName, MaterialRef material) |
| Sets the material by index of the named submesh. More...
|
|
virtual void | SetMesh (Mesh *mesh) |
| Sets the mesh. More...
|
|
Model & | operator= (const Model &node)=default |
|
Model & | operator= (Model &&node)=default |
|
| InstancedRenderable () |
| Constructs a InstancedRenderable object by default.
|
|
| InstancedRenderable (const InstancedRenderable &renderable) |
| Constructs a InstancedRenderable object by assignation. More...
|
|
| InstancedRenderable (InstancedRenderable &&renderable)=delete |
|
virtual | ~InstancedRenderable () |
| Destructs the object and calls OnInstancedRenderableRelease. More...
|
|
virtual bool | Cull (const Frustumf &frustum, const InstanceData &instanceData) const |
| Culls the instanced if not in the frustum. More...
|
|
void | EnsureBoundingVolumeUpdated () const |
| Ensures that the bounding volume is up to date.
|
|
virtual const BoundingVolumef & | GetBoundingVolume () const |
| Gets the bounding volume. More...
|
|
const MaterialRef & | GetMaterial (std::size_t matIndex=0) const |
| Gets one of the material used by the object. More...
|
|
const MaterialRef & | GetMaterial (std::size_t skinIndex, std::size_t matIndex) const |
| Gets one of the material used by the object, independently from the active skin. More...
|
|
std::size_t | GetMaterialCount () const |
| Gets the number of material per skin. More...
|
|
std::size_t | GetSkin () const |
| Gets the current active skin index. More...
|
|
std::size_t | GetSkinCount () const |
| Gets the number of skins this object has. More...
|
|
virtual void | InvalidateData (InstanceData *instanceData, UInt32 flags) const |
| Invalidates data for instanced. More...
|
|
void | SetSkin (std::size_t skinIndex) |
| Changes the active skin. More...
|
|
void | SetSkinCount (std::size_t skinCount) |
| Changes the maximum skin count of the object. More...
|
|
virtual void | UpdateBoundingVolume (InstanceData *instanceData) const |
| Updates the bounding volume. More...
|
|
virtual void | UpdateData (InstanceData *instanceData) const |
| Updates the instance data. More...
|
|
InstancedRenderable & | operator= (const InstancedRenderable &renderable) |
| Sets the current instanced renderable with the content of the other one. More...
|
|
InstancedRenderable & | operator= (InstancedRenderable &&renderable)=delete |
|
| NazaraSignal (OnInstancedRenderableInvalidateBoundingVolume, const InstancedRenderable *) |
|
| NazaraSignal (OnInstancedRenderableInvalidateData, const InstancedRenderable *, UInt32) |
|
| NazaraSignal (OnInstancedRenderableInvalidateMaterial, const InstancedRenderable *, std::size_t, std::size_t, const MaterialRef &) |
|
| NazaraSignal (OnInstancedRenderableRelease, const InstancedRenderable *) |
|
| NazaraSignal (OnInstancedRenderableResetMaterials, const InstancedRenderable *, std::size_t) |
|
| NazaraSignal (OnInstancedRenderableSkinChange, const InstancedRenderable *, std::size_t) |
|
| RefCounted (bool persistent=true) |
| Constructs a RefCounted object with a persistance aspect. More...
|
|
| RefCounted (const RefCounted &)=delete |
|
| RefCounted (RefCounted &&)=default |
|
virtual | ~RefCounted () |
| Destructs the object. More...
|
|
void | AddReference () const |
| Adds a reference to the object.
|
|
unsigned int | GetReferenceCount () const |
| Gets the number of references to the object. More...
|
|
bool | IsPersistent () const |
| Checks whether the object is persistent. More...
|
|
bool | RemoveReference () const |
| Removes a reference to the object. More...
|
|
bool | SetPersistent (bool persistent=true, bool checkReferenceCount=false) |
| Sets the persistence of the object. More...
|
|
RefCounted & | operator= (const RefCounted &)=delete |
|
RefCounted & | operator= (RefCounted &&)=default |
|
| Resource (const Resource &)=default |
|
| Resource (Resource &&) noexcept=default |
|
const String & | GetFilePath () const |
| Gets the file path associated with the resource. More...
|
|
void | SetFilePath (const String &filePath) |
| Sets the file path associated with the resource. More...
|
|
Resource & | operator= (const Resource &)=default |
|
Resource & | operator= (Resource &&) noexcept=default |
|
Graphics class that represents a model.