16 DebugScript(std::istream * in) : m_input(in), currentAction(), m_actions(), m_labels(), m_index(0) {}
17 virtual ~DebugScript() {}
19 bool Execute(View *view, Screen *scr);
30 AT_EnableLazyRendering,
31 AT_DisableLazyRendering,
41 AT_ApproachBoundsZeno,
42 AT_ApproachBoundsLinear,
44 AT_QueryGPUBounds, // query bounds of Beziers when transformed to GPU
45 AT_ScreenShot, // take screenshot
59 Action() : type(AT_WaitFrame), x(0), y(0), ix(0), iy(0), z(0), loops(0), textargs("") {}
62 std::istream * m_input;
65 std::vector<Action> m_actions;
66 std::map<std::string, int> m_labels;
69 struct PerformanceData
72 unsigned object_count;
76 PerformanceData m_perf_start;
77 PerformanceData m_perf_last;
79 void PrintPerformance(View * view, Screen * scr);
80 void ClearPerformance(View * view, Screen * scr);
82 void ParseAction(View * view, Screen * scr);