Now I gotta fix alignment

This commit is contained in:
2023-04-27 23:31:09 -07:00
parent 89afd1e53f
commit 129a460cd1
7 changed files with 182 additions and 14 deletions

View File

@@ -0,0 +1,32 @@
// 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"
#define UI_BORDER_QUAD_COUNT 9
namespace Dawn {
class UIBorder : public UIComponent, public UIComponentRenderable {
private:
Mesh mesh;
public:
// @optional
StateProperty<glm::vec2> borderSize;
// @optional
StateProperty<Texture*> texture;
UIBorder(SceneItem *item);
float_t getContentWidth() override;
float_t getContentHeight() override;
std::vector<struct ShaderPassItem> getPassItems(
glm::mat4 proj, glm::mat4 view
) override;
void onStart() override;
};
}