2
0
mirror of https://github.com/Alia5/GlosSI.git synced 2024-10-30 15:20:38 +00:00
GlosSI/GlosSITarget/TargetWindow.h
2021-10-15 15:02:36 +02:00

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_;
};