From 234a9574846e708a3b8da836a65649a459595269 Mon Sep 17 00:00:00 2001 From: Danilo Date: Tue, 12 Nov 2024 21:02:37 -0300 Subject: [PATCH] Renomeia impl para Implementation --- includes/xna/platform.hpp | 2 +- sources/framework-dx/adapter.cpp | 12 ++++++------ sources/framework-dx/device.cpp | 2 +- sources/framework-dx/swapchain.cpp | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/includes/xna/platform.hpp b/includes/xna/platform.hpp index 241a006..8d2943e 100644 --- a/includes/xna/platform.hpp +++ b/includes/xna/platform.hpp @@ -6,7 +6,7 @@ namespace xna { struct ImplementationBase { struct PlatformImplementation; - std::unique_ptr impl; + std::unique_ptr Implementation; }; } diff --git a/sources/framework-dx/adapter.cpp b/sources/framework-dx/adapter.cpp index 73d7f52..f7625c9 100644 --- a/sources/framework-dx/adapter.cpp +++ b/sources/framework-dx/adapter.cpp @@ -8,7 +8,7 @@ namespace xna { static sptr getSupportedDisplayModes(comptr& dxAdapter); GraphicsAdapter::GraphicsAdapter() { - impl = unew(); + Implementation = unew(); } uptr GraphicsAdapter::DefaultAdapter() { @@ -22,8 +22,8 @@ namespace xna { if (pFactory->EnumAdapters1(0, pAdapter.GetAddressOf()) != DXGI_ERROR_NOT_FOUND) { auto adp = uptr(new GraphicsAdapter()); - adp->impl->adapter = pAdapter; - adp->impl->factory = pFactory; + adp->Implementation->adapter = pAdapter; + adp->Implementation->factory = pFactory; DXGI_ADAPTER_DESC1 desc{}; pAdapter->GetDesc1(&desc); @@ -62,8 +62,8 @@ namespace xna { for (UINT count = 0; pFactory->EnumAdapters1(count, pAdapter.GetAddressOf()) != DXGI_ERROR_NOT_FOUND; ++count) { auto adp = uptr(new GraphicsAdapter()); - adp->impl->adapter = pAdapter; - adp->impl->factory = pFactory; + adp->Implementation->adapter = pAdapter; + adp->Implementation->factory = pFactory; DXGI_ADAPTER_DESC1 desc{}; pAdapter->GetDesc1(&desc); @@ -101,7 +101,7 @@ namespace xna { comptr pOutput = nullptr; - if (impl->adapter->EnumOutputs(0, pOutput.GetAddressOf()) != DXGI_ERROR_NOT_FOUND){ + if (Implementation->adapter->EnumOutputs(0, pOutput.GetAddressOf()) != DXGI_ERROR_NOT_FOUND){ comptr pOutput1 = nullptr; pOutput->QueryInterface(IID_IDXGIOutput1, (void**)pOutput1.GetAddressOf()); diff --git a/sources/framework-dx/device.cpp b/sources/framework-dx/device.cpp index 02d51ca..9f36328 100644 --- a/sources/framework-dx/device.cpp +++ b/sources/framework-dx/device.cpp @@ -226,7 +226,7 @@ namespace xna { createDeviceFlags = D3D11_CREATE_DEVICE_FLAG::D3D11_CREATE_DEVICE_DEBUG; #endif - const auto& pAdapter = GraphicsAdapter::UseNullDevice() ? NULL : currentAdapter.impl->Adapter().Get(); + const auto& pAdapter = GraphicsAdapter::UseNullDevice() ? NULL : currentAdapter.Implementation->Adapter().Get(); // // if pAdapter is not NULL driverType must be D3D_DRIVER_TYPE_UNKNOWN diff --git a/sources/framework-dx/swapchain.cpp b/sources/framework-dx/swapchain.cpp index eadb1f4..6c6bdc3 100644 --- a/sources/framework-dx/swapchain.cpp +++ b/sources/framework-dx/swapchain.cpp @@ -27,7 +27,7 @@ namespace xna { auto adapter = device.Adapter(); comptr dxFactory2 = nullptr; - const auto hr = adapter->impl->Factory()->QueryInterface(IID_IDXGIFactory2, (void**)&dxFactory2); + const auto hr = adapter->Implementation->Factory()->QueryInterface(IID_IDXGIFactory2, (void**)&dxFactory2); if (FAILED(hr)) return false;