BsScriptHandleDrawing.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #pragma once
  2. #include "BsScriptEditorPrerequisites.h"
  3. #include "BsScriptObject.h"
  4. #include "BsVector3.h"
  5. #include "BsMatrix4.h"
  6. #include "BsRect3.h"
  7. #include "BsColor.h"
  8. namespace BansheeEngine
  9. {
  10. /**
  11. * @brief Interop class between C++ & CLR for HandleDrawManager.
  12. */
  13. class BS_SCR_BED_EXPORT ScriptHandleDrawing : public ScriptObject <ScriptHandleDrawing>
  14. {
  15. public:
  16. SCRIPT_OBJ(EDITOR_ASSEMBLY, "BansheeEditor", "HandleDrawing")
  17. private:
  18. /************************************************************************/
  19. /* CLR HOOKS */
  20. /************************************************************************/
  21. static void internal_SetColor(Color color);
  22. static void internal_SetTransform(Matrix4 transform);
  23. static void internal_DrawCube(Vector3 position, Vector3 extents, float size);
  24. static void internal_DrawSphere(Vector3 position, float radius, float size);
  25. static void internal_DrawWireCube(Vector3 position, Vector3 extents, float size);
  26. static void internal_DrawWireSphere(Vector3 position, float radius, float size);
  27. static void internal_DrawLine(Vector3 start, Vector3 end, float size);
  28. static void internal_DrawCone(Vector3 coneBase, Vector3 normal, float height, float radius, float size);
  29. static void internal_DrawDisc(Vector3 position, Vector3 normal, float radius, float size);
  30. static void internal_DrawWireDisc(Vector3 position, Vector3 normal, float radius, float size);
  31. static void internal_DrawArc(Vector3 position, Vector3 normal, float radius, Degree startAngle, Degree amountAngle, float size);
  32. static void internal_DrawWireArc(Vector3 position, Vector3 normal, float radius, Degree startAngle, Degree amountAngle, float size);
  33. static void internal_DrawRect(Vector3 center, Vector3 horzAxis, Vector3 vertAxis, float extentH, float extentV, float size);
  34. };
  35. }