d3d_transform_stack_top

Makes the top transformation the current one.

Syntax:

d3d_transform_stack_top()


Returns: Boolean


Description

Makes the top transformation the current one, but does not remove it from the stack. Returns whether there was a transformation on the stack.


Example:

d3d_transform_stack_top();
d3d_transform_add_rotation_axis(1, 0, 0, 5);
d3d_transform_stack_discard();
d3d_transform_set_identity();

The above code will apply the transformation from the top of the stack, add a rotation over the x axis to it, and then discard the transform from the stack at the end.


Back: 3D Drawing
Next: d3d_transform_stack_discard
© Copyright YoYo Games Ltd. 2018 All Rights Reserved