CAggDirectDraw Class (Compact 2013)
3/26/2014
CAggDirectDraw Class
This class aggregates an IDirectDraw interface. Although DirectDraw interfaces (IDirectDraw and IDirectDrawSurface) potentially have the ability to be aggregated, this feature is not yet implemented.
Various parts of DirectShow require aggregation of the DirectDraw interfaces. In particular, the video renderer passes out media samples that expose IDirectDraw and IDirectDrawSurface.
This class and the CAggDrawSurface class republish the methods of the DirectDraw class so that they can be aggregated.
Each member function in this class, with the exception of the constructor, SetDirectDraw, and NonDelegatingQueryInterface, simply calls the corresponding method on the IDirectDraw interface with the parameters passed to it.
Protected Data Members
Member |
Description |
---|---|
m_pDirectDraw |
DirectDraw object. |
Member Functions
Function |
Description |
---|---|
Constructs a CAggDirectDraw object. |
|
Sets the DirectDraw object to be aggregated by this class. |
Overrideable Member Functions
Member function |
Description |
---|---|
Retrieves an interface and increments the reference count. |
Implemented IDirectDraw Methods
Method |
Description |
---|---|
Creates a DirectDrawClipper object. |
|
Creates a DirectDrawSurface object for this DirectDraw object. |
|
Enumerates all display modes the hardware exposes through the DirectDraw object that are compatible with a provided surface description. |
|
Enumerates all existing or possible surfaces that meet the search criterion specified. |
|
Makes the surface that GDI writes to the primary surface. |
|
Fills in the raw (not remaining) capabilities of the device driver (the hardware) and/or the Hardware Emulation Layer (HEL). |
|
Retrieves the current display mode. |
|
Gets the FOURCC codes supported by the DirectDraw object. |
|
Retrieves the DirectDrawSurface object that currently represents the surface memory that GDI treats as the primary surface. |
|
Points to a DirectDrawSurface pointer that will be made to point to the DirectDrawSurface object currently controlling GDI's primary surface memory. |
|
Retrieves the scan line that the monitor is currently updating to the display. |
|
Retrieves the status of the vertical blank. |
|
Resets the mode of the display device hardware for the primary surface to what it was before the IDirectDraw::SetDisplayMode method was called. |
|
Determines the top-level behavior of the application. |
|
Sets the mode of the display device hardware. |
|
Helps the caller synchronize itself with the vertical blank interval. |
Requirements
Header |
dshow.h, |
Library |
ole32.lib, |