|
const plBoundingBoxSphere & | GetBounds () const |
| Returns the bounds of the collision mesh.
|
|
const plDynamicArray< plSurfaceResourceHandle > & | GetSurfaces () const |
| Returns the array of default surfaces to be used with this mesh.
|
|
bool | HasTriangleMesh () const |
| Returns whether the mesh resource contains a triangle mesh. Triangle meshes and convex meshes are mutually exclusive.
|
|
JPH::Shape * | InstantiateTriangleMesh (plUInt64 uiUserData, const plDynamicArray< const plJoltMaterial * > &materials) const |
| Creates a new instance (shape) of the triangle mesh.
|
|
plUInt32 | GetNumConvexParts () const |
| Returns the number of convex meshes. Triangle meshes and convex meshes are mutually exclusive.
|
|
JPH::Shape * | InstantiateConvexPart (plUInt32 uiPartIdx, plUInt64 uiUserData, const plJoltMaterial *pMaterial, float fDensity) const |
| Creates a new instance (shape) of the triangle mesh.
|
|
plCpuMeshResourceHandle | ConvertToCpuMesh () const |
| Converts the geometry of the triangle or convex mesh to a CPU mesh resource.
|
|
plUInt32 | GetNumTriangles () const |
|
plUInt32 | GetNumVertices () const |
|
PL_ALWAYS_INLINE const plString & | GetResourceID () const |
| Returns the unique ID that identifies this resource. On a file resource this might be a path. Can also be a GUID or any other scheme that uniquely identifies the resource.
|
|
PL_ALWAYS_INLINE plUInt64 | GetResourceIDHash () const |
| Returns the hash of the unique ID.
|
|
void | SetResourceDescription (plStringView sDescription) |
| The resource description allows to store an additional string that might be more descriptive during debugging, than the unique ID.
|
|
const plString & | GetResourceDescription () const |
| The resource description allows to store an additional string that might be more descriptive during debugging, than the unique ID.
|
|
const plString & | GetResourceIdOrDescription () const |
| The returns the resource description, if available, otherwise the resource ID.
|
|
PL_ALWAYS_INLINE plResourceState | GetLoadingState () const |
| Returns the current state in which this resource is in.
|
|
PL_ALWAYS_INLINE plUInt8 | GetNumQualityLevelsDiscardable () const |
| Returns the current maximum quality level that the resource could have.
|
|
PL_ALWAYS_INLINE plUInt8 | GetNumQualityLevelsLoadable () const |
| Returns how many quality levels the resource may additionally load.
|
|
float | GetLoadingPriority (plTime now) const |
| Returns the priority that is used by the resource manager to determine which resource to load next.
|
|
plResourcePriority | GetPriority () const |
| Returns the current resource priority.
|
|
void | SetPriority (plResourcePriority priority) |
| Changes the current resource priority.
|
|
PL_ALWAYS_INLINE const plBitflags< plResourceFlags > & | GetBaseResourceFlags () const |
| Returns the basic flags for the resource type. Mostly used the resource manager.
|
|
PL_ALWAYS_INLINE const MemoryUsage & | GetMemoryUsage () const |
| Returns the information about the current memory usage of the resource.
|
|
PL_ALWAYS_INLINE plTime | GetLastAcquireTime () const |
| Returns the time at which the resource was (tried to be) acquired last. If a resource is acquired using plResourceAcquireMode::PointerOnly, this does not update the last acquired time, since the resource is not acquired for full use.
|
|
PL_ALWAYS_INLINE plInt32 | GetReferenceCount () const |
| Returns the reference count of this resource.
|
|
PL_ALWAYS_INLINE const plTimestamp & | GetLoadedFileModificationTime () const |
| Returns the modification date of the file from which this resource was loaded.
|
|
PL_ALWAYS_INLINE plUInt32 | GetCurrentResourceChangeCounter () const |
| Returns the current value of the resource change counter. Can be used to detect whether the resource has changed since using it last time.
|
|
PL_ALWAYS_INLINE void | IncResourceChangeCounter () |
| Allows to manually increase the resource change counter to signal that dependent code might need to update.
|
|
virtual void | ResetResource () |
| If the resource has modifications from the original state, it should reset itself to that state now (or force a reload on itself).
|
|
void | PrintHandleStackTraces () |
| Prints the stack-traces for all handles that currently reference this resource.
|
|
virtual const plRTTI * | GetDynamicRTTI () const |
|
bool | IsInstanceOf (const plRTTI *pType) const |
| Returns whether the type of this instance is of the given type or derived from it.
|
|
template<typename T > |
PL_ALWAYS_INLINE bool | IsInstanceOf () const |
| Returns whether the type of this instance is of the given type or derived from it.
|
|