delete function draw from directx.cpp