d3d_transform_stack_pop

Pops the top transformation from the stack and makes it the current one.

Syntax:

d3d_transform_stack_pop()


Returns: Boolean


Description

Pops the top transformation from the stack and makes it the current one. Returns whether there was a transformation on the stack.


Example:

d3d_transform_stack_pop();
d3d_transform_add_rotation_axis(1, 0, 0, 5);
d3d_transform_stack_push();
d3d_transform_set_identity();

The above code will pop the previous transformation from the stack, then add a rotation over the x axis, before finally pushing the final transform back onto the stack again.


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