Meaning of DirectX
DirectX is not just a graphical API, but includes many components
DirectX means direct, while X represents "unknown" and represents various other components. Replacing X with 2D represents Direct2D, and replacing X with 3D represents Direct3D.
Components
-
Direct2D Used for 2D graphics drawing, replacing the previous interface DirectDraw.
-
DirectWrite Used for rendering text and fonts in Direct2D applications.
-
DXGI (DirectX Graphics infrastructure)
DirectX graphics foundation, used for creating Direct3D switching connections and enumerating device adapters. -
Direct3D 3D graphics interface, the main API in DirectX. It is also the main content of our learning.
-
XAudio2
The underlying audio processing API belongs to the DirectX SDK, and XAudio2 is considered an upgrade to DirectSound. -
XACT3
A higher-level audio processing API built on top of XAudio2. -
XInput The API mainly implements input functions, including game controllers, but does not support keyboard and mouse. Keyboard and mouse input requires DirectInput support.
-
DirectInput The API used to detect keyboard, mouse, and joystick input.
-
XNA Math The math library in the SDK is used for common optimization operations in games. Single instruction multiple data (SIMD) is used to perform single instruction calls for multiple operations.
-
Components that have been phased out
DirectDraw: 2D drawing, new Direct2D available
DirectPlay: Network gaming network configuration
DirectShow: Multimedia and recording API. Play common audio and video files
DirectMusic: Audio playback interface.