DX9.enumerateModes() This page was last modified over 30 day(s) ago and has 0 comment(s)


Back to DX9 Class Summary

Availability
Windows

Usage
mdm.DX9.enumerateModes():Array

Parameters
None

Returns
Array

Description
This command returns an Array of modes supported by the default graphics adapter. Each mode is an array of two elements: element [0] containing the width, element [1] containing the height.

Notes
None

Example Code
// Example Flex Code to display support Resolutions

var desc:String = "Supported modes:\n";
var modes:Array = mdm.DX9.enumerateModes();

for (var i:int = 0; i < modes.length; i++)
{
var mode:Array = modes[i];
desc += mode[0].toString() + "x" + mode[1].toString() + "\n";
}
Alert.show(desc);

mdm.DX9 Class Example Downloads
No Example Downloads Available


Registered Users must be logged in to 'MyAccount' to add a Comment - Log In Here
  After Logging In, Click Here to Refresh This Page