2024-03-18 15:41:46 -03:00
|
|
|
#ifndef XNA_ENUMS_HPP
|
|
|
|
#define XNA_ENUMS_HPP
|
|
|
|
|
|
|
|
namespace xna {
|
|
|
|
enum class Blend {
|
|
|
|
Zero,
|
|
|
|
One,
|
|
|
|
SourceColor,
|
|
|
|
InverseSourceColor,
|
|
|
|
SourceAlpha,
|
|
|
|
InverseSourceAlpha,
|
|
|
|
DestinationAlpha,
|
|
|
|
InverseDestinationAlpha,
|
|
|
|
DestinationColor,
|
|
|
|
InverseDestinationColor,
|
|
|
|
SourceAlphaSaturation,
|
|
|
|
BlendFactor,
|
|
|
|
InverseBlendFactor,
|
|
|
|
Source1Color,
|
|
|
|
InverseSource1Color,
|
|
|
|
Source1Alpha,
|
|
|
|
InverseSource1Alpha
|
2024-04-10 09:51:03 -03:00
|
|
|
};
|
|
|
|
|
|
|
|
enum class BlendFunction {
|
|
|
|
Add = 0,
|
|
|
|
Subtract = 1,
|
|
|
|
ReverseSubtract = 2,
|
|
|
|
Min = 3,
|
|
|
|
Max = 4,
|
2024-03-18 15:41:46 -03:00
|
|
|
};
|
|
|
|
|
2024-04-10 09:51:03 -03:00
|
|
|
using BlendOperation = BlendFunction;
|
|
|
|
|
2024-03-18 15:41:46 -03:00
|
|
|
enum class ColorWriteChannels {
|
|
|
|
Red,
|
|
|
|
Green,
|
|
|
|
Blue,
|
|
|
|
Alpha,
|
|
|
|
All
|
|
|
|
};
|
|
|
|
|
2024-04-10 09:51:03 -03:00
|
|
|
enum class CullMode {
|
|
|
|
None,
|
|
|
|
CullClockwiseFace,
|
|
|
|
CullCounterClockwiseFace,
|
2024-03-18 15:41:46 -03:00
|
|
|
};
|
|
|
|
|
2024-03-30 14:25:08 -03:00
|
|
|
enum class DepthFormat {
|
|
|
|
None,
|
|
|
|
Depth16,
|
|
|
|
Depth24,
|
|
|
|
Depth24Stencil8
|
|
|
|
};
|
|
|
|
|
2024-03-18 15:41:46 -03:00
|
|
|
enum class DisplayOrientation {
|
|
|
|
Default = 0,
|
|
|
|
LandscapeLeft = 1,
|
|
|
|
LandscapeRight = 2,
|
|
|
|
Portrait = 4,
|
|
|
|
};
|
|
|
|
|
2024-04-10 09:51:03 -03:00
|
|
|
enum class FillMode
|
|
|
|
{
|
|
|
|
Solid,
|
|
|
|
WireFrame,
|
|
|
|
};
|
|
|
|
|
2024-03-30 14:25:08 -03:00
|
|
|
enum class GraphicsProfile {
|
|
|
|
Reach,
|
|
|
|
HiDef
|
|
|
|
};
|
|
|
|
|
|
|
|
enum class PresentInterval {
|
|
|
|
Default,
|
|
|
|
One,
|
|
|
|
Two,
|
|
|
|
Immediate
|
|
|
|
};
|
|
|
|
|
|
|
|
enum RenderTargetUsage {
|
|
|
|
DiscardContents,
|
|
|
|
PreserveContents,
|
|
|
|
PlatformContents
|
|
|
|
};
|
|
|
|
|
2024-03-26 10:32:56 -03:00
|
|
|
enum class SeekOrigin {
|
|
|
|
Begin,
|
|
|
|
Current,
|
|
|
|
End,
|
|
|
|
};
|
|
|
|
|
2024-03-18 15:41:46 -03:00
|
|
|
enum class SurfaceFormat {
|
|
|
|
Color = 0,
|
|
|
|
Bgr565 = 1,
|
|
|
|
Bgra5551 = 2,
|
|
|
|
Bgra4444 = 3,
|
|
|
|
Dxt1 = 4,
|
|
|
|
Dxt3 = 5,
|
|
|
|
Dxt5 = 6,
|
|
|
|
NormalizedByte2 = 7,
|
|
|
|
NormalizedByte4 = 8,
|
|
|
|
Rgba1010102 = 9,
|
|
|
|
Rg32 = 10,
|
|
|
|
Rgba64 = 11,
|
|
|
|
Alpha8 = 12,
|
|
|
|
Single = 13,
|
|
|
|
Vector2 = 14,
|
|
|
|
Vector4 = 15,
|
|
|
|
HalfSingle = 16,
|
|
|
|
HalfVector2 = 17,
|
|
|
|
HalfVector4 = 18,
|
|
|
|
HdrBlendable = 19,
|
|
|
|
};
|
|
|
|
|
|
|
|
constexpr int SURFACE_FORMAT_COUNT = 19;
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|