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

Comentários e remove Windows em GraphicsDEviceInformation

This commit is contained in:
Danilo 2024-08-02 11:26:22 -03:00
parent 7b7fcddc4e
commit 0dd43eb377
2 changed files with 5 additions and 3 deletions

View File

@ -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() {

View File

@ -4,15 +4,18 @@
#include "../default.hpp"
namespace xna {
//Holds the settings for creating a graphics device on Windows.
struct GraphicsDeviceInformation {
GraphicsDeviceInformation() {
PresentParameters = snew<PresentationParameters>();
}
//Specifies which graphics adapter to create the device on.
sptr<GraphicsAdapter> 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<xna::PresentationParameters> PresentParameters = nullptr;
sptr<GameWindow> Window = nullptr;
};
}