load modelview matrix
load identity matrix
do all your rotation stuff:
you need to rotate around each axis through separate calls
rotate around y example: glRotatef(45.0f, 0, 1, 0); // where arg 1 is in degrees and the other represent the axis: x, y and z respectively…