Hi everyone,
I'm a bit confused about the units used to define sprite sizes and things in D3D9. I have a 205x340 image which I'm trying to use as a sprite, and the ID3DXSprite::Draw method takes a sprite rectangle to define the area of the image to be drawn. I want to draw the top half of the image, so I put in the following rect:
RECT spriteRect = {0, 0, 205, 170};
However, this doesn't take the top half of the sprite. So my question is, what units are used by the ID3DXSprite::Draw method to cut out the image to be used? It doesn't appear to be the size of the source image itself - I can't think what else it is.
Thanks!