|
|
发表于 2005-8-15 11:40:00
|
显示全部楼层
Re: 有关于Sprite贴图的演算法与深浅度
不知道楼上的把dx帮助都看了一遍没有。
ID3DXSprite::Begin Method
--------------------------------------------------------------------------------
Prepares a device for drawing sprites.
Syntax
HRESULT Begin( DWORD Flags
);
Parameters
Flags
[in] Combination of zero or more flags that describe sprite rendering options. For this method, the valid flags are:
D3DXSPRITE_ALPHABLEND
D3DXSPRITE_BILLBOARD
D3DXSPRITE_DONOTMODIFY_RENDERSTATE
D3DXSPRITE_DONOTSAVESTATE
D3DXSPRITE_OBJECTSPACE
D3DXSPRITE_SORT_DEPTH_BACKTOFRONT
D3DXSPRITE_SORT_DEPTH_FRONTTOBACK
D3DXSPRITE_SORT_TEXTURE
For a description of the flags and for information on how to control device state capture and device view transforms, see D3DXSPRITE.
Return Value
If the method succeeds, the return value is S_OK.
If the method fails, the return value can be one of the following:
D3DERR_INVALIDCALL The method call is invalid. For example, a method's parameter may have an invalid value.
D3DERR_OUTOFVIDEOMEMORY Microsoft Direct3D does not have enough display memory to perform the operation.
D3DXERR_INVALIDDATA The data is invalid.
E_OUTOFMEMORY Direct3D could not allocate sufficient memory to complete the call.
Remarks
This method must be called from inside a IDirect3DDevice9::BeginScene . . . IDirect3DDevice9::EndScene sequence. ID3DXSprite::Begin cannot be used as a substitute for either IDirect3DDevice9::BeginScene or ID3DXRenderToSurface::BeginScene.
This method will set the following states on the device. |
|