From 0dd43eb377f8b2d60ab418ed2461fbcc850c595f Mon Sep 17 00:00:00 2001 From: Danilo Date: Fri, 2 Aug 2024 11:26:22 -0300 Subject: [PATCH] =?UTF-8?q?Coment=C3=A1rios=20e=20remove=20Windows=20em=20?= =?UTF-8?q?GraphicsDEviceInformation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- framework/platform-dx/gdevicemanager.cpp | 3 +-- inc/xna/game/gdeviceinfo.hpp | 5 ++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/framework/platform-dx/gdevicemanager.cpp b/framework/platform-dx/gdevicemanager.cpp index 13ee4f7..df38105 100644 --- a/framework/platform-dx/gdevicemanager.cpp +++ b/framework/platform-dx/gdevicemanager.cpp @@ -14,8 +14,7 @@ namespace xna { parameters->BackBufferHeight = backBufferHeight; parameters->BackBufferFormat = SurfaceFormat::Color; parameters->IsFullscreen = false; - information.PresentParameters = parameters; - information.Window = game->Window(); + information.PresentParameters = parameters; } void GraphicsDeviceManager::ApplyChanges() { diff --git a/inc/xna/game/gdeviceinfo.hpp b/inc/xna/game/gdeviceinfo.hpp index a3a5d07..9734ce3 100644 --- a/inc/xna/game/gdeviceinfo.hpp +++ b/inc/xna/game/gdeviceinfo.hpp @@ -4,15 +4,18 @@ #include "../default.hpp" namespace xna { + //Holds the settings for creating a graphics device on Windows. struct GraphicsDeviceInformation { GraphicsDeviceInformation() { PresentParameters = snew(); } + //Specifies which graphics adapter to create the device on. sptr Adapter = nullptr; + //Gets the graphics profile, which determines the graphics feature set. xna::GraphicsProfile Profile{ xna::GraphicsProfile::Reach }; + //Specifies the presentation parameters to use when creating a graphics device. sptr PresentParameters = nullptr; - sptr Window = nullptr; }; }