This commit is contained in:
2024-04-21 18:10:36 +02:00
parent 6bbf1e196d
commit 215a0dc2c3
28 changed files with 558 additions and 375 deletions

View File

@@ -6,7 +6,7 @@
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/04 22:10:52 by maldavid #+# #+# */
/* Updated: 2024/03/27 17:43:18 by maldavid ### ########.fr */
/* Updated: 2024/04/02 17:06:34 by maldavid ### ########.fr */
/* */
/* ************************************************************************** */
@@ -17,9 +17,7 @@
#include <renderer/texts/font_library.h>
#include <renderer/images/texture.h>
#include <renderer/core/render_core.h>
#include <core/errors.h>
#include <mlx_profile.h>
#include <core/memory.h>
#include <Core/memory.h>
#include <Core/EventBus.h>
namespace mlx::core
@@ -32,11 +30,6 @@ namespace mlx::core
}, "__internal_application" });
_fps.init();
glfwSetErrorCallback([]([[maybe_unused]] int code, const char* desc)
{
error::report(e_kind::fatal_error, "GLFW error : %s", desc);
});
glfwInit();
}
void Application::run() noexcept
@@ -111,6 +104,5 @@ namespace mlx::core
{
TextLibrary::get().clearLibrary();
FontLibrary::get().clearLibrary();
glfwTerminate();
}
}