| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- $#include "Engine/DebugHud.h"
- static const unsigned DEBUGHUD_SHOW_NONE;
- static const unsigned DEBUGHUD_SHOW_STATS;
- static const unsigned DEBUGHUD_SHOW_MODE;
- static const unsigned DEBUGHUD_SHOW_PROFILER;
- static const unsigned DEBUGHUD_SHOW_MEMORY;
- static const unsigned DEBUGHUD_SHOW_EVENTPROFILER;
- static const unsigned DEBUGHUD_SHOW_ALL;
- class DebugHud : public Object
- {
- void Update();
- void SetDefaultStyle(XMLFile* style);
- void SetMode(unsigned mode);
- void SetProfilerMaxDepth(unsigned depth);
- void SetProfilerInterval(float interval);
- void SetUseRendererStats(bool enable);
- void Toggle(unsigned mode);
- void ToggleAll();
- XMLFile* GetDefaultStyle() const;
- Text* GetStatsText() const;
- Text* GetModeText() const;
- Text* GetProfilerText() const;
- unsigned GetMode() const;
- unsigned GetProfilerMaxDepth() const;
- float GetProfilerInterval() const;
- bool GetUseRendererStats() const;
- void SetAppStats(const String label, const Variant stats);
- void SetAppStats(const String label, const String stats);
- bool ResetAppStats(const String label);
- void ClearAppStats();
- tolua_property__get_set XMLFile* defaultStyle;
- tolua_readonly tolua_property__get_set Text* statsText;
- tolua_readonly tolua_property__get_set Text* modeText;
- tolua_readonly tolua_property__get_set Text* profilerText;
- tolua_property__get_set unsigned mode;
- tolua_property__get_set unsigned profilerMaxDepth;
- tolua_property__get_set float profilerInterval;
- tolua_property__get_set bool useRendererStats;
- };
- DebugHud* GetDebugHud();
- tolua_readonly tolua_property__get_set DebugHud* debugHud;
- ${
- #define TOLUA_DISABLE_tolua_EngineLuaAPI_GetDebugHud00
- static int tolua_EngineLuaAPI_GetDebugHud00(lua_State* tolua_S)
- {
- return ToluaGetSubsystem<DebugHud>(tolua_S);
- }
- #define TOLUA_DISABLE_tolua_get_debugHud_ptr
- #define tolua_get_debugHud_ptr tolua_EngineLuaAPI_GetDebugHud00
- $}
|