D3d transform add rotation x

Explanation
To visualise rotation around the x axis, imagine a block with a pole going through the middle of it along the x axis. As you add rotation to the x axis you rotate this pole.

Examples
When wanting to make a pipeline that is a cylinder, you can't just use: d3d_draw_cylinder; ...you need to add rotations to make the two flat faces facing horizontally. To do this, simply add a rotation to the x axis with 90 degrees, like this: d3d_transform_add_rotation_x(90) ...you will need to add a translation to make sure that the drawn shape is at the correct x,y,z d3d_transform_add_translation(x,y,0) ...and finally, the last bit where you draw the shape and close off the added transformations. d3d_draw_cylinder(32,96,0, -32,-96,0, -1,0,0, true,24) d3d_transform_set_identity