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:
parent
7b7fcddc4e
commit
0dd43eb377
@ -14,8 +14,7 @@ namespace xna {
|
|||||||
parameters->BackBufferHeight = backBufferHeight;
|
parameters->BackBufferHeight = backBufferHeight;
|
||||||
parameters->BackBufferFormat = SurfaceFormat::Color;
|
parameters->BackBufferFormat = SurfaceFormat::Color;
|
||||||
parameters->IsFullscreen = false;
|
parameters->IsFullscreen = false;
|
||||||
information.PresentParameters = parameters;
|
information.PresentParameters = parameters;
|
||||||
information.Window = game->Window();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void GraphicsDeviceManager::ApplyChanges() {
|
void GraphicsDeviceManager::ApplyChanges() {
|
||||||
|
@ -4,15 +4,18 @@
|
|||||||
#include "../default.hpp"
|
#include "../default.hpp"
|
||||||
|
|
||||||
namespace xna {
|
namespace xna {
|
||||||
|
//Holds the settings for creating a graphics device on Windows.
|
||||||
struct GraphicsDeviceInformation {
|
struct GraphicsDeviceInformation {
|
||||||
GraphicsDeviceInformation() {
|
GraphicsDeviceInformation() {
|
||||||
PresentParameters = snew<PresentationParameters>();
|
PresentParameters = snew<PresentationParameters>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Specifies which graphics adapter to create the device on.
|
||||||
sptr<GraphicsAdapter> Adapter = nullptr;
|
sptr<GraphicsAdapter> Adapter = nullptr;
|
||||||
|
//Gets the graphics profile, which determines the graphics feature set.
|
||||||
xna::GraphicsProfile Profile{ xna::GraphicsProfile::Reach };
|
xna::GraphicsProfile Profile{ xna::GraphicsProfile::Reach };
|
||||||
|
//Specifies the presentation parameters to use when creating a graphics device.
|
||||||
sptr<xna::PresentationParameters> PresentParameters = nullptr;
|
sptr<xna::PresentationParameters> PresentParameters = nullptr;
|
||||||
sptr<GameWindow> Window = nullptr;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user