Show More
Commit Description:
Tweak calculations....
Commit Description:
Tweak calculations.
Prevent a negative number of visitors and separate visitors from donors.
References:
File last commit:
Show/Diff file:
Action:
FNA/src/Graphics/IRenderTarget.cs
89 lines | 1.7 KiB | text/x-csharp | CSharpLexer
89 lines | 1.7 KiB | text/x-csharp | CSharpLexer
r0 | #region License | |||
/* FNA - XNA4 Reimplementation for Desktop Platforms | ||||
r690 | * Copyright 2009-2022 Ethan Lee and the MonoGame Team | |||
r0 | * | |||
* Released under the Microsoft Public License. | ||||
* See LICENSE for details. | ||||
*/ | ||||
#endregion | ||||
r690 | #region Using Statements | |||
using System; | ||||
#endregion | ||||
r0 | namespace Microsoft.Xna.Framework.Graphics | |||
{ | ||||
/// <summary> | ||||
/// Represents a render target. | ||||
/// </summary> | ||||
internal interface IRenderTarget | ||||
{ | ||||
/// <summary> | ||||
/// Gets the width of the render target in pixels | ||||
/// </summary> | ||||
/// <value>The width of the render target in pixels.</value> | ||||
int Width | ||||
{ | ||||
get; | ||||
} | ||||
/// <summary> | ||||
/// Gets the height of the render target in pixels | ||||
/// </summary> | ||||
/// <value>The height of the render target in pixels.</value> | ||||
int Height | ||||
{ | ||||
get; | ||||
} | ||||
/// <summary> | ||||
r690 | /// Gets the mip level count of the render target | |||
/// </summary> | ||||
/// <value>The number of mip levels in the render target.</value> | ||||
int LevelCount | ||||
{ | ||||
get; | ||||
} | ||||
/// <summary> | ||||
r0 | /// Gets the usage mode of the render target. | |||
/// </summary> | ||||
/// <value>The usage mode of the render target.</value> | ||||
RenderTargetUsage RenderTargetUsage | ||||
{ | ||||
get; | ||||
} | ||||
/// <summary> | ||||
/// Gets the DepthFormat of the depth-stencil buffer. | ||||
/// </summary> | ||||
/// <value>The DepthFormat of the DepthStencilBuffer.</value> | ||||
DepthFormat DepthStencilFormat | ||||
{ | ||||
get; | ||||
} | ||||
/// <summary> | ||||
/// Gets the handle of the depth-stencil buffer. | ||||
/// </summary> | ||||
/// <value>The depth-stencil buffer handle.</value> | ||||
r690 | IntPtr DepthStencilBuffer | |||
r0 | { | |||
get; | ||||
} | ||||
/// <summary> | ||||
/// Gets the handle of the color buffer. | ||||
/// </summary> | ||||
/// <value>The color buffer handle.</value> | ||||
r690 | IntPtr ColorBuffer | |||
r0 | { | |||
get; | ||||
} | ||||
int MultiSampleCount | ||||
{ | ||||
get; | ||||
} | ||||
} | ||||
} | ||||