Title: a theory of direct realism and the relation of realism to idealism