BsScriptCharDesc.generated.h 957 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #pragma once
  2. #include "BsScriptEnginePrerequisites.h"
  3. #include "BsScriptObject.h"
  4. #include "../../../bsf/Source/Foundation/bsfCore/Text/BsFontDesc.h"
  5. #include "../../../bsf/Source/Foundation/bsfCore/Text/BsFontDesc.h"
  6. namespace bs
  7. {
  8. struct __CharDescInterop
  9. {
  10. uint32_t charId;
  11. uint32_t page;
  12. float uvX;
  13. float uvY;
  14. float uvWidth;
  15. float uvHeight;
  16. uint32_t width;
  17. uint32_t height;
  18. int32_t xOffset;
  19. int32_t yOffset;
  20. int32_t xAdvance;
  21. int32_t yAdvance;
  22. MonoArray* kerningPairs;
  23. };
  24. class BS_SCR_BE_EXPORT ScriptCharDesc : public ScriptObject<ScriptCharDesc>
  25. {
  26. public:
  27. SCRIPT_OBJ(ENGINE_ASSEMBLY, "BansheeEngine", "CharDesc")
  28. static MonoObject* box(const __CharDescInterop& value);
  29. static __CharDescInterop unbox(MonoObject* value);
  30. static CharDesc fromInterop(const __CharDescInterop& value);
  31. static __CharDescInterop toInterop(const CharDesc& value);
  32. private:
  33. ScriptCharDesc(MonoObject* managedInstance);
  34. };
  35. }