SpiecsEngine
 
Loading...
Searching...
No Matches
ViewPortResizeQuerier.h
Go to the documentation of this file.
1/**
2* @file ViewPortResizeQuerier.h.
3* @brief The ViewPortResizeQuerier Definitions.
4* @author Spices.
5*/
6
7#pragma once
8#include "Core/Core.h"
9#include "NativeScript.h"
10
11namespace Spices {
12
13 /**
14 * @brief Forward declare.
15 */
16 class ImguiViewport;
17
18 /**
19 * @brief Script of handle viewport resize event.
20 */
22 {
23 public:
24
25 /**
26 * @brief Constructor Function.
27 */
29
30 /**
31 * @brief Destructor Function.
32 */
33 virtual ~ViewPortResizeQuerier() override = default;
34
35 /**
36 * @brief This interface defines the behave on specific component tick every frame.
37 * @param[in] ts TimeStep.
38 */
39 virtual void OnTick(TimeStep& ts) override;
40
41 /**
42 * @brief This interface defines the behave on specific component event happened.
43 * @param[in] e Event.
44 */
45 virtual void OnEvent(Event& e) override {};
46
47 private:
48
49 /**
50 * @brief viewport pointer.
51 */
52 std::weak_ptr<ImguiViewport> m_ViewPort;
53 };
54
55}
#define SPICES_PROFILE_ZONE
#define VK_CHECK(expr)
Vulkan Check macro. Verify Vulkan API Effectiveness.
Definition VulkanUtils.h:68
static EventCallbackFn GetEventCallbackFn()
Get Global Root Event Function Pointer.
Definition Event.cpp:17
This Class is the basic Event Class. Inherit from it and create specific event class.
Definition Event.h:96
The ImguiViewport Class. This class defines how to render a viewport.
Native C++ Script Class.
This Class is inherited from Event Class. Called by Viewport Resize.
Definition SlateEvent.h:18
This Class handles our engine time step during frames. Global Unique.
Definition TimeStep.h:22
virtual void OnTick(TimeStep &ts) override
This interface defines the behave on specific component tick every frame.
ViewPortResizeQuerier()=default
Constructor Function.
std::weak_ptr< ImguiViewport > m_ViewPort
viewport pointer.
virtual void OnEvent(Event &e) override
This interface defines the behave on specific component event happened.
virtual ~ViewPortResizeQuerier() override=default
Destructor Function.
Script of handle viewport resize event.
static VulkanState & GetState()
Get VulkanState in use.
This class defines the render backend behaves of Vulkan.