position_camera();
glGetDoublev(GL_MODELVIEW_MATRIX, &mv_matrix);
rot_matrix=mv_matrix.get_sub(0, 0, 3, 3).inverse();
billboard_alligned_quad_array=quad_array.mult_matrix(rot_matix);
for(i=0; i<billboard_count; i++)
{
glPushMatrix();
glTranslate(billboard[i].position);
bilboard[i].draw_using(billboard_alligned_quad_array);
glPopMatrix()
} |