16 DebugScript() : inp(), currentAction(), m_actions(), m_labels(), m_index(0) {}
17 virtual ~DebugScript() {}
18 void Load(const char *filename)
22 bool Execute(View *view, Screen *scr);
33 AT_EnableLazyRendering,
34 AT_DisableLazyRendering,
44 AT_ApproachBoundsZeno,
45 AT_ApproachBoundsLinear,
47 AT_QueryGPUBounds, // query bounds of Beziers when transformed to GPU
48 AT_ScreenShot, // take screenshot
62 Action() : type(AT_WaitFrame), x(0), y(0), ix(0), iy(0), z(0), loops(0), textargs("") {}
68 std::vector<Action> m_actions;
69 std::map<std::string, int> m_labels;
72 struct PerformanceData
75 unsigned object_count;
79 PerformanceData m_perf_start;
80 PerformanceData m_perf_last;
82 void PrintPerformance(View * view, Screen * scr);
83 void ClearPerformance(View * view, Screen * scr);
85 void ParseAction(View * view, Screen * scr);