![]() |
Jopnal Engine
alpha 0.4
Simple Component Based 2D/3D Game Engine
|
#include <ModelLoader.hpp>
Public Member Functions | |
| ModelLoader (Object &obj) | |
| Constructor. More... | |
| bool | load (const std::string &path) |
| Load a model from file. More... | |
| const std::pair< glm::vec3, glm::vec3 > & | getLocalBounds () const |
| Get the local bounds. More... | |
| std::pair< glm::vec3, glm::vec3 > | getGlobalBounds () const |
| Get the global bounds. More... | |
Public Member Functions inherited from jop::Component | |
| virtual | ~Component ()=0 |
| Virtual destructor. More... | |
| Message::Result | sendMessage (const Message &message) |
| Send a message to this component. More... | |
| virtual void | update (const float deltaTime) |
| Update function. More... | |
| uint32 | getID () const |
| Get the identifier. More... | |
| void | setID (const uint32 ID) |
| Set the identifier. More... | |
| WeakReference< Object > | getObject () |
| Get the object this component is bound to. More... | |
| WeakReference< const Object > | getObject () const |
| Get the object this component is bound to. More... | |
| bool | isActive () const |
| Check if this component is active. More... | |
| void | removeSelf () |
| Remove this component from its object. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from jop::Component | |
| Component (Object &object, const uint32 ID) | |
| Constructor. More... | |
| Component (const Component &other, Object &newObj) | |
| Copy constructor. More... | |
| virtual Message::Result | receiveMessage (const Message &message) |
| Receive a message. More... | |
Definition at line 36 of file ModelLoader.hpp.
|
explicit |
Constructor.
| obj | The object this loader is bound to |
| std::pair<glm::vec3, glm::vec3> jop::ModelLoader::getGlobalBounds | ( | ) | const |
Get the global bounds.
| const std::pair<glm::vec3, glm::vec3>& jop::ModelLoader::getLocalBounds | ( | ) | const |
Get the local bounds.
| bool jop::ModelLoader::load | ( | const std::string & | path | ) |
Load a model from file.
This will create the object tree and load the correct meshes and materials. Only models converted with Jopmodel are supported.
| path | Path to the model file |
1.8.11