BsScriptProfilerOverlayInternal.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 "GUI/BsProfilerOverlay.h"
  7. namespace bs
  8. {
  9. class ScriptCCamera;
  10. /** @addtogroup ScriptInteropEngine
  11. * @{
  12. */
  13. /** Interop class between C++ & CLR for ProfilerOverlayInternal. */
  14. class BS_SCR_BE_EXPORT ScriptProfilerOverlayInternal : public ScriptObject < ScriptProfilerOverlayInternal >
  15. {
  16. public:
  17. SCRIPT_OBJ(ENGINE_ASSEMBLY, "BansheeEngine", "ProfilerOverlayInternal")
  18. /** Returns the native profiler overlay instance. */
  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, ScriptCCamera* 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. /** @} */
  33. }