FourierAnalyzer/include/Screen.hpp
2020-11-05 15:08:34 +01:00

19 lines
327 B
C++

#pragma once
struct SDL_Renderer;
struct SDL_Texture;
struct SDL_Rect { int x, y, w, h };
class Screen
{
public:
Screen(SDL_Renderer* renderer, int x, int y, int w, int h);
~Screen();
virtual void Update() = 0;
virtual void Render(SDL_Renderer* renderer) = 0;
protected:
SDL_Rect screenSpace;
SDL_Texture* texture;
};