3
0

WhiteBoxEditorDrawUtil.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. #include <AzCore/std/containers/span.h>
  10. #include <WhiteBox/WhiteBoxToolApi.h>
  11. namespace AzFramework
  12. {
  13. class DebugDisplayRequests;
  14. struct ViewportInfo;
  15. } // namespace AzFramework
  16. namespace AZ
  17. {
  18. class Color;
  19. class Transform;
  20. } // namespace AZ
  21. namespace WhiteBox
  22. {
  23. struct WhiteBoxMesh;
  24. void DrawFace(
  25. AzFramework::DebugDisplayRequests& debugDisplay,
  26. WhiteBoxMesh* mesh,
  27. const Api::PolygonHandle& polygon,
  28. const AZ::Color& color);
  29. void DrawOutline(
  30. AzFramework::DebugDisplayRequests& debugDisplay,
  31. WhiteBoxMesh* mesh,
  32. const Api::PolygonHandle& polygon,
  33. const AZ::Color& color);
  34. void DrawEdge(
  35. AzFramework::DebugDisplayRequests& debugDisplay,
  36. WhiteBoxMesh* mesh,
  37. const Api::EdgeHandle& edge,
  38. const AZ::Color& color);
  39. void DrawPoints(
  40. AzFramework::DebugDisplayRequests& debugDisplay,
  41. WhiteBoxMesh* mesh,
  42. const AZ::Transform& worldFromLocal,
  43. const AzFramework::ViewportInfo& viewportInfo,
  44. const AZStd::span<Api::VertexHandle>& verts,
  45. const AZ::Color& color);
  46. } // namespace WhiteBox