Now I gotta fix alignment
This commit is contained in:
32
src/dawn/scene/components/ui/UIBorder.hpp
Normal file
32
src/dawn/scene/components/ui/UIBorder.hpp
Normal 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;
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user