By studying DX11 development, you can make full use of the performance of multi-core CPU and graphics card GPU, while simplifying development. At present, a large number of software applications already exist in the market. By improving existing programs, you can enhance your competitiveness.
In combination with its own lottery software, Direct2D should be used to improve the performance of win7, and a new 3D version should be added.
Basic Concepts
I have not developed the DX program before. First, let's take a look at the basic concepts.
The first version is named Games SDK.
Windows and Xbox use DirectX to develop video games. XBOX games use a special version of DX9.
DirectX encapsulates the underlying access to the hardware without worrying about the hardware driver. DX below refers to DirectX. More common Baidu encyclopedia entries
DirectX10 is an innovative version because it requires new hardware and at least Vista system environment. 10 has been successful, widely supported by hardware manufacturers, while Windows 7 is also widely used in desktop systems. 11 development based on 10. Windows 7 comes with Windows 7. Vista can be installed and supported, but XP is not supported.
DX11 adds important features such as GPU, multi-thread operations, and split-embedded Subdivision Surface technology.
DX11 Composition
- Direct2D is used to draw high-performance 2D images, bitmaps, and texts. Replace DirectDraw
- DirectWrite is responsible for font rendering and text layout in the Direct2D program.
- DXGI provides underlying management of graphics hardware. It mainly involves enumerating display devices and rendering rendered frames.
- Direct3D 3D graphics
- The underlying API of XAudio2 replaces DirectSound and is responsible for sound. XAudio can only be applied on XBOX
- XACT3 Based on XAudio2
- XInput control.
- XNA Math is a Math library instead of an API.
- DirectCompute 11 is added. Implement multi-threaded GPU operations.
- DirectSetup is used for distribution programs. For example, check the user's DX version.
- Windows Game Explorer Game browser. Display game information, such as whether to restrict minors
- DirectInput keyboard, mouse, and joystick Input
Game browsers under Win7,
Rendering pipeline (12 items in total, which will be described later)
How can I upgrade a DirectX game to version 11?
If the original version is based on 10, it can be easily upgraded and replaced with the corresponding API of 11.
If the original version is based on version 9, it is recommended that you rewrite the interface rendering layer code because of version innovation. 11 different 9 needs to check whether the DX function is supported by the hardware, because all functions not supported by the hardware are simulated by the software. This feature greatly facilitates the work of developers.
Development Tools
Download the DX11 SDK
Http://www.microsoft.com/en-us/download/details.aspx? Displaylang = en & id = 6812
Read examples and documents
In many cases, hardware acceleration is not enabled.
The SDK contains many practical tools,
PIX debugging tool: used to collect and analyze the call and execution information of 3DAPI. You can also set breakpoint debugging.
Cpas Viewer: displays the degree of hardware support for DirectX11
Diagnostic Tool: tool used to check whether the DX function component is correctly executed
View error code: run the error code received by the DX program. You can view the detailed description using this tool.
Control Panel: utility used to check and modify DX function components. For example, enable debugging, change debugging levels, view component versions, and hardware support information.
Cross-platform sound creation tool: not required by PC programs. Create the audio file required by XACT3. Including command line and GUI versions
Game definition file editor: Provides game information that adapts to local user specifications for game browsers. For example, the release date, icon, and whether to restrict minors
How to Learn
- Reading documents and writing code exercises
- Refer to SDK and MSDN Manual
- Participate in communication. Such as blogs and development sites
This book website, http://ultimategameprogramming.com/website is about to release DirectX 2D game development books. Expectation.
Http://www.gamedev.net/page/index.html there are a lot of game developers here
We will learn how to compile the first DX program in the future. Based on the development environment of VC2010 + Win7 (32-bit flagship edition.