ObjSprite3D Functions

Return to Functions

ObjSprite3D_SetSourceRect

    Arguments:
        1) real: objectID
        2) real: left
        3) real: top
        4) real: right
        5) real: bottom

Sets the texture rectangle for the sprite.

This is the rectangle on the original texture from which the sprite will be drawn.

ObjSprite3D_SetSourceRectB

    Arguments:
        1) real: objectID
        2) real: x
        3) real: y
        4) real: width
        5) real: height

Sets the texture rectangle for the sprite, using x, y, width, and height.

This is the rectangle on the original texture from which the sprite will be drawn.

ObjSprite3D_SetDest

    Arguments:
        1) real: objectID
        2) real: left
        3) real: top
        4) real: right
        5) real: bottom

Sets the drawing rectangle for the sprite based on a pre-defined constant.

This is the rectangle where the sprite will be drawn.
Destination constants are in the form `DESTINATION_ where type is:

CENTER
LEFT
RIGHT
TOP
BOTTOM
TOP_LEFT
TOP_RIGHT
BOTTOM_LEFT
BOTTOM_RIGHT

Additionally, _ROTATE may be appended to the end of the type to enable center rotation mode.

ObjSprite3D_SetDestRect

    Arguments:
        1) real: objectID
        2) real: left
        3) real: top
        4) real: right
        5) real: bottom

Sets the drawing rectangle for the sprite.

This is the rectangle where the sprite will be drawn.

ObjSprite3D_SetSourceDestRect

    Arguments:
        1) real: objectID

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

ObjSprite3D_SetBillboard

    Arguments:
        1) real: objectID
        2) bool: bBillboard

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