d3d_transform_stack_discard()
Returns: Boolean
Removes the top transformation from the stack but does not make
it the current one. Returns whether there was a transformation on
the stack.
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.