mirror of https://github.com/Alia5/GlosSI
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
393 B
C++
21 lines
393 B
C++
#pragma once
|
|
#include <functional>
|
|
|
|
#include <SFML/Graphics/RenderWindow.hpp>
|
|
|
|
class TargetWindow
|
|
{
|
|
public:
|
|
explicit TargetWindow(std::function<void()> on_close = [](){});
|
|
|
|
void setFpsLimit(unsigned int fps_limit);
|
|
void setClickThrough(bool click_through);
|
|
void update();
|
|
void close();
|
|
|
|
private:
|
|
const std::function<void()> on_close_;
|
|
sf::RenderWindow window_;
|
|
};
|
|
|