There is a possibility that you had an attack of angle closure glaucoma in which the eye pressure is raised. Vision may or may not be affected. Pain is common. Additionally, you may see coloured haloes or may have watering from the eyes. You can see an ophthalmologist to confirm whether you have narrow angles or not. Other possibilities include uveitis, ocular migraine etc. In uveitis vision may not be affected in early stages. Seeing an ophthalmologist will help to confirm the diagnosis. Thanks and best wishes.
Please, click the ACCEPT BUTTON so that I can get my dues. BONUS and a POSITIVE FEEDBACK will be appreciated.