FourierAnalyzer/include/Screen.hpp

19 lines
327 B
C++
Raw Normal View History

2020-11-05 14:08:34 +00:00
#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;
};