BsScriptProfilerOverlayInternal.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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 BansheeEngine
  8. {
  9. /**
  10. * @brief Interop class between C++ & CLR for ProfilerOverlayInternal.
  11. */
  12. class BS_SCR_BE_EXPORT ScriptProfilerOverlayInternal : public ScriptObject < ScriptProfilerOverlayInternal >
  13. {
  14. public:
  15. SCRIPT_OBJ(ENGINE_ASSEMBLY, "BansheeEngine", "ProfilerOverlayInternal")
  16. /**
  17. * @brief Returns the native profiler overlay instance.
  18. */
  19. ProfilerOverlayInternal* getInternal() const { return mProfilerOverlayInternal; }
  20. private:
  21. ScriptProfilerOverlayInternal(MonoObject* managedInstance, const SPtr<Camera>& camera);
  22. ~ScriptProfilerOverlayInternal();
  23. ProfilerOverlayInternal* mProfilerOverlayInternal;
  24. /************************************************************************/
  25. /* CLR HOOKS */
  26. /************************************************************************/
  27. static void internal_CreateInstance(MonoObject* instance, ScriptCamera* camera);
  28. static void internal_SetType(ScriptProfilerOverlayInternal* thisPtr, ProfilerOverlayType type);
  29. static void internal_Update(ScriptProfilerOverlayInternal* thisPtr);
  30. static void internal_DestroyInstance(ScriptProfilerOverlayInternal* thisPtr);
  31. };
  32. }