Weren't people like Alexander the Great and Napoleon supposed to have been gay.  I'm sure you can find more.  Marlon Brando played a gay military person of rank in one of his films at a time when gays were closeted.