BsScriptGUIRenderTexture.h 1.2 KB

1234567891011121314151617181920212223242526272829
  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 "BsScriptGUIElement.h"
  6. namespace BansheeEngine
  7. {
  8. /**
  9. * @brief Interop class between C++ & CLR for GUIRenderTexture.
  10. */
  11. class BS_SCR_BE_EXPORT ScriptGUIRenderTexture : public TScriptGUIElement < ScriptGUIRenderTexture >
  12. {
  13. public:
  14. SCRIPT_OBJ(ENGINE_ASSEMBLY, "BansheeEngine", "GUIRenderTexture")
  15. private:
  16. ScriptGUIRenderTexture(MonoObject* instance, GUIRenderTexture* texture);
  17. /************************************************************************/
  18. /* CLR HOOKS */
  19. /************************************************************************/
  20. static void internal_createInstance(MonoObject* instance, ScriptRenderTexture2D* texture, bool transparent,
  21. MonoString* style, MonoArray* guiOptions);
  22. static void internal_setTexture(ScriptGUIRenderTexture* nativeInstance, ScriptRenderTexture2D* texture);
  23. static void internal_setTint(ScriptGUIRenderTexture* nativeInstance, Color* color);
  24. };
  25. }