2
0

BsScriptProfilerOverlayInternal.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #pragma once
  4. #include "BsScriptEnginePrerequisites.h"
  5. #include "BsScriptObject.h"
  6. #include "BsProfilerOverlay.h"
  7. namespace bs
  8. {
  9. /** @addtogroup ScriptInteropEngine
  10. * @{
  11. */
  12. /** Interop class between C++ & CLR for ProfilerOverlayInternal. */
  13. class BS_SCR_BE_EXPORT ScriptProfilerOverlayInternal : public ScriptObject < ScriptProfilerOverlayInternal >
  14. {
  15. public:
  16. SCRIPT_OBJ(ENGINE_ASSEMBLY, "BansheeEngine", "ProfilerOverlayInternal")
  17. /** Returns the native profiler overlay instance. */
  18. ProfilerOverlayInternal* getInternal() const { return mProfilerOverlayInternal; }
  19. private:
  20. ScriptProfilerOverlayInternal(MonoObject* managedInstance, const SPtr<Camera>& camera);
  21. ~ScriptProfilerOverlayInternal();
  22. ProfilerOverlayInternal* mProfilerOverlayInternal;
  23. /************************************************************************/
  24. /* CLR HOOKS */
  25. /************************************************************************/
  26. static void internal_CreateInstance(MonoObject* instance, ScriptCamera* camera);
  27. static void internal_SetType(ScriptProfilerOverlayInternal* thisPtr, ProfilerOverlayType type);
  28. static void internal_Update(ScriptProfilerOverlayInternal* thisPtr);
  29. static void internal_DestroyInstance(ScriptProfilerOverlayInternal* thisPtr);
  30. };
  31. /** @} */
  32. }