Called every frame to update the layer with the given timestep.
46{
48
49
51
52
54 {
57 }
58
59 {
62
64 {
66
70
77 }
79 }
80 }
81 else {
83 }
84
88 }
89}
#define MU_PROFILE_SCOPE(name)
Definition Instrumentor.h:239
Window & GetWindow()
Retrieves the application window.
Definition Application.h:110
static Application & Get()
Retrieves the singleton instance of the Application.
Definition Application.h:107
void OnUpdate(Timestep ts)
Definition OrthographicCameraController.cpp:21
OrthographicCameraBounds GetBounds() const
Definition OrthographicCameraController.h:40
OrthographicCamera & GetCamera()
Definition OrthographicCameraController.h:38
glm::vec3 GetPosition() const
Definition OrthographicCameraController.h:42
void OnRender()
Definition ParticleSystem.cpp:76
bool m_IsEmitting
Definition ParticleSystem.h:63
void OnUpdate(Timestep ts)
Definition ParticleSystem.cpp:24
float m_TimeSinceLastEmit
Definition ParticleSystem.h:62
void Emit(const ParticleProps &particleProps)
Definition ParticleSystem.cpp:96
static void EndScene()
Ends the current scene.
Definition Renderer2D.cpp:165
static void ResetStats()
Resets the rendering statistics.
Definition Renderer2D.cpp:516
static void BeginScene(const Camera &camera, const glm::mat4 &transform)
Begins a new scene with the given camera and transform.
Definition Renderer2D.cpp:137
virtual uint32_t GetHeight() const =0
Retrieves the height of the window.
virtual uint32_t GetWidth() const =0
Retrieves the width of the window.
@ MBC_ButtonLeft
Definition MouseButtonCodes.h:29