Platform SDK: DirectX |
IDirectDraw7::CreateClipper メソッドは、DirectDrawClipper オブジェクトを作成する。
HRESULT CreateClipper( DWORD dwFlags, LPDIRECTDRAWCLIPPER FAR *lplpDDClipper, IUnknown FAR *pUnkOuter );
成功すれば、DD_OK を返す。
失敗すれば、以下のエラー値のいずれかを返す。
DDERR_INVALIDOBJECT |
DDERR_INVALIDPARAMS |
DDERR_NOCOOPERATIVELEVELSET |
DDERR_OUTOFMEMORY |
DirectDrawClipper オブジェクトは DirectDrawSurface にアタッチでき、IDirectDrawSurface7::Blt、IDirectDrawSurface7::BltBatch、および IDirectDrawSurface7::UpdateOverlay の処理中に使用できる。
特定の DirectDraw オブジェクトによって所有されない DirectDrawClipper オブジェクトを作成するには、DirectDrawCreateClipper 関数を使用する。
Windows NT/2000 :Windows 2000 が必要。
Windows 95/98 : Windows 98 が必要。
ヘッダー : ddraw.h で宣言。
IDirectDrawSurface7::GetClipper、IDirectDrawSurface7::SetClipper