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

天行健 君子當自強而不息

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>
            亚洲性夜色噜噜噜7777| 亚洲性线免费观看视频成熟| 久久激情婷婷| 黄色成人免费观看| 在线精品视频一区二区三四| 久久天堂精品| 亚洲美女淫视频| 久久国产日韩| 亚洲第一精品夜夜躁人人躁| 欧美激情一区| 欧美日韩情趣电影| 欧美一区二区成人| 久久久久欧美| 中文亚洲免费| 欧美专区第一页| 日韩视频免费观看| 亚洲欧美中文字幕| 亚洲国产日韩欧美在线动漫| 久久av一区二区三区| 久久国产精品亚洲va麻豆| 91久久极品少妇xxxxⅹ软件| 亚洲欧洲精品一区二区三区| 国产精品黄色| 亚洲一区三区视频在线观看| 性欧美1819sex性高清| 国产精品久久网| 久久综合久久久| 欧美在线一二三区| 国产精品天天摸av网| 狂野欧美激情性xxxx欧美| 欧美片第一页| 美女主播一区| 国产精品一区视频| 亚洲国产美女| 黑人巨大精品欧美黑白配亚洲| 欧美在线视频观看| 欧美激情精品久久久久久蜜臀| 亚洲高清二区| 亚洲欧美精品在线| 国产手机视频精品| 亚洲精品久久久久久久久| 欧美日韩国语| 欧美国产一区二区| 国产亚洲精品v| 一个色综合av| 国产女主播一区二区| 亚洲精品乱码久久久久久日本蜜臀| 免费视频一区| 久久看片网站| 免费欧美网站| 蜜桃av一区| 国产一区二区精品久久| 亚洲无限乱码一二三四麻| 亚洲久色影视| 欧美高清一区| 亚洲国产成人精品久久| 尤物yw午夜国产精品视频| 午夜视频久久久久久| 亚洲摸下面视频| 欧美视频在线观看免费网址| 性色一区二区| 国产精品入口| 亚洲一区二区三区精品在线观看| 99精品免费视频| 欧美人与禽性xxxxx杂性| 午夜欧美大尺度福利影院在线看| 久久成人国产精品| 久久精品天堂| 好看的日韩视频| 亚洲美女淫视频| 一区二区三区精品国产| 欧美欧美午夜aⅴ在线观看| 亚洲精品九九| 国产精品99久久久久久久久久久久| 小黄鸭精品aⅴ导航网站入口| 欧美亚洲一区二区在线| 国产午夜精品久久| 欧美中文在线视频| 欧美成人午夜影院| 国产日韩欧美a| 欧美资源在线观看| 欧美成人午夜免费视在线看片 | 久久成人av少妇免费| 久久精品国产91精品亚洲| 国色天香一区二区| 久久夜色精品国产亚洲aⅴ| 欧美激情精品久久久久| 国产一区二区三区久久久久久久久| 亚洲女女做受ⅹxx高潮| 久久婷婷av| 国产精品自拍小视频| 欧美在线观看一区二区| 欧美成人免费在线| 一区二区三区四区五区在线 | 久久狠狠亚洲综合| 欧美华人在线视频| 亚洲在线一区二区三区| 欧美另类视频在线| 亚洲综合首页| 亚洲第一在线综合在线| 影音国产精品| 欧美在线播放一区| 91久久精品日日躁夜夜躁国产| 亚洲尤物精选| 亚洲二区视频| 欧美a级在线| 亚洲电影在线看| 亚洲欧美精品在线观看| 亚洲国产成人精品女人久久久 | 亚洲成色777777在线观看影院| 性8sex亚洲区入口| 亚洲成在人线av| 午夜久久久久| 亚洲精品视频在线| 国产一区自拍视频| 久久国产88| 亚洲视频在线二区| 亚洲免费人成在线视频观看| 影音先锋中文字幕一区二区| 欧美视频免费| 亚洲一级影院| 亚洲国产视频一区| 美女久久网站| 亚洲美女性视频| 在线精品观看| 欧美激情影院| 一区二区三区日韩欧美精品| 欧美成人按摩| 一区二区欧美亚洲| 国产精品二区影院| 欧美激情按摩在线| 亚洲午夜av在线| 日韩午夜av在线| 亚洲福利视频一区二区| 欧美岛国在线观看| 免费试看一区| 麻豆视频一区二区| 一本色道久久综合亚洲精品不| 亚洲福利精品| 国产精品国产自产拍高清av王其 | 欧美金8天国| 中文在线一区| 99视频一区| 亚洲视频中文字幕| 美女国内精品自产拍在线播放| 亚洲免费电影在线| 亚洲精品乱码| 一本色道久久88综合亚洲精品ⅰ| 国产精品视频xxxx| 美女图片一区二区| 欧美sm视频| 欧美亚洲午夜视频在线观看| 亚洲免费一级电影| 亚洲国产精品久久| 亚洲欧洲精品一区二区| 日韩视频一区二区| 欧美本精品男人aⅴ天堂| 免费成人高清在线视频| 亚洲大胆女人| 99国产精品国产精品久久| 亚洲午夜精品福利| 午夜伦理片一区| 久久久综合精品| 欧美另类videos死尸| 久久久久9999亚洲精品| 亚洲色无码播放| 亚洲国产日韩欧美在线图片| 亚洲欧洲日产国产网站| 老色鬼久久亚洲一区二区| 欧美电影在线| 巨乳诱惑日韩免费av| 欧美韩日一区二区三区| 久久九九精品99国产精品| 亚洲一区二区高清视频| 亚洲精品中文字幕在线| 亚洲欧美另类中文字幕| 99在线观看免费视频精品观看| 亚洲欧美成人一区二区在线电影| 亚洲人成欧美中文字幕| 欲香欲色天天天综合和网| 一区二区欧美激情| 欧美中文字幕第一页| 欧美激情 亚洲a∨综合| 在线中文字幕日韩| 久久伊伊香蕉| 久久一综合视频| 久久久欧美精品sm网站| 久久精品理论片| 欧美日韩亚洲一区二区| 国产有码一区二区| 国外成人在线视频| 韩国在线一区| 亚洲一区在线看| 亚洲视频一区二区| 免费日韩av| 欧美一级视频| 国产精品二区二区三区| 亚洲人成艺术| 另类综合日韩欧美亚洲| 亚洲永久免费av|