青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

天行健 君子當自強而不息

DXUT框架剖析(11)

DXUT統計函數

函數 描述
DXUTGetFPS 獲取當前每秒提交的幀數
DXUTGetFrameStats 獲取一個指向字符串的指針,該字符串包括每秒幀數、分辨率、后臺緩沖區格式、深度緩沖區格式。
DXUTGetDeviceStats 獲取一個指向字符串的指針,該字符串包括當前設備類型、頂點運算行為和設備名。

 

DXUTGetFPS

Get the current number of frames being presented per second.

  FLOAT DXUTGetFPS()  ;

Parameters

None.

Return Values

The current number of frames being presented per second.

 

DXUTGetFrameStats

Get a pointer to a string containing the current number of frames per second (optionally), resolution, back buffer format, and depth stencil format.

  LPCWSTR DXUTGetFrameStats(  
bool bIncludeFPS
) ;

Parameters

bIncludeFPS
[in] If true, the string returned will contain the frames per second. Otherwise, it will not.

Return Values

Pointer to a string containing the current number of frames per second (optionally), resolution, back buffer format, and depth stencil format.

 

DXUTGetDeviceStats

Get a pointer to a string containing the current device type, vertex processing behavior, and device name.

  LPCWSTR DXUTGetDeviceStats()  ;

Parameters

None.

Return Values

Pointer to a string containing the current device type, vertex processing behavior, and device name.

 

DXUT時間函數

函數 描述
DXUTGetTime 獲取當前時間(秒)
DXUTGetElapsedTime 獲取從上一幀到當前幀所經過的時間
DXUTSetConstantFrameTime 啟用或禁用固定幀時間

 

DXUTGetTime

Get the current time, in seconds.

  DOUBLE DXUTGetTime()  ;

Parameters

None.

Return Values

The current time, in seconds.

Remarks

DXUT internally uses the best practices for high resolution timing information as described in the "Game Timing and Multicore Processors" article in the DirectX SDK.

 

DXUTGetElapsedTime

Get the time elapsed since the last frame.

  FLOAT DXUTGetElapsedTime()  ;

Parameters

None.

Return Values

Time elapsed, in seconds, since the last frame.

Remarks

DXUT internally uses the best practices for high resolution timing information as described in the "Game Timing and Multicore Processors" article in the DirectX SDK.

 

DXUTSetConstantFrameTime

Enables or disables a constant frame time.

  HRESULT DXUTSetConstantFrameTime(  
BOOL bEnabled ,
FLOAT fTimePerFrame
) ;

Parameters

bEnabled
[in] If TRUE, a constant frame time will be enabled.
fTimePerFrame
[in] Time per frame, in seconds. The default value is 0.0333f, so the fTime parameter of LPDXUTCALLBACKFRAMEMOVE and the render callback functions will advance one second for every 30 frames.

Return Values

If the function succeeds, the return value is S_OK. If the function fails, the return value can be one of the error codes in DXUTERR.

Remarks

This function simulates a fixed-frame rate render loop by sending a constant value for elapsed time to the LPDXUTCALLBACKFRAMEMOVE and render callback functions. The default rate is one second for every 30 frames. The application itself will continue to render at an unregulated rate (which may be far higher than the specified frame rate).

This function is useful for saving the rendered output to a video format for playback, allowing animation at a rate independent of the actual rate at which frames were rendered.

 

DXUT計時器函數

函數 描述
DXUTSetTimer 添加一個新的計時器
DXUTKillTimer 卸載一個已有的計時器

DXUTSetTimer

Starts a DXUT timer that will trigger a callback function at regular intervals.

  HRESULT DXUTSetTimer(  
LPDXUTCALLBACKTIMER pCallbackTimer ,
FLOAT fTimeoutInSecs ,
UINT * pnIDEvent ,
void * pCallbackUserContext
) ;

Parameters

pCallbackTimer
[in] Pointer to a timer callback function. The callback function is to be called at the specified fTimeoutInSecs timeout intervals. May not be NULL.
fTimeoutInSecs
[in] Interval, in seconds, between successive calls to the timer callback function. The default value is 1.0f.
pnIDEvent
[in] Optional pointer to a variable to receive the event ID for the new timer. This event ID will be passed to the timer callback function to indicate which timer generated the event, allowing the application to use a single callback function for multiple timers. The default value is NULL.
pCallbackUserContext
[in] Pointer to a user-defined value which is passed to the callback function. Typically used by an application to pass a pointer to a data structure that provides context information for the callback function. The default value is NULL

