RenderTargetCube.RenderTargetCube Method (Microsoft.Xna.Framework.Graphics)
Initializes a new instance of the RenderTargetCube class.
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1082)
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1082)
- C#
- VB
- F#
public RenderTargetCube( GraphicsDevice graphicsDevice, int size, bool mipMap, SurfaceFormat preferredFormat, DepthFormat preferredDepthFormat )
Syntax for VB is not yet implemented.
Syntax for F# is not yet implemented.
Parameters
- graphicsDevice
-
Type: Microsoft.Xna.Framework.Graphics.GraphicsDevice
The graphics device.
- size
-
Type: System.Int32
The width and height of a texture cube face in pixels.
- mipMap
-
Type: System.Boolean
to generate a full mipmap chain; otherwise .
- preferredFormat
-
Type: Microsoft.Xna.Framework.Graphics.SurfaceFormat
The preferred format of the surface.
- preferredDepthFormat
-
Type: Microsoft.Xna.Framework.Graphics.DepthFormat
The preferred format of the depth-stencil buffer.
Supported in:
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web