Code refactor and make update
This commit is contained in:
parent
3ad40381e5
commit
2a2044c632
10 changed files with 35 additions and 44 deletions
|
|
@ -12,6 +12,7 @@ class ContainerInterface
|
|||
{
|
||||
public:
|
||||
virtual std::tuple<int, int> get_child_position(const std::size_t child_index [[maybe_unused]]) const = 0;
|
||||
|
||||
protected:
|
||||
virtual std::size_t push_child(std::shared_ptr<Component> child) = 0;
|
||||
virtual std::shared_ptr<Component> get_child(std::size_t index) const = 0;
|
||||
|
|
|
|||
|
|
@ -20,4 +20,3 @@ protected:
|
|||
};
|
||||
|
||||
} // namespace uui
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
|
|
@ -19,8 +18,7 @@ protected:
|
|||
std::size_t parent_index, const position_t x, const position_t y, const Direction direction);
|
||||
GlButton(
|
||||
std::shared_ptr<GlWindow> window, std::size_t window_index, const position_t x, const position_t y,
|
||||
const Direction direction):
|
||||
GlButton(window, window_index, window, window_index, x, y, direction)
|
||||
const Direction direction): GlButton(window, window_index, window, window_index, x, y, direction)
|
||||
{}
|
||||
|
||||
virtual std::tuple<int, int> get_child_position(const std::size_t child_index) const;
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
#pragma once
|
||||
|
||||
// clang-format off
|
||||
#define GLAD_GL_IMPLEMENTATION
|
||||
#include "glad/glad.h"
|
||||
#define GLFW_INCLUDE_VULKAN
|
||||
#define GLFW_INCLUDE_NONE
|
||||
#include <GLFW/glfw3.h>
|
||||
|
||||
#define GLM_FORCE_RADIANS
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue