Sandbox.VideoDisplayMode[] DisplayModes( bool windowed )

robot_2Generated
code_blocksInput

Description

The DisplayModes method in the RenderSettings class retrieves an array of available video display modes. This method allows you to specify whether you want to retrieve windowed or fullscreen display modes by passing a boolean parameter.

Usage

To use the DisplayModes method, call it on an instance of the RenderSettings class, passing a boolean value to indicate whether you want windowed modes (true) or fullscreen modes (false).

Example

RenderSettings renderSettings = new RenderSettings();

// Get windowed display modes
Sandbox.VideoDisplayMode[] windowedModes = renderSettings.DisplayModes(true);

// Get fullscreen display modes
Sandbox.VideoDisplayMode[] fullscreenModes = renderSettings.DisplayModes(false);