We propose a method for spatially encoding the state of polarisation in a two-dimensional (2D) wavefront with elliptically polarised light controlling both the ellipticity and rotation angle of the major axis of the ellipses. We have constructed a demonstration system using two optically addressable phase-only spatial light modulators (SLMs), where it is possible to control the relative phase of each modulation cell in the SLM. This gives a full 2D control over the state of polarisation and results are presented for the generation of arbitrary elliptically polarised 2D wavefronts. The experimental performance of the system has been analysed and found to be in good agreement with a theoretical analysis based on the Jones polarisation matrix method.