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

天行健 君子當自強而不息

DXUT框架剖析(11)

DXUT統(tǒng)計函數(shù)

函數(shù) 描述
DXUTGetFPS 獲取當前每秒提交的幀數(shù)
DXUTGetFrameStats 獲取一個指向字符串的指針,該字符串包括每秒幀數(shù)、分辨率、后臺緩沖區(qū)格式、深度緩沖區(qū)格式。
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時間函數(shù)

函數(shù) 描述
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計時器函數(shù)

函數(shù) 描述
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 閱讀(1435) 評論(0)  編輯 收藏 引用

公告

導航

統(tǒng)計

常用鏈接

隨筆分類(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>
            亚洲视频中文字幕| 亚洲社区在线观看| 欧美日韩亚洲综合一区| 欧美大片免费久久精品三p | 亚洲精品一区二区三区四区高清| 激情综合激情| 亚洲青涩在线| 在线中文字幕一区| 久久国产欧美日韩精品| 女人色偷偷aa久久天堂| 久久精品中文| 亚洲国产小视频| 日韩一级精品| 亚洲欧美综合v| 久久中文在线| 亚洲人成网站影音先锋播放| 妖精成人www高清在线观看| 午夜亚洲视频| 欧美激情bt| 国产一区二区三区高清播放| 亚洲日本va午夜在线电影| 午夜视频久久久久久| 欧美www视频在线观看| 亚洲午夜精品久久久久久app| 久久精品视频在线看| 国产精品国色综合久久| 最近中文字幕日韩精品| 久久久xxx| 一区二区三区欧美| 欧美电影专区| 在线观看一区视频| 欧美一区国产一区| 日韩视频中文| 麻豆精品在线视频| 国产一区二区三区在线观看免费| 一区二区三欧美| 亚洲国内欧美| 蜜臀av在线播放一区二区三区| 国产乱人伦精品一区二区| 夜夜嗨av色综合久久久综合网| 免费成人黄色| 欧美在线观看一区| 国产精品美女久久久免费| 99精品久久久| 亚洲人成在线观看| 欧美成人a视频| 亚洲国产日日夜夜| 麻豆国产精品va在线观看不卡 | 久久成人18免费网站| 国产精品欧美经典| 亚洲综合国产| 亚洲深夜av| 国产精品久久久久久五月尺| 99re6这里只有精品视频在线观看 99re6这里只有精品 | 欧美freesex交免费视频| 一区视频在线看| 久久久久久夜| 久久精品国产亚洲一区二区三区 | 在线观看亚洲a| 久久精品一区蜜桃臀影院 | 亚洲电影观看| 午夜久久福利| 国产精品久久综合| 午夜精品一区二区三区在线视 | 久久综合中文色婷婷| 国产专区综合网| 久久综合色8888| 女生裸体视频一区二区三区| 亚洲国产成人不卡| 亚洲三级网站| 国产精品一卡二| 久久久久久久综合狠狠综合| 久久se精品一区精品二区| 亚洲高清三级视频| 亚洲精品久久视频| 国产乱码精品| 欧美电影在线观看| 欧美日韩一区在线观看视频| 午夜精品久久久久久久久久久久久| 亚洲在线成人| 亚洲电影免费观看高清完整版在线 | 久久一区精品| 老司机精品久久| 这里只有精品丝袜| 性做久久久久久免费观看欧美 | 午夜国产精品视频| 久久久精品午夜少妇| 亚洲美女色禁图| 亚洲欧美视频一区| 亚洲欧洲精品成人久久奇米网 | 欧美激情一二三区| 欧美一区二区三区视频免费| 麻豆成人小视频| 亚洲欧美亚洲| 欧美国产日本高清在线| 欧美一区二区在线免费观看 | 欧美另类视频在线| 久久久久久网址| 国产精品扒开腿爽爽爽视频| 另类综合日韩欧美亚洲| 欧美日韩一区二区在线观看| 久久尤物视频| 国产精品视频| 亚洲电影免费观看高清完整版| 国产精品三区www17con| 亚洲黄色免费电影| 狠狠色综合色综合网络| 日韩视频在线你懂得| 亚洲国产清纯| 久久久www成人免费精品| 午夜免费日韩视频| 欧美日韩不卡一区| 欧美成年人视频网站欧美| 国产精品免费视频观看| 妖精成人www高清在线观看| 国产精品婷婷| 亚洲精品乱码| 久久久国产一区二区| 亚洲永久在线观看| 欧美精品性视频| 亚洲韩国精品一区| 亚洲国产日韩一区二区| 久久riav二区三区| 欧美中文在线观看| 国产精品视频导航| 一区二区三区欧美亚洲| 中文亚洲欧美| 国产精品家庭影院| av成人激情| 亚洲色图在线视频| 国产精品jvid在线观看蜜臀| 亚洲精品美女91| 中文在线资源观看网站视频免费不卡| 男女av一区三区二区色多| 亚洲福利一区| 亚洲精品日韩一| 欧美日韩喷水| 亚洲一区精品视频| 欧美诱惑福利视频| 国产日产欧美a一级在线| 翔田千里一区二区| 麻豆免费精品视频| 亚洲欧洲精品一区二区| 欧美精品高清视频| 夜色激情一区二区| 欧美一区二区三区精品电影| 国产一区二区三区久久精品| 久久久久青草大香线综合精品| 欧美大片18| 亚洲一二三级电影| 国产亚洲精品bt天堂精选| 久久精品国产91精品亚洲| 亚洲成人资源网| 亚洲天堂成人在线观看| 国产精品一区三区| 玖玖玖免费嫩草在线影院一区| 亚洲电影在线看| 亚洲欧美一区二区精品久久久| 国产网站欧美日韩免费精品在线观看 | 欧美xx视频| 一区二区电影免费观看| 国产精品综合网站| 久久综合九色九九| 亚洲毛片在线| 久久久久国产一区二区三区四区| 在线观看欧美黄色| 欧美特黄一级| 久久久久久色| 亚洲性夜色噜噜噜7777| 毛片av中文字幕一区二区| 在线亚洲欧美| 136国产福利精品导航网址| 欧美日韩精品免费看| 欧美专区在线| 一区二区三区日韩欧美精品| 美女主播一区| 欧美在线免费观看| 一本久久综合| 亚洲国产成人在线播放| 国产精品久久久一区麻豆最新章节 | 亚洲国产欧美一区二区三区同亚洲 | 久久精品国产99精品国产亚洲性色| 激情久久久久久| 欧美视频一区二区三区四区| 久久久午夜精品| 亚洲午夜日本在线观看| 欧美国产一区二区三区激情无套| 亚洲已满18点击进入久久| 亚洲福利视频二区| 国产一区二区观看| 国产精品伦一区| 欧美日韩国产一级| 每日更新成人在线视频| 午夜视频久久久| 亚洲一区黄色| 亚洲影院色无极综合| 一区二区三区日韩精品| 亚洲精品欧洲精品| 亚洲激情专区| 亚洲欧洲另类|