GPR5100 - Rollback
Loading...
Searching...
No Matches
network_client_debug_app.h
1#pragma once
2#include <SFML/Window/Event.hpp>
3#include <SFML/Graphics/RenderTexture.hpp>
4
5#include "client.h"
6#include "network_client.h"
7#include "engine/app.h"
8#include "game/game_globals.h"
9
10
11namespace game
12{
17class NetworkClientDebugApp final : public core::App
18{
19public:
20
21 void Begin() override;
22
23 void Update(sf::Time dt) override;
24
25 void End() override;
26
27 void DrawImGui() override;
28
29 void Draw(sf::RenderTarget& renderTarget) override;
30
31 void OnEvent(const sf::Event& event) override;
32private:
33 std::array<NetworkClient, maxPlayerNmb> clients_;
34 std::array<sf::RenderTexture, maxPlayerNmb> clientsFramebuffers_;
35 sf::Sprite screenQuad_;
36 sf::Vector2u windowSize_;
37};
38
39
40}
App is an interface for applications that need to init/update/destroy, draw and get event from OS.
Definition: app.h:12
NetworkClientDebugApp is a class that have several NetworkClient and shows them on the screen,...
Definition: network_client_debug_app.h:18