OpenGL support is available via derelict, which is very ipressive package. I don't know about direct x. But if you are not fixed on the idea of direct x. Consider derelict, which also has joystick/sound support though the vorbis/ogg/sdl_mixer/sdl libraries.