7 Nov
2008
7 Nov
'08
4:49 a.m.
Tony Wasserka <tony.wasserka(a)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(a)winehq.org