DOC PREVIEW
U-M CIS 487 - DirectX

This preview shows page 1-2-3 out of 10 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 10 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 10 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 10 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 10 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

DirectXDirectX and Win32Slide 3COMDCOMDirectX ArchitectureHAL and HELCOM InterfacesCreating COM InterfacesSlide 101DirectXCIS 487/587Bruce R. MaximUM-Dearborn2DirectX and Win32•Win32 Application–GDI•Windows Device Driver Interface–DirectX•DirectX Graphics (DirectDraw/Direct3D)•DirectX Audio (DirectSound/DirectSound3D/DirectMusic)•DirectInput•DirectPlay•DirectSetup•DirectShow3DirectX•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 compatible4COM•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 object5DCOM•An advanced version of COM•Allows applications to access DCOM objects on networked machines6DirectX ArchitectureWin32 AppWin GDIWin DDIHW Audio, Video, Input, Storage, …DirectXHEL: HW Emulation LayerHAL: HW Abstraction Layer7HAL 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)8COM 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 stuff9Creating 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 counter10Creating 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


View Full Document

U-M CIS 487 - DirectX

Documents in this Course
Mad Maxim

Mad Maxim

10 pages

Load more
Download DirectX
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view DirectX and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view DirectX 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?