// Copyright (c) 2023 Dominic Masters // // This software is released under the MIT License. // https://opensource.org/licenses/MIT #pragma once #include "UIComponent.hpp" #include "display/mesh/QuadMesh.hpp" namespace Dawn { class UIImage : public UIComponent, public UIComponentRenderable { private: Mesh mesh; public: // @optional struct Color color = COLOR_WHITE; // @optional StateProperty texture; UIImage(SceneItem *item); float_t getContentWidth() override; float_t getContentHeight() override; std::vector getPassItems( glm::mat4 proj, glm::mat4 view ) override; void onStart() override; }; }