1
0
mirror of https://github.com/borgesdan/xn65 synced 2024-12-29 21:54:47 +01:00

Renomeia impl para Implementation

This commit is contained in:
Danilo 2024-11-12 21:02:37 -03:00
parent 02a1911532
commit 234a957484
4 changed files with 9 additions and 9 deletions

View File

@ -6,7 +6,7 @@
namespace xna {
struct ImplementationBase {
struct PlatformImplementation;
std::unique_ptr<PlatformImplementation> impl;
std::unique_ptr<PlatformImplementation> Implementation;
};
}

View File

@ -8,7 +8,7 @@ namespace xna {
static sptr<DisplayModeCollection> getSupportedDisplayModes(comptr<IDXGIAdapter1>& dxAdapter);
GraphicsAdapter::GraphicsAdapter() {
impl = unew<PlatformImplementation>();
Implementation = unew<PlatformImplementation>();
}
uptr<GraphicsAdapter> GraphicsAdapter::DefaultAdapter() {
@ -22,8 +22,8 @@ namespace xna {
if (pFactory->EnumAdapters1(0, pAdapter.GetAddressOf()) != DXGI_ERROR_NOT_FOUND) {
auto adp = uptr<GraphicsAdapter>(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<GraphicsAdapter>(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<IDXGIOutput> 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<IDXGIOutput1> pOutput1 = nullptr;
pOutput->QueryInterface(IID_IDXGIOutput1, (void**)pOutput1.GetAddressOf());

View File

@ -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

View File

@ -27,7 +27,7 @@ namespace xna {
auto adapter = device.Adapter();
comptr<IDXGIFactory2> 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;