Foray Library
rapid prototyping framework for crossplatform development of vulkan hardware ray tracing applications
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
foray::scene::ncomp::PunctualLight Class Reference

Defines a simple punctual light (directional or point) More...

#include <foray_punctuallight.hpp>

Inheritance diagram for foray::scene::ncomp::PunctualLight:
foray::scene::NodeComponent foray::scene::Component foray::NoMoveDefaults foray::Polymorphic

Public Member Functions

void UpdateStruct (SimpleLight &simplifiedlight)
 
- Public Member Functions inherited from foray::scene::NodeComponent
NodeGetNode ()
 Node this component is attached to. Casts mRegistry to Node.
 
virtual SceneGetScene () override
 Scene this component is a part of. Casts mRegistry->mCallbackDispatcher to Scene.
 
virtual RegistryGetGlobals () override
 Global component registry. Casts mRegistry->mCallbackDispatcher to Scene and returns Scene->GetGlobals()
 
virtual core::ContextGetContext () 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
 
NoMoveDefaultsoperator= (const NoMoveDefaults &other)=delete
 

Protected Attributes

ELightType mType = ELightType::Point
 
glm::vec3 mColor = glm::vec3(1.f)
 
fp32_t mIntensity = 1.f
 
- Protected Attributes inherited from foray::scene::Component
RegistrymRegistry = nullptr
 
std::string mName = ""
 

Additional Inherited Members

- Public Attributes inherited from foray::scene::Component
friend Registry
 
- Protected Member Functions inherited from foray::Polymorphic
virtual void __makeMePolymorphic ()
 

Detailed Description

Defines a simple punctual light (directional or point)

Member Function Documentation

◆ UpdateStruct()

void foray::scene::ncomp::PunctualLight::UpdateStruct ( SimpleLight simplifiedlight)

Member Data Documentation

◆ mColor

glm::vec3 foray::scene::ncomp::PunctualLight::mColor = glm::vec3(1.f)
protected

◆ mIntensity

fp32_t foray::scene::ncomp::PunctualLight::mIntensity = 1.f
protected

◆ mType

ELightType foray::scene::ncomp::PunctualLight::mType = ELightType::Point
protected

The documentation for this class was generated from the following file: