23 lines
593 B
C++
23 lines
593 B
C++
#pragma once
|
|
#include "State.h"
|
|
#include <SDL3/SDL.h>
|
|
|
|
class PlayingState : public State {
|
|
public:
|
|
PlayingState(StateContext& ctx);
|
|
void onEnter() override;
|
|
void onExit() override;
|
|
void handleEvent(const SDL_Event& e) override;
|
|
void update(double frameMs) override;
|
|
void render(SDL_Renderer* renderer, float logicalScale, SDL_Rect logicalVP) override;
|
|
|
|
private:
|
|
// Local per-state variables if needed
|
|
bool localPaused = false;
|
|
|
|
// Render target for blur effect
|
|
SDL_Texture* m_renderTarget = nullptr;
|
|
int m_targetW = 0;
|
|
int m_targetH = 0;
|
|
};
|