Hmm, I don't really know. But what I'd do (if nobody else here knows) is to search for/ask the library help list how to do it with SFML in C, then translate that to D.