RenderWare V2.1

Previous Page Index Next Page

RwUserDraw *

RwSetUserDrawAlignment(RwUserDraw *userdraw,
RwUserDrawAlignmentTypes alignment);

Description

Sets the user-draw’s alignment flags. The user-draw’s alignment flags determine which part of the user-draw’s bounding box is used for alignment.

Arguments

userdraw Pointer to the user-draw.

alignment A bitfield representing a set of alignment flags.

Return Value

The argument userdraw if successful, and NULL otherwise.

Comments

The alignment flags are:

• 0 Center the user-draw.

• rwALIGNTOP Align with the top edge of the user-draw.

• rwALIGNBOTTOM Align with the bottom edge of the user-draw.

• rwALIGNLEFT Align with the left edge of the user-draw.

• rwALIGNRIGHT Align with the right edge of the user-draw.

See Also

RwCreateUserDraw()

RwGetUserDrawAlignment()

RwSetUserDrawParentAlignment()