2010-11-20 10:37:14 +00:00
|
|
|
/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
|
|
|
|
/* If you are missing that file, acquire a complete release at teeworlds.com. */
|
2010-05-29 07:25:38 +00:00
|
|
|
#ifndef GAME_CLIENT_COMPONENTS_DEBUGHUD_H
|
|
|
|
#define GAME_CLIENT_COMPONENTS_DEBUGHUD_H
|
2022-04-14 11:31:00 +00:00
|
|
|
#include <engine/client/client.h>
|
|
|
|
|
2010-05-29 07:25:38 +00:00
|
|
|
#include <game/client/component.h>
|
|
|
|
|
|
|
|
class CDebugHud : public CComponent
|
2011-04-13 18:37:12 +00:00
|
|
|
{
|
2010-05-29 07:25:38 +00:00
|
|
|
void RenderNetCorrections();
|
|
|
|
void RenderTuning();
|
2020-11-03 07:03:24 +00:00
|
|
|
void RenderHint();
|
2020-09-26 19:41:58 +00:00
|
|
|
|
2022-04-14 11:31:00 +00:00
|
|
|
CGraph m_RampGraph;
|
|
|
|
CGraph m_ZoomedInGraph;
|
|
|
|
float m_SpeedTurningPoint;
|
|
|
|
float MiddleOfZoomedInGraph;
|
|
|
|
float m_OldVelrampStart;
|
|
|
|
float m_OldVelrampRange;
|
|
|
|
float m_OldVelrampCurvature;
|
|
|
|
|
2010-05-29 07:25:38 +00:00
|
|
|
public:
|
2022-01-31 02:11:47 +00:00
|
|
|
virtual int Sizeof() const override { return sizeof(*this); }
|
2022-01-30 23:43:56 +00:00
|
|
|
virtual void OnRender() override;
|
2010-05-29 07:25:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|