implemented video rendering trough direct3d in a basic way