Class RenderTargetCube
Represents a texture cube that can be used as a render target.
public class RenderTargetCube : TextureCube, IDisposable
- Inheritance
-
RenderTargetCube
- Implements
- Inherited Members
Constructors
RenderTargetCube(GraphicsDevice, int, bool, SurfaceFormat, DepthFormat)
Initializes a new instance of the RenderTargetCube class.
public RenderTargetCube(GraphicsDevice graphicsDevice, int size, bool mipMap, SurfaceFormat preferredFormat, DepthFormat preferredDepthFormat)
Parameters
graphicsDeviceGraphicsDeviceThe graphics device.
sizeintThe width and height of a texture cube face in pixels.
mipMapboolpreferredFormatSurfaceFormatThe preferred format of the surface.
preferredDepthFormatDepthFormatThe preferred format of the depth-stencil buffer.
RenderTargetCube(GraphicsDevice, int, bool, SurfaceFormat, DepthFormat, int, RenderTargetUsage)
Initializes a new instance of the RenderTargetCube class.
public RenderTargetCube(GraphicsDevice graphicsDevice, int size, bool mipMap, SurfaceFormat preferredFormat, DepthFormat preferredDepthFormat, int preferredMultiSampleCount, RenderTargetUsage usage)
Parameters
graphicsDeviceGraphicsDeviceThe graphics device.
sizeintThe width and height of a texture cube face in pixels.
mipMapboolpreferredFormatSurfaceFormatThe preferred format of the surface.
preferredDepthFormatDepthFormatThe preferred format of the depth-stencil buffer.
preferredMultiSampleCountintThe preferred number of multisample locations.
usageRenderTargetUsageThe usage mode of the render target.
Properties
DepthStencilFormat
Gets the depth-stencil buffer format of this render target.
public DepthFormat DepthStencilFormat { get; }
Property Value
- DepthFormat
The format of the depth-stencil buffer.
IsContentLost
public bool IsContentLost { get; }
Property Value
MultiSampleCount
Gets the number of multisample locations.
public int MultiSampleCount { get; }
Property Value
- int
The number of multisample locations.
RenderTargetUsage
Gets the usage mode of this render target.
public RenderTargetUsage RenderTargetUsage { get; }
Property Value
- RenderTargetUsage
The usage mode of the render target.
Methods
Dispose(bool)
The method that derived classes should override to implement disposing of managed and native resources.
protected override void Dispose(bool disposing)
Parameters
disposingboolTrue if managed objects should be disposed.
Remarks
Native resources should always be released regardless of the value of the disposing parameter.
QuerySelectedFormat(GraphicsDevice, SurfaceFormat)
protected static SurfaceFormat QuerySelectedFormat(GraphicsDevice graphicsDevice, SurfaceFormat preferredFormat)
Parameters
graphicsDeviceGraphicsDevicepreferredFormatSurfaceFormat
Returns
Events
ContentLost
public event EventHandler<EventArgs> ContentLost