Class TextureReloadEvent#
Defined in File HotReloadEvent.h
Inheritance Relationships#
Base Type#
public TRAP::Events::Event
(Class Event)
Class Documentation#
-
class TextureReloadEvent : public TRAP::Events::Event#
Texture reloaded event.
Public Functions
-
explicit TextureReloadEvent(TRAP::Ref<TRAP::Graphics::Texture> texture)#
Constructor.
- Parameters:
texture – Pointer to the affected texture.
-
~TextureReloadEvent() override = default#
Destructor.
-
consteval TextureReloadEvent(const TextureReloadEvent&) noexcept = delete#
Copy constructor.
-
consteval TextureReloadEvent &operator=(const TextureReloadEvent&) noexcept = delete#
Copy assignment operator.
-
TextureReloadEvent(TextureReloadEvent&&) noexcept = default#
Move constructor.
-
TextureReloadEvent &operator=(TextureReloadEvent&&) noexcept = default#
Move assignment operator.
-
TRAP::Ref<TRAP::Graphics::Texture> GetTexture() const noexcept#
Retrieve a pointer to the affected texture.
- Returns:
Texture pointer.
-
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 TextureReloadEvent(TRAP::Ref<TRAP::Graphics::Texture> texture)#