AuxGeomSharedDrawFunctions.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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 <Atom/RPI.Public/AuxGeom/AuxGeomDraw.h>
  10. namespace AtomSampleViewer
  11. {
  12. // Create some semi-transparent colors
  13. extern const AZ::Color BlackAlpha;
  14. extern const AZ::Color WhiteAlpha;
  15. extern const AZ::Color RedAlpha;
  16. extern const AZ::Color GreenAlpha;
  17. extern const AZ::Color BlueAlpha;
  18. extern const AZ::Color YellowAlpha;
  19. extern const AZ::Color CyanAlpha;
  20. extern const AZ::Color MagentaAlpha;
  21. extern const AZ::Color LightGray;
  22. extern const AZ::Color DarkGray;
  23. void DrawBackgroundBox(AZ::RPI::AuxGeomDrawPtr auxGeom);
  24. void DrawThreeGridsOfPoints(AZ::RPI::AuxGeomDrawPtr auxGeom);
  25. void DrawAxisLines(AZ::RPI::AuxGeomDrawPtr auxGeom);
  26. void DrawLines(AZ::RPI::AuxGeomDrawPtr auxGeom);
  27. void DrawTriangles(AZ::RPI::AuxGeomDrawPtr auxGeom);
  28. void DrawShapes(AZ::RPI::AuxGeomDrawPtr auxGeom);
  29. void DrawBoxes(AZ::RPI::AuxGeomDrawPtr auxGeom, float x = 10.0f);
  30. void DrawManyPrimitives(AZ::RPI::AuxGeomDrawPtr auxGeom);
  31. void DrawDepthTestPrimitives(AZ::RPI::AuxGeomDrawPtr auxGeom);
  32. void Draw2DWireRect(AZ::RPI::AuxGeomDrawPtr auxGeom, const AZ::Color& color, float z = 0.99f);
  33. } // namespace AtomSampleViewer