fixing vulkan loader, moving vulkan pfns to RenderCore

This commit is contained in:
2024-09-20 16:14:14 +02:00
parent f4e4672cc6
commit 092e5acd9b
22 changed files with 821 additions and 684 deletions

View File

@@ -8,7 +8,7 @@
namespace mlx
{
Application::Application() : m_fps(), m_in()
Application::Application() : m_render_core(), m_fps(), m_in()
{
EventBus::RegisterListener({[](const EventBase& event)
{

View File

@@ -29,7 +29,6 @@ extern "C"
mlx::Application* app = new mlx::Application;
if(app == nullptr)
mlx::FatalError("Tout a pété");
mlx::RenderCore::Get().Init();
__mlx_ptr = static_cast<void*>(app);
return __mlx_ptr;
}
@@ -281,7 +280,6 @@ extern "C"
{
MLX_CHECK_APPLICATION_POINTER(mlx);
delete static_cast<mlx::Application*>(mlx);
mlx::RenderCore::Get().Destroy();
__mlx_ptr = nullptr;
return 0;
}