Differences between DirectX, direct3d, and OpenGL

Source: Internet
Author: User

DirectX, (Direct extension, dx) is a multimedia programming interface created by Microsoft. By C ++Programming LanguageAnd follow COM.

 

 

DirectX is composed of many APIs. It is classified by nature and can be divided into four parts: Display, sound, input, and network.

Display part

The display part is the key to graph processing, including DirectDraw (ddraw) andDirect3d (d3d ),The former is mainly responsible for 2D image acceleration. It involves many aspects: We use ddraw for playing mpg, DVD movies, watching pictures, playing games, and so on. You can understand it as the ddraw For All dashes. The latter is mainly responsible for displaying 3D effects, such as scenes and characters in Cs and characters in FIFA. They all use DirectX direct3d.

Sound part

The most important API in the sound part is directsound. In addition to playing and processing sound mixing, it also enhances 3D sound effects and provides the recording function. The preceding example of sound card compatibility uses directsound.

Input

The input part of directinput supports many game input devices, which can make full use of the best status and all functions. In addition to the keyboard and mouse, you can also connect the handle, joystick, and simulator.

Network

The Network part of directplay is mainly developed for games with network functions. It provides various connection methods, such as TCP/IP, IPX, modem, and serial port, this allows gamers to compete with each other through various network connections. In addition, it also provides the network conversation function and confidentiality measures.

 

OpenGL (Open Graphics Library)Is a specification that defines a cross-programming language and cross-platform programming interface. It is used for three-dimensional images (two-dimensional ). OpenGL is a professional image.ProgramInterface, is a powerful underlying graphics library that calls conveniently.

 

Open GL is still the only API that can replace Microsoft's full control over 3D graphics technology. It still has some vitality, but Silicon Graphics no longer promotes open gl in any way that Microsoft is not happy with, so it has a high risk. Game developers are a group with independent ideas. Many important developers are still using Open GL. As a result, hardware developers are trying to enhance their support for it. Direct3d currently does not support high-end graphics devices and professional applications; Open GL occupies a dominant position in these fields. Finally, open source codeCommunity(Especially the mesa project) has been committed to providing open access for any type of computers, whether or not they use Microsoft's operating systems.
GL support.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.