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

天行健 君子當自強而不息

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 閱讀(1435) 評論(0)  編輯 收藏 引用

公告

導航

統計

常用鏈接

隨筆分類(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>
            亚洲成色999久久网站| 亚洲第一色在线| 国产精品黄色在线观看| 校园春色综合网| 亚洲欧美一区二区原创| 一区二区三欧美| 亚洲一区二区影院| 香蕉久久精品日日躁夜夜躁| 羞羞答答国产精品www一本| 亚洲欧美综合网| 欧美一区二区三区婷婷月色| 久久精品女人的天堂av| 麻豆成人精品| 欧美伦理在线观看| 国产精品激情偷乱一区二区∴| 亚洲一区日本| 久久精品国产96久久久香蕉| 久久人人九九| 美女主播视频一区| 欧美日韩精品高清| 国产精品亚洲视频| 影音先锋中文字幕一区二区| 亚洲国产高清高潮精品美女| 日韩午夜激情| 欧美中在线观看| 欧美freesex8一10精品| 亚洲精品日韩在线| 欧美一区亚洲| 欧美精品一区二区三| 国产麻豆日韩欧美久久| 黄色欧美成人| 亚洲影视综合| 欧美大片免费观看| 亚洲亚洲精品三区日韩精品在线视频 | 欧美成在线视频| 国产精品免费区二区三区观看| 韩国精品主播一区二区在线观看| 亚洲人体影院| 久久激情视频| 亚洲麻豆国产自偷在线| 久久久.com| 国产精品美女久久久免费| 亚洲三级电影在线观看| 久久精品成人一区二区三区| 亚洲区欧美区| 美女诱惑一区| 黄色另类av| 久久精品国产清自在天天线| av不卡在线看| 欧美激情一区二区久久久| 国内精品福利| 欧美一区二区久久久| 99re8这里有精品热视频免费| 久久久综合免费视频| 国产日本欧美视频| 久热爱精品视频线路一| 亚洲综合欧美日韩| 欧美二区乱c少妇| 国产一区二区无遮挡| 亚洲性图久久| 亚洲精选视频免费看| 欧美不卡一区| 亚洲国产cao| 另类成人小视频在线| 欧美一区二区精品| 国产视频一区三区| 欧美一区二区三区久久精品茉莉花| 亚洲精品一区二区三区不| 免费试看一区| 亚洲精品裸体| 最新国产の精品合集bt伙计| 老司机精品导航| 在线观看亚洲精品视频| 老司机午夜精品视频| 美女福利精品视频| 亚洲卡通欧美制服中文| 亚洲精品美女在线观看| 欧美全黄视频| 亚洲午夜免费福利视频| 99av国产精品欲麻豆| 国产精品第一页第二页第三页| 亚洲一品av免费观看| 亚洲一区免费视频| 国产亚洲精品美女| 亚洲国产第一| 欧美日韩午夜剧场| 午夜精品久久| 久久久国产精品一区二区中文| 亚洲福利视频专区| 99精品欧美| 国产日韩欧美综合一区| 免费一级欧美片在线观看| 欧美风情在线观看| 欧美一级久久久久久久大片| 性欧美1819性猛交| 亚洲国产精品欧美一二99| 亚洲精品久久久久久久久久久| 欧美一区二区三区四区高清| 91久久精品网| 宅男噜噜噜66一区二区66| 国产一区二区精品久久99| 欧美激情亚洲一区| 国产精品青草久久久久福利99| 久久视频精品在线| 女人天堂亚洲aⅴ在线观看| 亚洲天堂av在线免费| 香蕉成人久久| 9色porny自拍视频一区二区| 欧美一区二区三区另类 | 欧美成人精品福利| 亚洲欧美综合| 欧美激情精品久久久久久免费印度| 午夜亚洲视频| 欧美精品一区三区| 久久综合色影院| 欧美在线视频免费| 欧美伦理a级免费电影| 午夜精品福利视频| 欧美成人精品高清在线播放| 欧美呦呦网站| 欧美日韩a区| 欧美一区激情视频在线观看| 欧美刺激性大交免费视频| 久久精品综合网| 国产精品视频网址| 99精品国产在热久久| 亚洲精品视频免费观看| 久久一区二区三区国产精品 | 国产一区二区三区av电影| 亚洲日本一区二区三区| 亚洲电影在线| 亚洲欧美国产另类| 亚洲天堂成人| 欧美日韩国产天堂| 欧美xart系列在线观看| 国产精品视频观看| 亚洲午夜免费福利视频| 99精品国产高清一区二区| 免费亚洲电影在线| 欧美国产免费| 永久域名在线精品| 亚洲欧美精品suv| 亚洲欧美成人在线| 欧美午夜精品久久久久久人妖| 亚洲国产精品久久久久久女王| 国产伦精品一区二区三区视频孕妇| 一区二区av在线| 亚洲一区二区日本| 欧美日韩不卡一区| 亚洲日本理论电影| 91久久精品视频| 欧美日韩免费| 亚洲人久久久| 亚洲女人av| 国产亚洲女人久久久久毛片| 亚洲一区美女视频在线观看免费| 午夜精品国产| 国产精品夜色7777狼人| 欧美一级一区| 欧美一区二区三区免费在线看| 国产一区二区三区av电影| 亚洲欧美日韩成人高清在线一区| 久久精品99久久香蕉国产色戒| 国产老肥熟一区二区三区| 久久精品视频导航| 亚洲电影免费在线观看| 91久久黄色| 欧美午夜久久久| 一区二区三区回区在观看免费视频| 欧美一区在线视频| 欧美国产精品人人做人人爱| 一本久道久久综合狠狠爱| 夜夜夜久久久| 久久综合久久久久88| 99re6热只有精品免费观看| 欧美另类久久久品| 亚洲一区三区视频在线观看| 欧美一区二区免费视频| 亚洲人午夜精品免费| 欧美喷潮久久久xxxxx| 欧美亚洲网站| 国产精品一区二区在线观看网站| 亚洲缚视频在线观看| 亚洲精品一二| 国产精品综合色区在线观看| 亚洲欧美资源在线| 亚洲精品免费一二三区| 91久久视频| 国产一区二区视频在线观看| 欧美精品粉嫩高潮一区二区| 亚洲一区www| 91久久国产自产拍夜夜嗨| 午夜亚洲福利| 在线亚洲自拍| 国产一区二区三区精品久久久| 欧美人妖在线观看| 影音先锋亚洲精品| 国产精品一区一区三区| 欧美三区在线| 久久亚洲精品一区|