SetMode

Sets the anti-aliasing mode on a GPU.

Syntax

Copied!

ADLX_RESULT     SetMode (ADLX_ANTI_ALIASING_MODE  mode)

Parameters

  1. [in] mode ADLX_ANTI_ALIASING_MODE The new anti-aliasing mode.

Return Value

If the anti-aliasing mode is successfully set, ADLX_OK is returned.

If the anti-aliasing mode is not successfully set, an error code is returned.

Refer to ADLX_RESULT for success codes and error codes.

Additional Info

Anti-aliasing improves image quality by smoothing jagged edges at the cost of some performance.

Note : Set the mode to AA_MODE_ENHANCE_APP_SETTINGS or AA_MODE_OVERRIDE_APP_SETTINGS to concurrently enable other anti-aliasing methods, such as morphological anti-aliasing.

For more information, refer to IADLX3DMorphologicalAntiAliasing .

Requirements

Header

include “I3DSettings.h”

Minimum version

1.0