Converted to Monogame

To fix
-Run Delegate OnPreparingDeviceSettings to set the
PreserveRenderTargetContents property of the graphics device

To Complete
-Script Compiler and Implementation of Scripts