Lugdunum  0.1.0
Node.inl
Go to the documentation of this file.
1 inline Node* Node::getNode(const std::string& name) {
2  return static_cast<Node*>(::lug::Graphics::Node::getNode(name));
3 }
4 
5 inline const Node* Node::getNode(const std::string& name) const {
6  return static_cast<const Node*>(::lug::Graphics::Node::getNode(name));
7 }
8 
9 inline Scene& Node::getScene() {
10  return _scene;
11 }
12 
13 inline const Scene& Node::getScene() const {
14  return _scene;
15 }
16 
17 inline Render::Light* Node::getLight() {
18  return _light.get();
19 }
20 
21 inline const Render::Light* Node::getLight() const {
22  return _light.get();
23 }
24 
25 inline const Node::MeshInstance* Node::getMeshInstance() const {
26  return _meshInstance.mesh ? &_meshInstance : nullptr;
27 }
28 
29 inline Render::Camera::Camera* Node::getCamera() {
30  return _camera.get();
31 }
32 
33 inline const Render::Camera::Camera* Node::getCamera() const {
34  return _camera.get();
35 }
Node * getNode(const std::string &name)
Definition: Node.cpp:9
Class for Light.
Definition: Light.hpp:26
Resource::SharedPtr< Render::Mesh > mesh
Definition: Node.hpp:32