2024-03-30 14:25:08 -03:00
|
|
|
#ifndef XNA_GRAPHICS_PRESENTPARAMS_HPP
|
|
|
|
#define XNA_GRAPHICS_PRESENTPARAMS_HPP
|
|
|
|
|
2024-04-23 16:11:17 -03:00
|
|
|
#include "../default.hpp"
|
2024-03-30 14:25:08 -03:00
|
|
|
|
|
|
|
namespace xna {
|
2024-08-05 17:38:35 -03:00
|
|
|
//Contains presentation parameters.
|
2024-05-22 09:55:25 -03:00
|
|
|
struct PresentationParameters {
|
2024-08-05 17:38:35 -03:00
|
|
|
//Gets or sets a value indicating the width of the new swap chain's back buffer.
|
2024-07-30 14:21:35 -03:00
|
|
|
Int BackBufferWidth{ 0 };
|
2024-08-05 17:38:35 -03:00
|
|
|
//Gets or sets a value indicating the height of the new swap chain's back buffer.
|
2024-07-30 14:21:35 -03:00
|
|
|
Int BackBufferHeight{ 0 };
|
2024-08-05 17:38:35 -03:00
|
|
|
//Gets or sets the format of the back buffer.
|
2024-05-22 09:55:25 -03:00
|
|
|
SurfaceFormat BackBufferFormat{ SurfaceFormat::Color };
|
|
|
|
SwapEffect PresentationSwapEffect{ SwapEffect::FlipDiscard };
|
2024-08-05 17:38:35 -03:00
|
|
|
//Gets or sets the handle to the device window.
|
2024-05-22 09:55:25 -03:00
|
|
|
intptr_t DeviceWindowHandle{ 0 };
|
2024-08-05 17:38:35 -03:00
|
|
|
//Gets or sets a value indicating whether the application is in full screen mode.
|
2024-07-30 10:43:39 -03:00
|
|
|
bool IsFullscreen{ false };
|
2024-08-05 17:38:35 -03:00
|
|
|
//Gets or sets a value indicating the number of sample locations during multisampling.
|
2024-07-30 10:43:39 -03:00
|
|
|
Int MultiSampleCount{ 0 };
|
2024-08-05 17:38:35 -03:00
|
|
|
//Gets or sets the maximum rate at which the swap chain's back buffers can be presented to the front buffer.
|
2024-07-30 10:43:39 -03:00
|
|
|
PresentInterval PresentationInterval{ PresentInterval::Default };
|
2024-08-05 17:38:35 -03:00
|
|
|
//Gets or sets the depth stencil data format.
|
2024-07-30 10:43:39 -03:00
|
|
|
DepthFormat DepthStencilFormat{ DepthFormat::None };
|
2024-03-30 14:25:08 -03:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|