|
Foray Library
rapid prototyping framework for crossplatform development of vulkan hardware ray tracing applications
|
#include <foray_component.hpp>
Public Member Functions | |
| Node * | GetNode () |
| Node this component is attached to. Casts mRegistry to Node. | |
| virtual Scene * | GetScene () override |
| Scene this component is a part of. Casts mRegistry->mCallbackDispatcher to Scene. | |
| virtual Registry * | GetGlobals () override |
| Global component registry. Casts mRegistry->mCallbackDispatcher to Scene and returns Scene->GetGlobals() | |
| virtual core::Context * | GetContext () override |
| Vulkan Context. Casts mRegistry->mCallbackDispatcher to Scene and returns Scene->GetContext() | |
Public Member Functions inherited from foray::scene::Component | |
| virtual | ~Component () |
| Destructor. Provide virtual constructors in inheriting classes, to make sure they get finalized correctly. | |
Public Member Functions inherited from foray::NoMoveDefaults | |
| NoMoveDefaults ()=default | |
| NoMoveDefaults (const NoMoveDefaults &other)=delete | |
| NoMoveDefaults (NoMoveDefaults &&other)=default | |
| NoMoveDefaults & | operator= (const NoMoveDefaults &other)=delete |
Additional Inherited Members | |
Public Attributes inherited from foray::scene::Component | |
| friend | Registry |
Protected Member Functions inherited from foray::Polymorphic | |
| virtual void | __makeMePolymorphic () |
Protected Attributes inherited from foray::scene::Component | |
| Registry * | mRegistry = nullptr |
| std::string | mName = "" |
|
overridevirtual |
Vulkan Context. Casts mRegistry->mCallbackDispatcher to Scene and returns Scene->GetContext()
Implements foray::scene::Component.
|
overridevirtual |
Global component registry. Casts mRegistry->mCallbackDispatcher to Scene and returns Scene->GetGlobals()
Implements foray::scene::Component.
| Node * foray::scene::NodeComponent::GetNode | ( | ) |
|
overridevirtual |
Scene this component is a part of. Casts mRegistry->mCallbackDispatcher to Scene.
Implements foray::scene::Component.