Of course it is possible, as for how to do it? Well that is your job as a programmer to figure out. We welcome specific questions about SFML here, but generic how to solve XXX problems we will not help with. Especially when you have shown no initiative that you have already attempted to solve the problem you are asking about.