RenderTargetCube Constructor (GraphicsDevice, Int32, Boolean, SurfaceFormat, DepthFormat)
Creates an instance of this object.
Syntax
'Declaration
Public Sub New ( _
graphicsDevice As GraphicsDevice, _
size As Integer, _
mipMap As Boolean, _
preferredFormat As SurfaceFormat, _
preferredDepthFormat As DepthFormat _
)
public RenderTargetCube (
GraphicsDevice graphicsDevice,
int size,
bool mipMap,
SurfaceFormat preferredFormat,
DepthFormat preferredDepthFormat
)
public:
RenderTargetCube(
GraphicsDevice graphicsDevice,
int size,
bool mipMap,
SurfaceFormat preferredFormat,
DepthFormat preferredDepthFormat
)
Parameters
- graphicsDevice
Type: GraphicsDevice
The graphics device to associate with this render target resource. - size
Type: Int32
The width and height of this cube texture resource, in pixels. - mipMap
Type: Boolean
[MarshalAsAttribute(U1)] True to generate a full mipmap chain, false otherwise. - preferredFormat
Type: SurfaceFormat
Preferred format of the surface data. - preferredDepthFormat
Type: DepthFormat
Preferred format of the depth data.
Requirements
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics (in microsoft.xna.framework.graphics.dll)
See Also
Reference
RenderTargetCube Class
RenderTargetCube Members
Microsoft.Xna.Framework.Graphics Namespace
Platforms
Windows Phone