3D Sprite Object Functions

From Danmakufu Wiki
Jump to: navigation, search

ObjSprite3D_SetSourceRect

Arguments:
 1) object ID (real)
 2) texture coordinate (left) (real)
 3) texture coordinate (top) (real)
 4) texture coordinate (right) (real)
 5) texture coordinate (bottom) (real)

Sets the texture rectangle for the sprite.

ObjSprite3D_SetDestRect

Arguments:
 1) object ID (real)
 2) left (real)
 3) top (real)
 4) right (real)
 5) bottom (real)

Sets the drawing rectangle for the sprite. This is the rectangle where the sprite will be drawn.

ObjSprite3D_SetSourceDestRect

Arguments:
 1) object ID (real)
 2) left (real)
 3) top (real)
 4) right (real)
 5) bottom (real)

Sets the texture rectangle for the sprite, and maps the center of the rectangle to the destination coordinates (0, 0).

ObjSprite3D_SetBillboard

Arguments:
 1) object ID (real)
 2) billboard (bool)

If set to true, the object will always be facing the camera.