Previous Up Next

M3setSprite
Redefines sizes '_width_' in X and '_height_' in Y as well as material '_mat_'.

I M3setSprite (
S3d _session_
H3d _sprite_
I _width_
I _height_
HMat3d _material_
I _flag_
)
Parameters

_session_
3D Session
_sprite_
Sprite
_width_
Size in X
_height_
Size in Y
_material_
Material
_flag_
If the flag is zero, the sprite remains parallel to the sides of the screen, otherwise it orients itself based on the camera rotations
Return value

0 if successful, otherwise nil