示例#1
0
文件: Adaptor.cs 项目: yl33/TizenFX
 /// <summary>
 /// Sets the number of frames per render.
 /// </summary>
 /// <param name="numberOfVSyncsPerRender">The number of vsyncs between successive renders.</param>
 /// <remarks>
 /// Suggest this is a power of two:
 /// 1 - render each vsync frame.
 /// 2 - render every other vsync frame.
 /// 4 - render every fourth vsync frame.
 /// 8 - render every eighth vsync frame.
 ///</remarks>
 internal void SetRenderRefreshRate(uint numberOfVSyncsPerRender)
 {
     NDalicManualPINVOKE.Adaptor_SetRenderRefreshRate(swigCPtr, numberOfVSyncsPerRender);
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }