Class ShaderReloadEvent#
Defined in File HotReloadEvent.h
Inheritance Relationships#
Base Type#
public TRAP::Events::Event
(Class Event)
Class Documentation#
-
class ShaderReloadEvent : public TRAP::Events::Event#
Shader reloaded event.
Public Functions
-
explicit ShaderReloadEvent(TRAP::Ref<TRAP::Graphics::Shader> shader)#
Constructor.
- Parameters:
shader – Affected shader.
-
~ShaderReloadEvent() override = default#
Destructor.
-
consteval ShaderReloadEvent(const ShaderReloadEvent&) noexcept = delete#
Copy constructor.
-
consteval ShaderReloadEvent &operator=(const ShaderReloadEvent&) noexcept = delete#
Copy assignment operator.
-
ShaderReloadEvent(ShaderReloadEvent&&) noexcept = default#
Move constructor.
-
ShaderReloadEvent &operator=(ShaderReloadEvent&&) noexcept = default#
Move assignment operator.
-
TRAP::Ref<TRAP::Graphics::Shader> GetShader() const noexcept#
Retrieve the affected shader.
- Returns:
Shader.
-
virtual constexpr EventType GetEventType() const noexcept override#
Retrieve the EventType of the event.
- Returns:
EventType.
-
virtual constexpr std::string GetName() const override#
Retrieve the name of the event.
- Returns:
Name.
-
virtual constexpr EventCategory GetCategoryFlags() const noexcept override#
Retrieve the category flags of the event.
- Returns:
Combination of one or more EventCategory’s.
-
virtual std::string ToString() const override#
Get a string representation of the event.
- Returns:
String representation.
-
explicit ShaderReloadEvent(TRAP::Ref<TRAP::Graphics::Shader> shader)#