System.DirectX.enable() This page was last modified over 30 day(s) ago and has 0 comment(s)


Back to System.DirectX Class Summary

Availability
Windows

Usage
mdm.System.DirectX.enable(xRes:Number, yRes:Number, bitDepth:Number):Void

Parameters
xRes:Number - Horizontal resolution

yRes:Number - Vertical resolution

bitDepth:Number - Color depth

Returns
Nothing

Description
Switches the Application to fullscreen at the specified DirectX resolution and color depth. When the application exits, the screen resolution will revert back to what it was before.

Notes
Use standard DirectX resolution only. These are:

320x240
400x300
640x480
800x600
1024x768

Color depths must be set in bits (e.g 16 or 32 etc).

Supported resolutions and color depths are dependent on graphics hardware, and monitor.

Example Code
mdm.System.DirectX.enable(640, 480, 16);

mdm.System.DirectX 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