|
VulkanEngine 0.1
Graphics engine using Vulkan
|
A SceneObject which represents an OBJMesh. More...
#include <OBJMesh.h>
Public Member Functions | |
| OBJMesh (std::filesystem::path obj_file, std::filesystem::path mtl_path="", const std::shared_ptr< Shader > _shader=std::shared_ptr< Shader >()) | |
| virtual | ~OBJMesh () |
| Destructor. | |
| const BoundingBox< Eigen::Vector3f > & | getBoundingBox () const |
Public Member Functions inherited from VulkanEngine::SceneObject | |
| SceneObject () | |
| Contructor. | |
| void | addChildren (const std::vector< std::shared_ptr< SceneObject > > &_children) |
| const Eigen::Matrix4f | getTransform () const |
| void | setTransform (const Eigen::Matrix4f &_transform) |
Additional Inherited Members | |
Protected Member Functions inherited from VulkanEngine::SceneObject | |
| virtual void | preUpdate (std::shared_ptr< SceneState > scene_state) |
| virtual void | update (std::shared_ptr< SceneState > scene_state) |
| virtual void | postUpdate (std::shared_ptr< SceneState > scene_state) |
Protected Attributes inherited from VulkanEngine::SceneObject | |
| Eigen::Matrix4f | transform |
A SceneObject which represents an OBJMesh.
| VulkanEngine::OBJMesh::OBJMesh | ( | std::filesystem::path | obj_file, |
| std::filesystem::path | mtl_path = "", |
||
| const std::shared_ptr< Shader > | _shader = std::shared_ptr<Shader>() |
||
| ) |
Constructor.
| obj_file | Path to obj file. |
| mtl_file | Path to mtl file location. |
| const BoundingBox< Eigen::Vector3f > & VulkanEngine::OBJMesh::getBoundingBox | ( | ) | const |