Platform SDK: DirectX

DirectDraw7.CreateClipper

DirectDraw7.CreateClipper メソッドは、DirectDrawClipper オブジェクトを作成する。

object.CreateClipper(flags As Long) As DirectDrawClipper

パラメータ

object
DirectDraw7 オブジェクトを表すオブジェクト式。
flags
現在使用されていないので、0 に設定する。

戻り値

成功すれば、DirectDrawClipper オブジェクトを返す。

エラー コード

失敗すればエラーが発生し、Err.Number に次のいずれかの値が設定される。

DDERR_INVALIDOBJECT
DDERR_INVALIDPARAMS
DDERR_NOCOOPERATIVELEVELSET
DDERR_OUTOFMEMORY

注意

DirectDrawClipper オブジェクトを DirectDrawSurface にアタッチし、DirectDrawSurface7.Blt の実行時に使用することができる。

参照

DirectDrawSurface7.GetClipperDirectDrawSurface7.SetClipper