Fixed UI not rendering (partially)

This commit is contained in:
2023-05-31 09:30:21 -07:00
parent a51c5d0fc8
commit 4ae838945e
24 changed files with 110 additions and 73 deletions

View File

@@ -4,13 +4,13 @@
// https://opensource.org/licenses/MIT
#pragma once
#include "UIComponent.hpp"
#include "UIComponentRenderable.hpp"
#include "display/mesh/QuadMesh.hpp"
#define UI_BORDER_QUAD_COUNT 9
namespace Dawn {
class UIBorder : public UIComponent, public UIComponentRenderable {
class UIBorder : public UIComponentRenderable {
private:
Mesh mesh;
@@ -24,7 +24,7 @@ namespace Dawn {
float_t getContentWidth() override;
float_t getContentHeight() override;
std::vector<struct ShaderPassItem> getRenderPasses() override;
std::vector<struct ShaderPassItem> getUIRenderPasses() override;
void onStart() override;
};
}