Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

DirectDraw

From Wikipedia, the free encyclopedia
Old API of Microsoft's DirectX API
icon
This articleneeds additional citations forverification. Please helpimprove this article byadding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "DirectDraw" – news ·newspapers ·books ·scholar ·JSTOR
(January 2009) (Learn how and when to remove this message)

DirectDraw (ddraw.dll) is an API that used to be a part ofMicrosoft'sDirectXAPI. DirectDraw is used to acceleraterendering of 2Dgraphics in applications. DirectDraw also allows applications to run fullscreen or embedded in a window such as most other MS Windows applications. DirectDraw useshardware acceleration if it is available on the client'scomputer. DirectDraw allows direct access tovideo memory,hardware overlays, hardwareblitters, andpage flipping. Itsvideo memory manager can manipulate video memory with ease, taking full advantage of theblitting and color decompression capabilities of different types ofdisplay adapters.

Because DirectDraw is a2D API, it contains commands for 2D rendering and although it does not support3D hardware acceleration, versions through to 7.0 of DirectDraw are tightly coupled to their respective version of Direct3D. In order to utilize 3D acceleration in Direct3D 7.0 and below, DirectDrawmust be used in order to create an IDirect3D interface with the help of IDirectDraw7->QueryInterface, from which comes an IDirect3DDevice, and from there the remainder of the Direct3D API can be accessed and utilized. DirectDraw provides Textures (through Surfaces), Clippers, Palettes and Pixel Formats to Direct3D as well as the final presentation pass to display rendered images to the screen.

DirectDraw was introduced forWindows Mobile in Windows Mobile 5.0, replacing the graphics component ofGAPI, which was then deprecated.[1]

With the release of DirectX version 8.0, DirectDraw was merged into a new package calledDirectX Graphics, which extended Direct3D with a few DirectDraw API additions. DirectDraw can still be used by programmers, and it can be compiled in 64-bit, but they must use older DirectX interfaces (DirectX 7 and below).

Drivers from NVIDIA, AMD and Intel provide hardware accelerated support for many of DirectDraw's fundamental features. However, due to changes in Windows Desktop Manager (DWM) in recent Windows versions, features such as Overlays are no longer supported at all.

In June 2010, DirectDraw was removed from the DirectX SDK package,[2] but in 2012, the DirectX SDK was merged into the Windows Platform SDK, and DirectDraw was included once again.

Replacement

[edit]

There has been a deterioration of Windows compatibility with old games that rely upon DirectDraw, withCommand & Conquer,Warcraft 2, andTheme Hospital among those affected. In newer Windows versions, some games will refuse to run under a 32-bitbit depth (Dangerous Waters for example), others showing a black screen or glitching when switched out. Re-implementation of DirectDraw has been observed to fix these compatibility problems. Commonly used replacements include:

  • WineD3D fromWine, which translates intoOpenGL.[3]
  • cnc-ddraw and ts-ddraw from CnCNet, aCommand & Conquer multiplayer network. Translates intoGDI, OpenGL (withGLSL support), or Direct3D 9.[4]
  • DDrawCompat, a wrapper for the vanilla ddraw that corrects problematic calls.[5] ddwrapper is an earlier, unrelated wrapper that does the same thing.[6]

See also

[edit]

References

[edit]
  1. ^Saffitz, Michael (13 August 2007)."Have you migrated to DirectDraw yet?".Windows Mobile Team Blog. Retrieved23 April 2019.
  2. ^"DirectX 8 Graphics and Video: A Fresh Start". gamedev.net. 2000-11-30. Archived fromthe original on 2007-06-04. Retrieved2019-04-23.
  3. ^Dossena, Federico."WineD3D For Windows".Federico Dossena. Retrieved23 April 2019.
  4. ^CnCNet (21 April 2019)."cnc-ddraw: GDI, OpenGL and Direct3D 9 re-implementation of the DirectDraw API for classic games for better compatibility with Windows XP, Vista, 7, 8, 10 and Wine".GitHub. Retrieved23 April 2019.
  5. ^narzoul (21 April 2019)."DDrawCompat: DirectDraw compatibility and performance enhancements for Windows Vista, 7, 8 and 10".GitHub. Retrieved23 April 2019.
  6. ^Aqrit."ddwrapper".bitpatch.com.

External links

[edit]
Graphics and UI
Audio
Multimedia
Web
Data access
Networking
Communication
Administration and
management
Component model
Libraries
Device drivers
Security
.NET
Software factories
IPC
Accessibility
Text and multilingual
support


Stub icon

ThisMicrosoft Windows article is astub. You can help Wikipedia byadding missing information.

Retrieved from "https://en.wikipedia.org/w/index.php?title=DirectDraw&oldid=1321067094"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp