Code refactor and make update

This commit is contained in:
Corentin 2026-07-23 15:43:54 +09:00
commit 2a2044c632
Signed by: corentin
GPG key ID: 48C87E27C6C917F4
10 changed files with 35 additions and 44 deletions

View file

@ -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;

View file

@ -20,4 +20,3 @@ protected:
};
} // namespace uui

View file

@ -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;

View file

@ -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