1
0
mirror of https://github.com/ncblakely/GiantsTools synced 2024-11-16 19:55:36 +01:00
GiantsTools/NavMeshGenerator/RecastContext.h

23 lines
594 B
C++

#pragma once
#include "Recast.h"
#include "Framework/PerfTimer.h"
class RecastContext : public rcContext
{
public:
RecastContext(bool enableLogging);
protected:
virtual void doResetLog();
virtual void doLog(const rcLogCategory category, const char* msg, const int len);
virtual void doResetTimers();
virtual void doStartTimer(const rcTimerLabel label);
virtual void doStopTimer(const rcTimerLabel label);
virtual int doGetAccumulatedTime(const rcTimerLabel label) const;
private:
bool m_enableLogging{};
TimeVal m_startTime[RC_MAX_TIMERS]{};
TimeVal m_accTime[RC_MAX_TIMERS]{};
};