FourierAnalyzer/include/RenderWindow.hpp

26 lines
355 B
C++
Raw Normal View History

2020-11-05 13:58:07 +00:00
#pragma once
2020-11-05 14:21:20 +00:00
#include <vector>
2020-11-05 13:58:07 +00:00
struct SDL_Window;
struct SDL_Renderer;
2020-11-05 14:21:20 +00:00
class Screen;
2020-11-05 13:58:07 +00:00
class RenderWindow
{
public:
RenderWindow(int width, int height);
~RenderWindow();
2020-11-05 14:21:20 +00:00
void AddScreen(Screen* screen);
void RemoveScreen(Screen* screen);
2020-11-05 13:58:07 +00:00
void Run();
2020-11-05 14:21:20 +00:00
public:
2020-11-05 13:58:07 +00:00
SDL_Window* window;
SDL_Renderer* renderer;
2020-11-05 14:21:20 +00:00
private:
std::vector<Screen*> screens;
2020-11-05 13:58:07 +00:00
};