OpenMiner/include/hud/DebugOverlay.hpp

37 lines
773 B
C++
Raw Normal View History

2018-07-06 14:24:49 +02:00
/*
* =====================================================================================
*
* Filename: DebugOverlay.hpp
*
* Description:
*
* Created: 06/07/2018 13:54:09
*
* Author: Quentin Bazin, <quent42340@gmail.com>
*
* =====================================================================================
*/
#ifndef DEBUGOVERLAY_HPP_
#define DEBUGOVERLAY_HPP_
#include "Text.hpp"
2018-12-25 23:14:39 +01:00
class Player;
2018-07-06 14:24:49 +02:00
2018-12-29 02:23:23 +01:00
class DebugOverlay : public gk::Transformable, public gk::IDrawable {
2018-07-06 14:24:49 +02:00
public:
2018-12-25 23:14:39 +01:00
DebugOverlay(const Player &player);
2018-07-06 14:24:49 +02:00
void update();
private:
2018-12-29 02:23:23 +01:00
void draw(gk::RenderTarget &target, gk::RenderStates states) const override;
2018-07-06 14:24:49 +02:00
2018-12-25 23:14:39 +01:00
const Player &m_player;
2018-07-06 14:24:49 +02:00
Text m_versionText;
Text m_positionText;
};
#endif // DEBUGOVERLAY_HPP_