mirror of
https://github.com/seekrs/MacroLibX.git
synced 2026-01-11 14:43:34 +00:00
fixing macOS issue
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
#include "mlx_extended.h"
|
||||
#include <PreCompiled.h>
|
||||
|
||||
#include <Core/Application.h>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
namespace mlx
|
||||
{
|
||||
EventListener::EventListener(func::function<void(const EventBase&)> functor, std::string name)
|
||||
EventListener::EventListener(std::function<void(const EventBase&)> functor, std::string name)
|
||||
: m_listen_functor(std::move(functor)), m_name(std::move(name))
|
||||
{}
|
||||
}
|
||||
|
||||
@@ -216,7 +216,7 @@ namespace mlx
|
||||
return y;
|
||||
}
|
||||
|
||||
void SDLManager::InputsFetcher(func::function<void(mlx_event_type, int, int)> functor)
|
||||
void SDLManager::InputsFetcher(std::function<void(mlx_event_type, int, int)> functor)
|
||||
{
|
||||
SDL_Event event;
|
||||
while(SDL_PollEvent(&event))
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace mlx
|
||||
};
|
||||
p_fragment_shader = std::make_shared<Shader>(fragment_shader_code, ShaderType::Fragment, std::move(fragment_shader_layout));
|
||||
|
||||
func::function<void(const EventBase&)> functor = [this](const EventBase& event)
|
||||
std::function<void(const EventBase&)> functor = [this](const EventBase& event)
|
||||
{
|
||||
if(event.What() == Event::ResizeEventCode)
|
||||
m_pipeline.Destroy();
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace mlx
|
||||
};
|
||||
p_fragment_shader = std::make_shared<Shader>(fragment_shader_code, ShaderType::Fragment, std::move(fragment_shader_layout));
|
||||
|
||||
func::function<void(const EventBase&)> functor = [this](const EventBase& event)
|
||||
std::function<void(const EventBase&)> functor = [this](const EventBase& event)
|
||||
{
|
||||
if(event.What() == Event::ResizeEventCode)
|
||||
m_pipeline.Destroy();
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace mlx
|
||||
|
||||
m_2Dpass.Init();
|
||||
m_final.Init();
|
||||
func::function<void(const EventBase&)> functor = [this](const EventBase& event)
|
||||
std::function<void(const EventBase&)> functor = [this](const EventBase& event)
|
||||
{
|
||||
if(event.What() == Event::ResizeEventCode)
|
||||
m_main_render_texture.Destroy();
|
||||
|
||||
Reference in New Issue
Block a user