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

天行健 君子當自強而不息

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>
            午夜精品久久久久久久蜜桃app| 99国产精品99久久久久久| 亚洲欧美日韩综合国产aⅴ | 国产婷婷一区二区| 欧美在线日韩| 欧美一区在线直播| 好看的av在线不卡观看| 久久久久久9| 久久亚洲综合网| 91久久综合| 亚洲精品网站在线播放gif| 欧美午夜一区| 欧美中文在线观看| 久久性色av| 999在线观看精品免费不卡网站| 日韩视频亚洲视频| 国产乱码精品一区二区三区五月婷| 亚洲欧美卡通另类91av| 久久本道综合色狠狠五月| 亚洲二区免费| 一本色道久久综合精品竹菊| 国产麻豆综合| 欧美福利视频| 国产精品成人一区二区| 久久久久久九九九九| 欧美电影资源| 性欧美18~19sex高清播放| 久久久久久综合网天天| 99伊人成综合| 亚洲一区尤物| 伊人久久大香线| 一区二区三区四区五区在线| 国产在线拍揄自揄视频不卡99| 欧美大片在线看免费观看| 欧美日韩另类丝袜其他| 久久香蕉精品| 国产精品av免费在线观看| 狂野欧美性猛交xxxx巴西| 欧美区视频在线观看| 久久久久久久一区二区三区| 欧美日韩国产123| 久久免费精品视频| 欧美亚洲成人免费| 亚洲国产精品va在线看黑人| 韩日精品视频一区| 欧美视频1区| 在线日韩中文| 亚洲国产视频a| 黄色成人av网| 亚洲一区在线看| 亚洲欧洲日产国产网站| 香蕉久久夜色精品国产使用方法| 一本到高清视频免费精品| 久久久久亚洲综合| 久久精品国产精品亚洲综合| 久久久精品久久久久| 欧美日韩国产美| 亚洲大胆人体视频| 国产日韩在线亚洲字幕中文| 在线一区视频| 亚洲天堂av电影| 欧美激情欧美狂野欧美精品 | 欧美色网一区二区| 亚洲黄色免费| 亚洲国产成人精品久久久国产成人一区 | 国产亚洲一区二区三区在线观看 | 亚洲韩国青草视频| 亚洲电影观看| 欧美在线国产精品| 久久激情视频免费观看| 国产三级精品三级| 亚洲综合第一页| 欧美在线观看一区| 国产精品日本精品| 亚洲欧美综合国产精品一区| 午夜精品久久久久久99热| 欧美日韩中文字幕精品| 9人人澡人人爽人人精品| 亚洲一二三四久久| 国产精品毛片a∨一区二区三区| 99亚洲一区二区| 亚洲在线观看视频网站| 国产精品色网| 午夜在线播放视频欧美| 久久久噜噜噜久久狠狠50岁| 精品二区视频| 欧美高清在线视频观看不卡| 亚洲国产精品女人久久久| 亚洲图片欧美一区| 国产精品入口日韩视频大尺度| 午夜视频在线观看一区| 久久视频一区二区| 亚洲精品在线看| 国产精品v片在线观看不卡| 香蕉乱码成人久久天堂爱免费| 久久久天天操| 最新国产成人av网站网址麻豆| 欧美精品色网| 午夜电影亚洲| 欧美激情视频在线播放| 亚洲一区二区三区四区五区黄| 国产欧美一区二区三区另类精品 | 久久精品亚洲一区| 亚洲激情专区| 久久成人羞羞网站| 亚洲老司机av| 国产欧美91| 男人的天堂亚洲| 亚洲一级特黄| 欧美成人激情视频免费观看| 久久亚洲春色中文字幕| 一本综合久久| 欧美a一区二区| 性色av一区二区三区红粉影视| 在线看一区二区| 国产久一道中文一区| 欧美1区2区| 欧美一区在线看| 99精品国产在热久久| 美国十次成人| 欧美在线网址| 在线亚洲一区观看| 在线免费观看日韩欧美| 国产精品有限公司| 欧美日韩国产限制| 噜噜噜91成人网| 小黄鸭视频精品导航| 中日韩男男gay无套| 亚洲高清久久| 欧美成人免费全部| 久久久精品一品道一区| 亚洲中字在线| 亚洲少妇中出一区| 99精品99久久久久久宅男| 在线不卡a资源高清| 国产免费成人在线视频| 欧美视频日韩视频| 欧美日韩国内| 欧美国产日韩一区二区在线观看| 久久久一区二区| 欧美一区亚洲二区| 午夜综合激情| 亚洲欧美一区二区在线观看| 中文日韩欧美| 宅男噜噜噜66国产日韩在线观看| 亚洲区免费影片| 亚洲国产精品久久久久婷婷老年| 老色鬼久久亚洲一区二区 | 在线观看欧美精品| 国产亚洲精品高潮| 国产日韩精品一区二区三区在线| 国产精品海角社区在线观看| 国产精品va在线播放我和闺蜜| 欧美日韩另类综合| 欧美日韩中文字幕精品| 欧美成人午夜剧场免费观看| 免费国产一区二区| 免费高清在线视频一区·| 免费观看不卡av| 欧美激情在线免费观看| 欧美日韩免费一区二区三区| 欧美日韩免费观看一区=区三区| 欧美日韩一区二区在线观看视频| 欧美色播在线播放| 国产精品三级久久久久久电影| 国产日本亚洲高清| 1000部精品久久久久久久久| 亚洲人成在线观看一区二区| 99国产精品私拍| 亚洲欧美日韩一区二区在线| 久久久久国色av免费观看性色| 久久精品成人欧美大片古装| 男人的天堂亚洲在线| 亚洲国产精品小视频| 中文欧美日韩| 久久精品视频导航| 免费成人av在线看| 国产精品卡一卡二卡三| 国产欧美日韩激情| 在线不卡亚洲| 亚洲网站啪啪| 久久国产高清| 最新国产乱人伦偷精品免费网站| 中文精品99久久国产香蕉| 久久久久久婷| 欧美日韩中文字幕在线| 激情五月婷婷综合| 99成人精品| 久久一区二区精品| 99av国产精品欲麻豆| 久久久蜜桃一区二区人| 免费观看一区| 亚洲一区二区欧美| 欧美成人影音| 国产视频在线一区二区| 99视频一区二区| 久久免费视频观看| 一区二区三区国产| 欧美jizzhd精品欧美巨大免费| 国产精品一区二区黑丝|