SlideServe
Menu
Préférences
© SlideServe · v2026

DirectX

conor avatar
10 diapositives · 397 Views · Aug 17, 2014

DirectX. CIS 487/587 Bruce R. Maxim UM-Dearborn. DirectX and Win32. Win32 Application GDI Windows Device Driver Interface DirectX DirectX Graphics (DirectDraw/Direct3D) DirectX Audio (DirectSound/DirectSound3D/DirectMusic) DirectInput DirectPlay DirectSetup DirectShow. DirectX.

DirectX - slide 1
01 / 10DirectX
1 / 17

Télécharger la présentation

DirectX
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation

Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement. Téléchargez la présentation en cliquant sur ce lien. Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.

F I N

Plus de contenu associé

Transcription de la présentation
  1. DirectX CIS 487/587 Bruce R. Maxim UM-Dearborn

  2. DirectX and Win32 • Win32 Application • GDI • Windows Device Driver Interface • DirectX • DirectX Graphics (DirectDraw/Direct3D) • DirectX Audio (DirectSound/DirectSound3D/DirectMusic) • DirectInput • DirectPlay • DirectSetup • DirectShow

  3. DirectX • Contains a run-time library consisting of several .dll’s that you may distribute with your application • There are several .lib and .h files that make-up the development library • You need to be sure that you know where these files are housed • DirectX is backward compatible

  4. COM • COM allows DirectX to work with multiple programming languages • COM objects can be shipped with an application as .dll’s • COM object provide interfaces to hardware objects • COM objects are loaded dynamically • You can add functionality to an installed application simply by updating the COM object

  5. DCOM • An advanced version of COM • Allows applications to access DCOM objects on networked machines

  6. DirectX Architecture Win32 App Win GDI DirectX Win DDI HEL: HW Emulation Layer HAL: HW Abstraction Layer HW Audio, Video, Input, Storage, …

  7. HAL and HEL • HAL • Lowest level of software • Consists of manufacturer’s device drivers • DirectX figures out the COM interface needed • HEL • Built on top of HAL • Allows emulation of missing hardware (e.g. program still runs whether 3D graphics accelerator card is present or not)

  8. COM Interfaces • The process of creating a COM interface is described in the text • You do not need to create your own COM interfaces if you use DirectX • DirectX provides wrappers round the COM stuff

  9. Creating COM Interfaces • You begin by deriving an interface class from IUnknown (COM base class) • Every derived class inherits 3 methods • QueryInterface( ) – used to request pointer to interface • AddRef( ) – used to increase reference count for COM object • Release( ) – decrements COM object reference counter

  10. Creating COM Interfaces • Basic technique is to create pointers to each device specific function and equate them to a generic function pointer • DirectX will then be able to use the correct COM object when its function is referenced