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

天行健 君子當自強而不息

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>
            亚洲大片av| 亚洲女优在线| 日韩视频二区| 亚洲精品一区二区在线观看| 亚洲韩国日本中文字幕| 亚洲国产婷婷| 日韩视频一区二区在线观看 | 欧美午夜大胆人体| 欧美体内谢she精2性欧美| 国产精品久久久久高潮| 国产色爱av资源综合区| 1024亚洲| 亚洲欧美伊人| 男人天堂欧美日韩| 99re亚洲国产精品| 欧美一区二区三区播放老司机| 久久精品综合网| 欧美日韩国产成人在线免费 | 亚洲精品国久久99热| 亚洲欧美日本精品| 久久综合久久综合九色| 日韩网站在线观看| 老牛国产精品一区的观看方式| 欧美视频在线观看 亚洲欧| 国产主播一区二区| 亚洲免费观看高清完整版在线观看熊| 午夜久久久久久| 亚洲国产一区二区三区在线播| 亚洲天堂av图片| 女同一区二区| 国产主播一区二区| 亚洲一区日韩| 亚洲欧洲日产国产网站| 久久激五月天综合精品| 国产精品黄视频| 亚洲久色影视| 欧美寡妇偷汉性猛交| 午夜精品久久久久久久久久久| 欧美精品一区二区三区很污很色的 | 销魂美女一区二区三区视频在线| 久久天天狠狠| 亚洲特色特黄| 欧美精品久久久久久久久老牛影院 | 午夜视频久久久久久| 亚洲黄色免费网站| 欧美一区二区三区视频| 国产精品户外野外| 亚洲欧美成人综合| 一本色道久久综合亚洲精品不卡 | 欧美日韩成人一区| 亚洲欧洲美洲综合色网| 另类综合日韩欧美亚洲| 性欧美1819性猛交| 国产欧美日韩精品a在线观看| 中日韩午夜理伦电影免费| 亚洲国产美女| 欧美激情亚洲视频| 99精品久久久| 亚洲人成啪啪网站| 欧美日本一道本在线视频| 亚洲精品一区二| 亚洲欧洲另类国产综合| 欧美日韩伦理在线免费| 亚洲天堂免费观看| 亚洲网友自拍| 国产午夜精品理论片a级大结局 | 一本色道久久综合亚洲二区三区| 亚洲第一精品夜夜躁人人躁| 女女同性精品视频| 一区二区不卡在线视频 午夜欧美不卡在 | 欧美日韩一区在线| 亚洲无限乱码一二三四麻| 亚洲精选视频免费看| 欧美日韩一级片在线观看| 亚洲一区二区日本| 亚洲一区二区三区四区五区午夜| 国产精品你懂的| 欧美专区日韩视频| 欧美日韩综合不卡| 99精品免费网| 亚洲天堂av高清| 国产午夜精品麻豆| 亚洲国产精品久久| 欧美天堂亚洲电影院在线观看| 午夜视频久久久久久| 久久爱www.| 日韩视频永久免费| 亚洲欧美精品一区| 在线观看久久av| 亚洲精品亚洲人成人网| 国产亚洲精品久久久久婷婷瑜伽| 亚洲欧美日韩爽爽影院| 欧美精品偷拍| 91久久久久久久久| 国产精品免费一区豆花| 夜夜爽www精品| 亚洲国产午夜| 欧美视频手机在线| 久久蜜桃资源一区二区老牛| 麻豆av一区二区三区| 午夜精品福利一区二区蜜股av| 久久国产精品第一页| 亚洲美女性视频| 午夜精品视频在线观看| 在线精品视频在线观看高清| 99国产精品视频免费观看| 国产亚洲电影| 99热精品在线观看| 亚洲国产精品成人精品| 亚洲欧洲精品天堂一级| 亚洲欧美www| 欧美成人午夜免费视在线看片| 亚洲在线第一页| 欧美日本在线播放| 欧美粗暴jizz性欧美20| 国产视频精品va久久久久久| 亚洲免费观看高清完整版在线观看| 狠狠色狠狠色综合日日tαg| 亚洲一品av免费观看| 99精品国产福利在线观看免费| 久久精品人人做人人爽| 久久精品国产欧美激情| 国产精品捆绑调教| 一本色道久久综合| 在线视频中文亚洲| 欧美日本一道本| 亚洲人在线视频| 亚洲乱码精品一二三四区日韩在线 | 久久久久亚洲综合| 久久精品1区| 国产欧美一区二区三区沐欲| 亚洲精品久久久一区二区三区| 亚洲国产婷婷香蕉久久久久久99| 欧美亚洲一区二区在线| 久久九九热免费视频| 国产精品自在欧美一区| 亚洲午夜视频在线观看| 亚洲女人av| 亚洲欧洲日产国码二区| 美女免费视频一区| 欧美成人激情视频免费观看| 精品不卡一区二区三区| 久久久精品动漫| 欧美顶级大胆免费视频| 亚洲激情亚洲| 欧美激情综合在线| 9色国产精品| 欧美一区观看| 激情综合网激情| 美日韩丰满少妇在线观看| 亚洲国产国产亚洲一二三| 夜夜嗨一区二区三区| 欧美三区免费完整视频在线观看| 99国产精品国产精品毛片| 亚洲欧美经典视频| 国产亚洲综合精品| 麻豆成人综合网| aa级大片欧美| 久久久中精品2020中文| 亚洲激情欧美| 国产精品久久久一本精品| 欧美淫片网站| 亚洲国产精品久久久久秋霞不卡 | 亚洲永久免费av| 国产精品视频你懂的| 久久av在线| 亚洲人成啪啪网站| 久久精品人人做人人爽| 亚洲人www| 国产精品一区视频网站| 另类天堂av| 亚洲一区二区三区四区在线观看 | 国产欧美视频在线观看| 久久国产一区二区三区| 亚洲成色精品| 小处雏高清一区二区三区| 在线不卡a资源高清| 欧美视频免费| 久久一区二区三区超碰国产精品 | 欧美成人网在线| 亚洲一区二区三区四区在线观看 | 久久综合九色| 亚洲一区bb| 1000部精品久久久久久久久| 国产精品高潮在线| 欧美大学生性色视频| 欧美一区二区三区免费视| 亚洲日本视频| 六十路精品视频| 欧美亚洲一区| 一本色道久久综合精品竹菊 | 欧美高清在线观看| 亚洲视频二区| 亚洲国产天堂久久综合网| 久久黄色影院| 亚洲欧美精品| 亚洲免费视频观看| 99精品视频一区二区三区| 精品成人在线观看| 国产在线高清精品|