|
3DRadSpace 0.1.0Alpha
3DRadSpace is a free, simple to use, rapid application development game engine.
|
Represents a 3D model, composed of multiple ModelMesh instances. More...
#include <Model3D.hpp>


Public Member Functions | |
| Model3D (IntPtr handle) | |
| Model3D (IGraphicsDevice device, string path) | |
| void | SetShader (Effect effect) |
| unsafe void | SetShaders (Effect[] effects) |
| Model3D (IGraphicsDevice *Device, const std::filesystem::path &path) | |
| Model3D (Model3D &)=delete | |
| Model3D (Model3D &&) noexcept=default | |
| Model3D & | operator= (Model3D &)=delete |
| Model3D & | operator= (Model3D &&) noexcept=default |
| void | SetTransform (const Math::Matrix4x4 &w, const Math::Matrix4x4 &v, const Math::Matrix4x4 &p) |
| Sets the world, view, and projection transform matrices for the model. | |
| void | SetTransform (const Math::Matrix4x4 &v, const Math::Matrix4x4 &p) |
| Sets the view and projection matrices. | |
| ModelMesh * | operator[] (unsigned i) |
| Gets the i-th ModelMesh in the model. No null checking. | |
| std::vector< std::unique_ptr< ModelMesh > >::iterator | begin () |
| Begin iterator for the collection of ModelMesh instances in the model. | |
| std::vector< std::unique_ptr< ModelMesh > >::iterator | end () |
| End iterator for the collection of ModelMesh instances in the model. | |
| size_t | NumMeshes () |
| Returns the number of ModelMesh instances in this model. | |
| Math::BoundingBox | GetBoundingBox () const noexcept |
| Gets the bounding box of this entire model instance. | |
| Math::BoundingSphere | GetBoundingSphere () const noexcept |
| Gets the bounding sphere of this entire model instance. | |
| ~Model3D ()=default | |
| Public Member Functions inherited from Engine3DRadSpace.NatPtrWrapper | |
| virtual void | Dispose () |
Properties | |
| ulong | NumMeshes [get] |
| ModelMesh | this[ulong idx] [get] |
| BoundingBox | BoundingBox [get] |
| BoundingSphere | BoundingSphere [get] |
| unsafe Matrix4x4 | Transform [set] |
| Properties inherited from Engine3DRadSpace.NatPtrWrapper | |
| IntPtr | Handle [get] |
Additional Inherited Members | |
| Protected Member Functions inherited from Engine3DRadSpace.NatPtrWrapper | |
| NatPtrWrapper (IntPtr handle, Action< IntPtr > fnDestroy) | |
| NatPtrWrapper (Action< IntPtr > fnDestroy) | |
| void | Reset (IntPtr newObj) |
| void | Dispose (bool disposing) |
| Protected Attributes inherited from Engine3DRadSpace.NatPtrWrapper | |
| IntPtr | _handle |
| bool | _disposed |
Represents a 3D model, composed of multiple ModelMesh instances.
Assimp is used to load the model.
|
inline |
|
inline |
| Model3D::Model3D | ( | IGraphicsDevice * | Device, |
| const std::filesystem::path & | path ) |
|
delete |
|
defaultnoexcept |
|
default |
| std::vector< std::unique_ptr< ModelMesh > >::iterator Model3D::begin | ( | ) |
| std::vector< std::unique_ptr< ModelMesh > >::iterator Model3D::end | ( | ) |
|
noexcept |
Gets the bounding box of this entire model instance.
|
noexcept |
Gets the bounding sphere of this entire model instance.
| size_t Engine3DRadSpace.Graphics.Model3D.NumMeshes | ( | ) |
Returns the number of ModelMesh instances in this model.
| ModelMesh * Model3D::operator[] | ( | unsigned | i | ) |
|
inline |
|
inline |
| void Engine3DRadSpace.Graphics.Model3D.SetTransform | ( | const Math::Matrix4x4 & | v, |
| const Math::Matrix4x4 & | p ) |
Sets the view and projection matrices.
| v | View matrix |
| p | Projection matrix |
| void Engine3DRadSpace.Graphics.Model3D.SetTransform | ( | const Math::Matrix4x4 & | w, |
| const Math::Matrix4x4 & | v, | ||
| const Math::Matrix4x4 & | p ) |
Sets the world, view, and projection transform matrices for the model.
| w | The world matrix. |
| v | The view matrix. |
| p | The projection matrix. |
|
get |
|
get |
|
get |
|
get |
|
set |