Matrix.ToFloatArray Method (Microsoft.Xna.Framework)

Copy the values of specified Matrix to the float array.

Namespace: Microsoft.Xna.Framework
Assembly: MonoGame.Framework (MonoGame.Framework.dll
  • C#
  • VB
  • F#
public static Single[] ToFloatArray(
	Matrix matrix

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.


Type: Microsoft.Xna.Framework.Matrix
The source Matrix.

Return Value

Type: System.Single[]
The array which matrix values will be stored.
Required for OpenGL 2.0 projection matrix stuff.
Supported in:

 Windows DirectX Desktop
 Linux Desktop
 Windows OpenGL Desktop