d3d_transform_stack_discard

Removes the top transformation from the stack.

Syntax:

d3d_transform_stack_discard()


Returns: Boolean


Description

Removes the top transformation from the stack but does not make it the current one. 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 Transformations
Next: d3d_transform_vertex
© Copyright YoYo Games Ltd. 2018 All Rights Reserved