示例#1
0
 /// <summary>
 /// Reverts the current rendertarget to the screen
 /// </summary>
 /// <returns></returns>
 public static bool RevertRenderTargetToScreen()
 {
     return(MtaClient.DxSetRenderTarget());
 }
示例#2
0
 /// <summary>
 /// This function changes the drawing destination for the dx functions.
 /// </summary>
 public static bool SetRenderTarget(RenderTarget target, bool clear = false)
 {
     return(MtaClient.DxSetRenderTarget(target.MaterialElement, clear));
 }