Return Values

If the function succeeds, the return value is S_OK. If the function fails, the return value can be one of the error codes in DXUTERR.

Remarks

Timers created with DXUTSetTimer can be destroyed with DXUTKillTimer.

 

LPDXUTCALLBACKTIMER

A timer to be called at specified time intervals by DXUT.

  VOID LPDXUTCALLBACKTIMER(  
UINT idEvent ,
void* pUserContext
) ;

Parameters

idEvent
[in] Specifies a nonzero timer event ID. Indicates which timer generated the event, allowing the application to use a single callback function for multiple timers.
pUserContext
[in] Pointer to a user-defined value which is passed to the callback function. Typically used by an application to pass a pointer to a data structure that provides context information for the callback function. The default value is NULL

Return Values

No return value.

Remarks

DXUT will call this function at the start of the frame, before calling LPDXUTCALLBACKFRAMEMOVE or LPDXUTCALLBACKD3D10FRAMERENDER.

 

DXUTKillTimer

Uninstalls an existing timer.

  HRESULT DXUTKillTimer(  
UINT nIDEvent
) ;

Parameters

nIDEvent
[in] The event ID for the timer being destroyed. This ID is provided to the application by the DXUTSetTimer method.

Return Values

If the function succeeds, the return value is S_OK. If the function fails, the return value can be one of the error codes in DXUTERR.

Remarks

Timers created with DXUTSetTimer can be destroyed with DXUTKillTimer .



posted on 2008-05-16 22:03 lovedday 閱讀(1439) 評論(0)  編輯 收藏 引用


只有注冊用戶登錄后才能發表評論。
網站導航: 博客園   IT新聞   BlogJava   博問   Chat2DB   管理


公告

導航

統計

常用鏈接

隨筆分類(178)

3D游戲編程相關鏈接

搜索

最新評論

