mirror of
https://github.com/seekrs/MacroLibX.git
synced 2026-01-11 22:53:34 +00:00
fixing SDLManager
This commit is contained in:
@@ -47,12 +47,12 @@ namespace mlx
|
||||
~Application();
|
||||
|
||||
private:
|
||||
RenderCore m_render_core;
|
||||
FpsManager m_fps;
|
||||
Inputs m_in;
|
||||
ImageRegistry m_image_registry;
|
||||
std::vector<std::unique_ptr<GraphicsSupport>> m_graphics;
|
||||
std::function<int(Handle)> f_loop_hook;
|
||||
std::unique_ptr<RenderCore> p_render_core;
|
||||
Handle p_param = nullptr;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -9,9 +9,9 @@ namespace mlx
|
||||
|
||||
class RenderCore
|
||||
{
|
||||
friend class Application;
|
||||
|
||||
public:
|
||||
RenderCore();
|
||||
|
||||
[[nodiscard]] MLX_FORCEINLINE VkInstance GetInstance() const noexcept { return m_instance; }
|
||||
[[nodiscard]] MLX_FORCEINLINE VkInstance& GetInstanceRef() noexcept { return m_instance; }
|
||||
[[nodiscard]] MLX_FORCEINLINE VkDevice GetDevice() const noexcept { return m_device; }
|
||||
@@ -31,12 +31,12 @@ namespace mlx
|
||||
#undef MLX_VULKAN_INSTANCE_FUNCTION
|
||||
#undef MLX_VULKAN_DEVICE_FUNCTION
|
||||
|
||||
~RenderCore();
|
||||
|
||||
private:
|
||||
RenderCore();
|
||||
void LoadKVFGlobalVulkanFunctionPointers() const noexcept;
|
||||
void LoadKVFInstanceVulkanFunctionPointers() const noexcept;
|
||||
void LoadKVFDeviceVulkanFunctionPointers() const noexcept;
|
||||
~RenderCore();
|
||||
|
||||
private:
|
||||
static RenderCore* s_instance;
|
||||
|
||||
Reference in New Issue
Block a user