Documentation Project 1
ContentsIndexHome
PreviousUpNext
sack::image::SetSpriteHotspot Function
C++
__cdecl IMAGE_PROC PSPRITE SetSpriteHotspot(PSPRITE sprite, S_32 x, S_32 y);
Parameters 
Description 
PSPRITE sprite 
The PSPRITE to set the hotspot of. 
S_32 x 
x coordinate in the sprite's image that becomes the hotspot. 
S_32 y 
y coordinate in the sprite's image that becomes the hotspot. 

Sets the point on a sprite which is the 'hotspot' the hotspot is the point that is drawn at the specified coordinate when outputting a sprite.

Copyright (c) 2010. All rights reserved.
What do you think about this topic? Send feedback!