DebugHud.pkg 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. $#include "DebugHud.h"
  2. static const unsigned DEBUGHUD_SHOW_NONE;
  3. static const unsigned DEBUGHUD_SHOW_STATS;
  4. static const unsigned DEBUGHUD_SHOW_MODE;
  5. static const unsigned DEBUGHUD_SHOW_PROFILER;
  6. static const unsigned DEBUGHUD_SHOW_ALL;
  7. class DebugHud : public Object
  8. {
  9. void SetDefaultStyle(XMLFile* style);
  10. void SetMode(unsigned mode);
  11. void SetProfilerMaxDepth(unsigned depth);
  12. void SetProfilerInterval(float interval);
  13. void SetUseRendererStats(bool enable);
  14. void Toggle(unsigned mode);
  15. void ToggleAll();
  16. XMLFile* GetDefaultStyle() const;
  17. Text* GetStatsText() const;
  18. Text* GetModeText() const;
  19. Text* GetProfilerText() const;
  20. unsigned GetMode() const;
  21. unsigned GetProfilerMaxDepth() const;
  22. float GetProfilerInterval() const;
  23. bool GetUseRendererStats() const;
  24. void SetAppStats(const String label, const Variant stats);
  25. void SetAppStats(const String label, const String stats);
  26. bool ResetAppStats(const String label);
  27. void ClearAppStats();
  28. tolua_property__get_set XMLFile* defaultStyle;
  29. tolua_readonly tolua_property__get_set Text* statsText;
  30. tolua_readonly tolua_property__get_set Text* modeText;
  31. tolua_readonly tolua_property__get_set Text* profilerText;
  32. tolua_property__get_set unsigned mode;
  33. tolua_property__get_set unsigned profilerMaxDepth;
  34. tolua_property__get_set float profilerInterval;
  35. tolua_property__get_set bool useRendererStats;
  36. };