BsScriptGUIRenderTexture.h 982 B

123456789101112131415161718192021222324252627
  1. #pragma once
  2. #include "BsScriptEnginePrerequisites.h"
  3. #include "BsScriptGUIElement.h"
  4. namespace BansheeEngine
  5. {
  6. /**
  7. * @brief Interop class between C++ & CLR for GUIRenderTexture.
  8. */
  9. class BS_SCR_BE_EXPORT ScriptGUIRenderTexture : public TScriptGUIElement < ScriptGUIRenderTexture >
  10. {
  11. public:
  12. SCRIPT_OBJ(ENGINE_ASSEMBLY, "BansheeEngine", "GUIRenderTexture")
  13. private:
  14. ScriptGUIRenderTexture(MonoObject* instance, GUIRenderTexture* texture);
  15. /************************************************************************/
  16. /* CLR HOOKS */
  17. /************************************************************************/
  18. static void internal_createInstance(MonoObject* instance, ScriptRenderTexture2D* texture,
  19. MonoString* style, MonoArray* guiOptions);
  20. static void internal_setTexture(ScriptGUIRenderTexture* nativeInstance, ScriptRenderTexture2D* texture);
  21. static void internal_setTint(ScriptGUIRenderTexture* nativeInstance, Color color);
  22. };
  23. }