d3dx9: Implement ID3DXSprite_Begin/End [PATCH 3/5]
Alexandre Julliard
julliard at winehq.org
Fri Nov 7 04:49:17 CST 2008
Tony Wasserka <tony.wasserka at freenet.de> writes:
> + /* About This->flags:
> + != D3DXSPRITE_FLAGLIMIT+1 means we have already called ID3DXSprite_Begin
> + == D3DXSPRITE_FLAGLIMIT+1 means we have either called D3DXCreateSprite or ID3DXSprite_End
> + In the first case we return D3DERR_INVALIDCALL, in the other one we can continue.
> + For ID3DXSprite_Flush/Draw This->flags must be < D3DXSPRITE_FLAGLIMIT+1. */
> + if(flags>D3DXSPRITE_FLAGLIMIT || This->flags!=D3DXSPRITE_FLAGLIMIT+1)
> + return D3DERR_INVALIDCALL;
That's ugly, if you need to know if Begin has been called you should
store a separate flag for that.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list