AuxGeomSharedDrawFunctions.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
  3. * its licensors.
  4. *
  5. * For complete copyright and license terms please see the LICENSE at the root of this
  6. * distribution (the "License"). All use of this software is governed by the License,
  7. * or, if provided, by the license below or the license accompanying this file. Do not
  8. * remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
  9. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. *
  11. */
  12. #pragma once
  13. #include <Atom/RPI.Public/AuxGeom/AuxGeomDraw.h>
  14. namespace AtomSampleViewer
  15. {
  16. // Create some semi-transparent colors
  17. extern const AZ::Color BlackAlpha;
  18. extern const AZ::Color WhiteAlpha;
  19. extern const AZ::Color RedAlpha;
  20. extern const AZ::Color GreenAlpha;
  21. extern const AZ::Color BlueAlpha;
  22. extern const AZ::Color YellowAlpha;
  23. extern const AZ::Color CyanAlpha;
  24. extern const AZ::Color MagentaAlpha;
  25. extern const AZ::Color LightGray;
  26. extern const AZ::Color DarkGray;
  27. void DrawBackgroundBox(AZ::RPI::AuxGeomDrawPtr auxGeom);
  28. void DrawThreeGridsOfPoints(AZ::RPI::AuxGeomDrawPtr auxGeom);
  29. void DrawAxisLines(AZ::RPI::AuxGeomDrawPtr auxGeom);
  30. void DrawLines(AZ::RPI::AuxGeomDrawPtr auxGeom);
  31. void DrawTriangles(AZ::RPI::AuxGeomDrawPtr auxGeom);
  32. void DrawShapes(AZ::RPI::AuxGeomDrawPtr auxGeom);
  33. void DrawBoxes(AZ::RPI::AuxGeomDrawPtr auxGeom, float x = 10.0f);
  34. void DrawManyPrimitives(AZ::RPI::AuxGeomDrawPtr auxGeom);
  35. void DrawDepthTestPrimitives(AZ::RPI::AuxGeomDrawPtr auxGeom);
  36. void Draw2DWireRect(AZ::RPI::AuxGeomDrawPtr auxGeom, const AZ::Color& color, float z = 0.99f);
  37. } // namespace AtomSampleViewer