A mesh that is backed directly by a GPU vertex (and optionally an index buffer).
More...
|
| | GPUMesh (const GPUVertexBuffer &vertexBuffer, VertexDeclaration vertexDeclaration, Vector< SubMesh > subMeshes) |
| | Creates a new GPUMesh from an existing vertex buffer.
|
| |
| | GPUMesh (const GPUVertexBuffer &vertexBuffer, VertexDeclaration vertexDeclaration, const GPUIndexBuffer &indexBuffer, IndexType indexType, Vector< SubMesh > subMeshes) |
| | Creates a new GPUMesh from an existing vertex and index buffers.
|
| |
| | GPUMesh (const GPUVertexBuffer &vertexBuffer, const VertexDeclaration &vertexDeclaration, const GPUIndexBuffer &indexBuffer, const Vector< SubMesh > subMeshes) |
| | Creates a new GPUMesh from an existing vertex and index buffers.
|
| |
| ConstRawVertexBufferView | getRawVertexBufferView () const final |
| | Gets a raw view of the vertex buffer data.
|
| |
| ConstRawIndexBufferView | getRawIndexBufferView () const final |
| | Gets a raw view of the index buffer data.
|
| |
| const GPUVertexBuffer & | getVertexBuffer () const noexcept |
| | The GPU vertex buffer.
|
| |
| const GPUIndexBuffer & | getIndexBuffer () const noexcept |
| | The GPU index buffer.
|
| |
| ResourceHandle< GPUMesh > | getResourceHandle () const noexcept |
| | Generates a hash for the provided type.
|
| |
| SPtr< GPUMesh > | getShared () noexcept |
| | Gets a shared pointer to the resource.
|
| |
| SPtr< const GPUMesh > | getShared () const noexcept |
| | Gets a shared pointer to the resource.
|
| |
| const ResourceTypeInfo & | getResourceType () const noexcept override |
| | Returns the resource type information descriptor.
|
| |
| | TResource (ResourceData &data, InputStream &dataStream) |
| |
| void | serialize (OutputStream &dataStream) const override |
| | Serializes a resource by writing data to dataStream.
|
| |
| | Mesh () |
| | Creates a new empty mesh.
|
| |
| | Mesh (MeshProperties &&properties) |
| | Creates a new Mesh by constructing a new MeshProperties object.
|
| |
| | ~Mesh () override |
| | Destroys the mesh object.
|
| |
| template<typename T > |
| VertexBufferView< const T > | getVertexBufferView () const |
| | Gets a structured view of the vertex buffer data.
|
| |
| template<typename T > |
| IndexBufferView< const T > | getIndexBufferView () const |
| | Gets a structured view of the index buffer data.
|
| |
| const MeshProperties & | getProperties () const noexcept |
| | A structure that contains a set of properties for the mesh.
|
| |
| const Vector< SubMesh > & | getSubMeshes () const |
| | The sub meshes in the mesh.
|
| |
| const VertexDeclaration & | getVertexDeclaration () const |
| | The vertex declaration format used by the mesh.
|
| |
| const IndexType & | getIndexType () const |
| | The format used by the mesh index buffer, if an index buffer is available.
|
| |
| const Sphere & | getBoundingSphere () const |
| | The mesh bounding sphere, can be used to perform culling.
|
| |
| const AABox & | getBoundingBox () const |
| | The mesh axis-aligned bounding box, can be used to perform culling.
|
| |
| ResourceHandle< Mesh > | getResourceHandle () const noexcept |
| | Generates a hash for the provided type.
|
| |
| SPtr< Mesh > | getShared () noexcept |
| | Gets a shared pointer to the resource.
|
| |
| SPtr< const Mesh > | getShared () const noexcept |
| | Gets a shared pointer to the resource.
|
| |
| const ResourceTypeInfo & | getResourceType () const noexcept override |
| | Returns the resource type information descriptor.
|
| |
| | TResource (ResourceData &data, InputStream &dataStream) |
| |
| void | serialize (OutputStream &dataStream) const override |
| | Serializes a resource by writing data to dataStream.
|
| |
| | Resource () |
| | Default constructor for the Resource class.
|
| |
| | Resource (ResourceData &data) |
| | Creates a new Resource instance by passing a ResourceData instance.
|
| |
| virtual | ~Resource () noexcept=default |
| | Resource virtual destructor.
|
| |
| ResourceManager * | getResourceManager () const noexcept |
| |
| HResource | getResourceHandle () const noexcept |
| | Generates a hash for the provided type.
|
| |
| UUID | getResourceID () const noexcept |
| |
| HResource | getParentResource () const noexcept |
| | A parent resource to which this resource is attached to.
|
| |
| SPtr< ResourceMetadata > | getResourceMetadata () const noexcept |
| | A pointer to the user-defined resource metadata.
|
| |
| const PackagePtr & | getPackage () const noexcept |
| | The package from which the resource was loaded from.
|
| |
| template<typename T = Resource> |
| SPtr< T > | getShared () noexcept |
| | Gets a shared pointer to the resource.
|
| |
| template<typename T = Resource> |
| SPtr< const T > | getShared () const noexcept |
| | Gets a shared pointer to the resource.
|
| |
| | Resource (ResourceData &data, InputStream &dataStream) |
| | Creates a new resource by reading data from dataStream.
|
| |
| virtual | ~IReflectable () noexcept=default |
| |
A mesh that is backed directly by a GPU vertex (and optionally an index buffer).
These meshes usually can't be serialized and are only used for runtime-generated meshes.