1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Start extracting timeline height control logic.

This commit is contained in:
Bartosz Taudul
2022-08-15 13:29:45 +02:00
parent b0ac78dde1
commit c01ad38d46
8 changed files with 74 additions and 18 deletions
+24
View File
@@ -0,0 +1,24 @@
#ifndef __TRACYTIMELINECONTROLLER_HPP__
#define __TRACYTIMELINECONTROLLER_HPP__
namespace tracy
{
class TimelineController
{
public:
TimelineController();
void End( float offset );
float GetHeight() const { return m_height; }
private:
float m_height;
float m_offset;
float m_scroll;
};
}
#endif