DebugHud.pkg 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. $#include "Engine/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. static const unsigned DEBUGHUD_SHOW_ALL_MEMORY;
  8. class DebugHud : public Object
  9. {
  10. void Update();
  11. void SetDefaultStyle(XMLFile* style);
  12. void SetMode(unsigned mode);
  13. void SetProfilerMaxDepth(unsigned depth);
  14. void SetProfilerInterval(float interval);
  15. void SetUseRendererStats(bool enable);
  16. void Toggle(unsigned mode);
  17. void ToggleAll();
  18. XMLFile* GetDefaultStyle() const;
  19. Text* GetStatsText() const;
  20. Text* GetModeText() const;
  21. Text* GetProfilerText() const;
  22. unsigned GetMode() const;
  23. unsigned GetProfilerMaxDepth() const;
  24. float GetProfilerInterval() const;
  25. bool GetUseRendererStats() const;
  26. void SetAppStats(const String label, const Variant stats);
  27. void SetAppStats(const String label, const String stats);
  28. bool ResetAppStats(const String label);
  29. void ClearAppStats();
  30. tolua_property__get_set XMLFile* defaultStyle;
  31. tolua_readonly tolua_property__get_set Text* statsText;
  32. tolua_readonly tolua_property__get_set Text* modeText;
  33. tolua_readonly tolua_property__get_set Text* profilerText;
  34. tolua_property__get_set unsigned mode;
  35. tolua_property__get_set unsigned profilerMaxDepth;
  36. tolua_property__get_set float profilerInterval;
  37. tolua_property__get_set bool useRendererStats;
  38. };
  39. DebugHud* GetDebugHud();
  40. tolua_readonly tolua_property__get_set DebugHud* debugHud;
  41. ${
  42. #define TOLUA_DISABLE_tolua_EngineLuaAPI_GetDebugHud00
  43. static int tolua_EngineLuaAPI_GetDebugHud00(lua_State* tolua_S)
  44. {
  45. return ToluaGetSubsystem<DebugHud>(tolua_S);
  46. }
  47. #define TOLUA_DISABLE_tolua_get_debugHud_ptr
  48. #define tolua_get_debugHud_ptr tolua_EngineLuaAPI_GetDebugHud00
  49. $}