UI Hello World

This commit is contained in:
2022-10-23 01:01:16 -07:00
parent 65e3bb43a5
commit bc74e6782b
25 changed files with 663 additions and 41 deletions

23
src/dawn/ui/UISprite.hpp Normal file
View File

@ -0,0 +1,23 @@
// Copyright (c) 2022 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 UISprite : public UIComponent {
protected:
void updatePositions() override;
public:
Mesh mesh;
UISprite(UICanvas &canvas);
// void update() override;
void drawSelf(UIShader &uiShader, glm::mat4 selfTransform) override;
};
}