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

天行健 君子當自強而不息

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>
            欧美伊人久久久久久午夜久久久久| 欧美极品欧美精品欧美视频| 欧美国产精品日韩| 欧美激情一级片一区二区| 久久九九全国免费精品观看| 久久aⅴ国产欧美74aaa| 久久久久免费视频| 欧美第十八页| 欧美午夜精品理论片a级大开眼界| 欧美日韩国产综合视频在线观看中文 | 欧美尤物巨大精品爽| 久久久久久久一区| 亚洲成人自拍视频| 亚洲第一天堂无码专区| 一本到高清视频免费精品| 亚洲综合欧美日韩| 蜜桃久久精品一区二区| 欧美日韩在线观看视频| 国产欧美成人| 亚洲精品护士| 久久久999| 亚洲久久一区| 久久国产日韩| 欧美午夜寂寞影院| 精品av久久707| 亚洲一区二区三区中文字幕| 久久亚洲视频| 一本一本a久久| 美女国产精品| 国产视频久久久久| 一本色道久久综合亚洲二区三区| 欧美影院午夜播放| 日韩视频在线一区二区| 久久久久久欧美| 国产精品实拍| 欧美一区二区三区久久精品茉莉花 | 日韩网站在线观看| 久久久久久一区二区| 亚洲老板91色精品久久| 国产精品女人网站| 久久久久欧美精品| 国产精品综合不卡av| 亚洲日韩第九十九页| 久久精品欧美日韩| 中文一区在线| 欧美日韩黄色大片| 亚洲片国产一区一级在线观看| 欧美一区综合| 在线一区日本视频| 欧美日韩99| 亚洲日本成人| 另类激情亚洲| 久久精品女人天堂| 国产欧美日韩精品在线| 亚洲欧美另类综合偷拍| 亚洲激情亚洲| 欧美gay视频| 91久久精品一区二区别| 欧美成人首页| 麻豆精品在线观看| 亚洲人成亚洲人成在线观看| 欧美大秀在线观看| 欧美成人在线免费视频| 亚洲精品资源美女情侣酒店| 亚洲二区在线视频| 欧美激情一区二区三级高清视频| 亚洲久久视频| 99精品国产福利在线观看免费| 久久久免费观看视频| 亚洲欧美国产制服动漫| 国产日韩综合一区二区性色av| 午夜亚洲福利| 久久精品国产精品亚洲综合| 国产日韩亚洲欧美| 老司机aⅴ在线精品导航| 另类图片综合电影| 一区二区三区国产| 亚洲欧美美女| 亚洲国产成人高清精品| 亚洲精品欧洲| 国产嫩草一区二区三区在线观看| 久久久www成人免费精品| 久久噜噜噜精品国产亚洲综合| 亚洲国产精品久久久久婷婷884 | 性欧美超级视频| 韩国一区二区三区在线观看| 久久精品国产在热久久 | 久久亚洲精品视频| 亚洲另类春色国产| 亚洲一区二区三区三| 激情亚洲一区二区三区四区| 欧美成人免费全部| 欧美一区二区在线| 亚洲最新在线| 国产一区二区三区高清| 欧美黄色大片网站| 欧美日韩一区二区欧美激情| 久久国产精品亚洲77777| 欧美1区2区视频| 性18欧美另类| 欧美激情综合五月色丁香| 亚洲一区制服诱惑| 久久久久久999| 亚洲综合精品自拍| 免费成人av在线看| 久久精品欧美日韩| 欧美日韩三区四区| 农村妇女精品| 国产精品自拍三区| 日韩小视频在线观看| 黄色成人在线免费| 日韩视频在线免费观看| 影音先锋成人资源站| 亚洲一级在线观看| 一区二区91| 女女同性精品视频| 久热精品在线视频| 国产精品一区二区在线观看| 亚洲精品麻豆| 亚洲国产精品久久人人爱蜜臀 | 免播放器亚洲一区| 久久久噜噜噜久久中文字免| 国产精品区一区| 一区二区欧美视频| 99精品国产在热久久下载| 老司机aⅴ在线精品导航| 久久久久天天天天| 国产欧美一区二区三区久久人妖| 亚洲精品影院在线观看| 亚洲久久一区二区| 欧美精品久久一区| 亚洲电影免费在线观看| 亚洲高清激情| 免费美女久久99| 欧美国产日韩免费| 亚洲欧洲日本国产| 欧美成人一区在线| 亚洲精品韩国| 亚洲午夜精品视频| 国产精品成人va在线观看| 日韩视频一区二区三区在线播放免费观看| 亚洲精品女av网站| 欧美日本精品| 亚洲深夜福利在线| 欧美激情一区二区三区全黄| 欧美成人四级电影| 亚洲人被黑人高潮完整版| 久久亚洲影音av资源网| 欧美大尺度在线观看| 亚洲日本电影| 国产精品porn| 亚洲欧美欧美一区二区三区| 欧美在线二区| 黄色国产精品| 欧美理论电影网| 一区二区电影免费在线观看| 国产日韩欧美中文| 免费不卡欧美自拍视频| 伊人激情综合| 欧美人与禽猛交乱配| 一区二区国产日产| 午夜欧美大片免费观看| 国产一区二区三区在线免费观看| 久久米奇亚洲| 99精品欧美一区二区蜜桃免费| 午夜精品一区二区三区在线| 国内外成人在线| 欧美精品一区二区在线观看| 亚洲色图制服丝袜| 蜜桃av一区二区| 亚洲影院一区| 一区二区三区在线免费观看| 欧美黑人多人双交| 亚洲欧美怡红院| 亚洲黄色小视频| 欧美专区在线播放| 亚洲精品一区二区三区福利| 国产精品日日摸夜夜添夜夜av| 噜噜噜91成人网| 午夜精品视频在线观看| 亚洲国产va精品久久久不卡综合| 亚洲专区免费| 亚洲精选成人| 国内精品久久久久影院薰衣草| 欧美日韩精品是欧美日韩精品| 久久国产精品久久久久久久久久| 日韩午夜av电影| 欧美电影免费观看高清| 欧美在线播放一区| 亚洲一二三区精品| 亚洲精品欧美日韩专区| 国产亚洲福利一区| 欧美亚韩一区| 欧美区在线观看| 欧美freesex交免费视频| 久久福利影视| 性感少妇一区| 亚洲欧美另类中文字幕| 这里只有精品丝袜| 日韩一区二区精品|