3
0

WhiteBoxNullRenderMesh.h 964 B

1234567891011121314151617181920212223242526272829
  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 "WhiteBoxRenderMeshInterface.h"
  10. namespace WhiteBox
  11. {
  12. class WhiteBoxNullRenderMesh : public RenderMeshInterface
  13. {
  14. public:
  15. AZ_RTTI(WhiteBoxNullRenderMesh, "{99230D4D-5592-4A41-8BAB-60C1B7C1785D}", RenderMeshInterface);
  16. WhiteBoxNullRenderMesh(AZ::EntityId entityId);
  17. // RenderMeshInterface ...
  18. void BuildMesh(const WhiteBoxRenderData& renderData, const AZ::Transform& worldFromLocal) override;
  19. void UpdateTransform(const AZ::Transform& worldFromLocal) override;
  20. void UpdateMaterial(const WhiteBoxMaterial& material) override;
  21. void SetVisiblity(bool visibility) override;
  22. bool IsVisible() const override;
  23. };
  24. } // namespace WhiteBox