DebugHud.pkg 1.9 KB

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