Return to previous page | Return to menu | Go to next page
void
Sprite function
Sprite display by specifying position, scale, and rotation angle
void slDispSprite(pos , atrb , Zrot)
FIXED *pos ;
ATTR *atrb ;
ANGLE Zrot ;
pos [XYZS] Sprite arrangement XYZ coordinate value and scale value
atrb Start address of area where sprite attribute is stored
Zrot Z-axis rotation angle
Specify the position, scale, and rotation angle, and display the sprite.
As with the function “slPutPolygon”, it sorts by Z value.
Sprites set with this function are not affected by the current matrix when displayed.
None
When a negative value is assigned to the scale, the scale is calculated from the Z position and multiplied by the complement of the scale to obtain the display scale.
For example, if -2.0 is specified for the scale, it will be displayed at 1.0 times if it is at a position (Z position) that is displayed at 0.5 times.
Not affected by the current matrix.
Reference: Chapter 9 Controller Input
slDispSprite