The mechanisms by which antigens are processed and presented to T cells for recognition and activation.