青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            亚洲欧洲精品一区二区| 美女在线一区二区| 亚洲电影免费在线| 久久亚洲电影| 亚洲欧洲在线一区| 亚洲日本免费| 国产精品日日摸夜夜添夜夜av| 午夜日韩福利| 久久九九免费| 一本大道久久a久久精品综合| 中文欧美在线视频| 在线观看欧美视频| 亚洲最新在线| 亚洲激情视频在线| 在线一区视频| 亚洲精品中文字| 欧美亚洲日本国产| 一区二区三区视频在线| 久久久国产精品一区| 亚洲欧美日韩一区在线| 久久久久国产精品一区二区| 亚洲免费伊人电影在线观看av| 久久久久女教师免费一区| 亚洲欧美日韩精品久久亚洲区 | 欧美xart系列高清| 欧美在线亚洲在线| 免费在线成人| 国产日韩欧美一区在线| 亚洲激情av| 亚洲国产成人不卡| 在线视频亚洲| 久久综合电影一区| 久久久av毛片精品| 国产精品久久久久久一区二区三区| 欧美a级理论片| 国产主播在线一区| 亚洲一区二区三区乱码aⅴ| 在线亚洲一区二区| 欧美电影在线| 亚洲男人第一av网站| 欧美日韩情趣电影| 亚洲黄色成人久久久| 国产日韩av在线播放| 先锋影音网一区二区| 欧美日韩精品福利| 欧美一区亚洲| 国内精品久久久久伊人av| 亚洲精品乱码久久久久久蜜桃91 | 亚洲破处大片| 另类图片综合电影| 欧美激情第三页| 亚洲激情欧美激情| 毛片av中文字幕一区二区| 久久综合色8888| 欧美成人综合在线| 亚洲日韩中文字幕在线播放| 美女黄网久久| 亚洲高清资源综合久久精品| 亚洲精品国产品国语在线app| 蜜臀久久99精品久久久画质超高清| 猫咪成人在线观看| 亚洲黄色免费电影| 欧美日韩国产在线一区| 日韩视频在线观看免费| 亚洲一区二区三区四区中文 | 欧美在线国产精品| 国产一级一区二区| 久久亚洲私人国产精品va媚药| 欧美成人激情视频免费观看| 亚洲精品美女在线观看播放| 欧美激情一区二区三区不卡| 日韩亚洲在线| 久久成人羞羞网站| 亚洲成人在线免费| 欧美丰满少妇xxxbbb| 一区二区激情视频| 久久国产主播| 亚洲精品国产精品国自产在线| 欧美视频在线不卡| 激情综合色综合久久| 欧美激情2020午夜免费观看| 99热免费精品| 久久久久久综合| 国产精品jvid在线观看蜜臀| 欧美一区二区三区久久精品茉莉花| 欧美成人精品| 亚洲影院色无极综合| 国产亚洲成人一区| 欧美成人午夜| 亚洲一区二区成人| 欧美大片在线看| 亚洲自拍偷拍麻豆| 影音先锋亚洲视频| 欧美先锋影音| 美日韩精品视频免费看| 亚洲在线一区| 欧美aⅴ99久久黑人专区| 亚洲小少妇裸体bbw| 韩日成人av| 国产精品高清网站| 欧美成人网在线| 亚洲一区在线看| 亚洲黄色在线看| 欧美日韩在线播| 久久久久久久激情视频| 一区二区三区精品| 欧美激情第8页| 久久久久久噜噜噜久久久精品| 日韩午夜激情av| 香蕉尹人综合在线观看| 亚洲精品欧美精品| 国产精品久久久久国产a级| 美女国产一区| 久久精品成人| 亚洲欧美国产不卡| 日韩一区二区精品葵司在线| 麻豆视频一区二区| 欧美在线视频在线播放完整版免费观看| 亚洲人成网站影音先锋播放| 国产亚洲一区在线| 国产精品自拍在线| 欧美视频一区在线| 欧美日韩视频在线一区二区| 亚洲精选视频在线| 亚洲国产精品一区二区第四页av | 欧美日本二区| 美女久久一区| 久久手机精品视频| 久久激情婷婷| 午夜精品福利视频| 亚洲无亚洲人成网站77777| 亚洲精品社区| 亚洲精品免费观看| 亚洲国产成人精品女人久久久| 久久综合九色综合欧美就去吻| 久久福利视频导航| 久久激情一区| 久久久久久国产精品mv| 久久福利毛片| 久久综合伊人77777| 国产亚洲欧美日韩一区二区| 国产精品一区二区久久| 国产精品亚洲激情| 国产区日韩欧美| 国产欧美精品一区| 国产亚洲成年网址在线观看| 国内免费精品永久在线视频| 国内精品久久久久久久影视麻豆| 国产女优一区| 国产自产高清不卡| 激情文学综合丁香| 亚洲激情第一页| 99精品视频免费观看视频| 日韩午夜中文字幕| 中文日韩欧美| 午夜精品影院| 久久久久看片| 亚洲国产专区校园欧美| 99精品视频免费| 小处雏高清一区二区三区 | 午夜亚洲精品| 久久一区二区精品| 麻豆精品网站| 亚洲精品三级| 午夜一级久久| 免费在线看一区| 国产精品免费一区二区三区观看| 国产欧亚日韩视频| 亚洲国产精品久久久| 亚洲天堂网站在线观看视频| 欧美一区二区高清| 欧美大胆a视频| 亚洲乱码国产乱码精品精可以看| 亚洲福利视频网| 一区二区三区四区精品| 欧美一区二区精品| 欧美成人一区二免费视频软件| 欧美色精品在线视频| 韩日视频一区| 亚洲夜晚福利在线观看| 久久久久久999| 亚洲人成在线免费观看| 亚洲欧美在线高清| 奶水喷射视频一区| 亚洲欧洲免费视频| 欧美亚洲在线播放| 欧美啪啪一区| 永久免费精品影视网站| 亚洲男人第一网站| 国产精品视频xxxx| 国产精品久久国产三级国电话系列| 国产精品一区一区| 欧美在线黄色| 欧美日韩亚洲国产精品| 欧美成人影音| 伊伊综合在线| 一本综合精品| 亚洲男人的天堂在线aⅴ视频| 亚洲国产欧美精品| 欧美亚洲一级|