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

天行健 君子當自強而不息

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>
            亚洲电影免费在线| 樱花yy私人影院亚洲| av成人激情| 99精品视频一区二区三区| 日韩午夜电影| 亚洲午夜电影网| 欧美一级黄色网| 欧美在线视频不卡| 噜噜噜久久亚洲精品国产品小说| 亚洲欧美另类综合偷拍| 欧美色视频在线| 国产精品久久久久久久9999| 国产欧美日韩视频在线观看| 国产午夜精品久久| 亚洲国产激情| 亚洲一区二区三区四区在线观看 | 久久久精品国产免大香伊| 久久免费视频网| 亚洲精品色婷婷福利天堂| av成人天堂| 久久久久国产一区二区三区| 欧美另类videos死尸| 国产久一道中文一区| 91久久亚洲| 久久久精品性| 亚洲毛片在线看| 性做久久久久久久免费看| 美女视频一区免费观看| 国产精品一区二区你懂的| 亚洲高清在线观看一区| 香港久久久电影| 亚洲国产一区二区视频 | 欧美暴力喷水在线| 国产精品久久久久久久浪潮网站| 亚洲二区在线视频| 欧美在线在线| 亚洲视频在线观看一区| 免费影视亚洲| 激情文学综合丁香| 午夜精品一区二区在线观看 | 欧美亚州在线观看| 亚洲人成啪啪网站| 老司机一区二区| 午夜精品一区二区在线观看| 欧美揉bbbbb揉bbbbb| 91久久久精品| 美日韩精品视频| 久久九九精品99国产精品| 欧美性一二三区| 亚洲午夜一级| 亚洲激情在线播放| 欧美va天堂| 91久久久久久久久| 欧美xx69| 久久久91精品| 精品91在线| 久久欧美中文字幕| 久久精品99国产精品酒店日本| 国产在线精品一区二区夜色| 香蕉尹人综合在线观看| 亚洲美女毛片| 欧美精品一区二区三区久久久竹菊| 欲香欲色天天天综合和网| 欧美在线三级| 午夜精品久久久久久久99黑人| 国产精品激情电影| 亚洲欧美国产高清| 午夜老司机精品| 国模 一区 二区 三区| 久久野战av| 另类av一区二区| 一区二区三区久久久| 在线一区日本视频| 国产三级欧美三级日产三级99| 久久久久亚洲综合| 嫩草影视亚洲| 亚洲影院在线| 久久久久国产精品午夜一区| 亚洲人成人一区二区三区| 亚洲国产裸拍裸体视频在线观看乱了中文| 久久综合国产精品| 亚洲理论电影网| 亚洲午夜精品福利| 国内久久精品| 亚洲欧洲日本一区二区三区| 国产精品啊v在线| 久久精品视频99| 裸体丰满少妇做受久久99精品 | 亚洲精品日产精品乱码不卡| 99国产精品99久久久久久| 国产精品美女久久久| 久久亚洲图片| 欧美视频免费| 久久综合网色—综合色88| 欧美精品 日韩| 欧美伊人久久久久久久久影院 | 亚洲精品美女久久7777777| 欧美午夜精品久久久久久超碰| 欧美中文字幕在线观看| 欧美国产日韩a欧美在线观看| 亚洲欧美日韩在线一区| 噜噜爱69成人精品| 久久精品国产亚洲一区二区三区| 免费一级欧美片在线播放| 欧美一区午夜精品| 欧美日韩福利| 狂野欧美性猛交xxxx巴西| 欧美日韩在线一区二区| 欧美大片在线观看一区| 国产欧美亚洲日本| 亚洲美女在线一区| 精品69视频一区二区三区| 亚洲伊人一本大道中文字幕| 亚洲精品一二三| 久久不射2019中文字幕| 一区二区三区四区五区精品| 久久综合网hezyo| 久久久久久电影| 亚洲永久免费观看| 欧美午夜免费影院| 亚洲国产精品女人久久久| 国产在线国偷精品产拍免费yy| 亚洲一区二区三区欧美| 宅男噜噜噜66一区二区66| 欧美黑人在线观看| 老司机午夜精品视频在线观看| 国产精品自拍视频| 在线综合欧美| 亚洲在线播放电影| 欧美日韩国产123区| 欧美国产成人精品| 在线不卡视频| 久久久久欧美精品| 美国三级日本三级久久99| 国产午夜精品一区二区三区欧美| 亚洲少妇自拍| 亚洲欧美日韩久久精品 | 亚洲黄色在线| 免费h精品视频在线播放| 欧美11—12娇小xxxx| 一区二区在线视频| 美女主播精品视频一二三四| 亚洲成人自拍视频| 99精品视频一区| 欧美日韩喷水| 亚洲图片欧美一区| 久久成人资源| 在线成人免费观看| 免费看黄裸体一级大秀欧美| 欧美激情一区| 国产精品99久久久久久www| 欧美视频日韩| 午夜免费日韩视频| 免费中文日韩| 宅男噜噜噜66一区二区| 国产精品资源在线观看| 久久激情五月婷婷| 亚洲国产精品精华液网站| 一区二区三区国产| 国产美女精品视频免费观看| 久久久久久免费| 日韩网站在线| 久久久国产精品亚洲一区| 在线观看91久久久久久| 欧美激情国产日韩| 亚洲免费人成在线视频观看| 免费欧美视频| 午夜精品免费视频| 亚洲成色www8888| 欧美丝袜一区二区| 久久久久国产一区二区三区| 夜夜嗨av一区二区三区四区 | 国产精品99久久不卡二区| 久久精品国产欧美亚洲人人爽| 在线观看中文字幕亚洲| 欧美日韩在线视频一区二区| 久久久久久九九九九| 91久久久国产精品| 欧美一区免费视频| 99精品视频免费全部在线| 好看不卡的中文字幕| 欧美午夜免费影院| 欧美国产欧美亚州国产日韩mv天天看完整| 亚洲尤物视频网| 日韩午夜av在线| 欧美国产日韩免费| 久久精品国产999大香线蕉| 亚洲国产va精品久久久不卡综合| 亚洲综合色丁香婷婷六月图片| 国产亚洲制服色| 欧美日韩一区在线播放| 久久久蜜臀国产一区二区| 亚洲一区区二区| 99国产麻豆精品| 亚洲三级电影全部在线观看高清 | 日韩视频免费大全中文字幕| 鲁鲁狠狠狠7777一区二区| 亚洲男人第一av网站| 日韩系列欧美系列| 亚洲国产婷婷|