Direct photon production in hadronic interactions