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

天行健 君子當(dāng)自強(qiáng)而不息

DXUT框架剖析(11)

DXUT統(tǒng)計函數(shù)

函數(shù) 描述
DXUTGetFPS 獲取當(dāng)前每秒提交的幀數(shù)
DXUTGetFrameStats 獲取一個指向字符串的指針,該字符串包括每秒幀數(shù)、分辨率、后臺緩沖區(qū)格式、深度緩沖區(qū)格式。
DXUTGetDeviceStats 獲取一個指向字符串的指針,該字符串包括當(dāng)前設(shè)備類型、頂點運(yùn)算行為和設(shè)備名。

 

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 獲取當(dāng)前時間(秒)
DXUTGetElapsedTime 獲取從上一幀到當(dāng)前幀所經(jīng)過的時間
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 閱讀(1441) 評論(0)  編輯 收藏 引用


只有注冊用戶登錄后才能發(fā)表評論。
網(wǎng)站導(dǎo)航: 博客園   IT新聞   BlogJava   博問   Chat2DB   管理


公告

導(dǎo)航

統(tǒng)計

常用鏈接

隨筆分類(178)

3D游戲編程相關(guān)鏈接

搜索

最新評論

青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <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| 最新69国产成人精品视频免费| 久久精品视频网| 在线观看日韩精品| 亚洲国产成人精品久久久国产成人一区 | 欧美亚洲视频在线观看| 亚洲一区黄色| 黑人一区二区| 亚洲黄色有码视频| 国产精品久久一卡二卡| 久久久精品国产一区二区三区| 久久精品免视看| 日韩一级免费观看| 性久久久久久久久| 亚洲人被黑人高潮完整版| 一区二区激情| 亚洲高清视频中文字幕| 日韩一级在线观看| 一区二区三区在线视频观看| 亚洲经典在线| 国产揄拍国内精品对白| 亚洲人成网站精品片在线观看| 国产精品狼人久久影院观看方式| 久久偷窥视频| 国产精品高潮呻吟久久av黑人| 久久久久一区二区| 欧美日韩伦理在线| 欧美高清不卡在线| 国产欧美1区2区3区| 91久久午夜| 精品不卡一区二区三区| 亚洲香蕉伊综合在人在线视看| 18成人免费观看视频| 亚洲性xxxx| 99在线热播精品免费| 久久久噜噜噜| 久久精品国产99国产精品| 欧美日韩精品一区二区三区四区 | 欧美一区影院| 欧美日韩精品一区| 欧美成人中文字幕| 国产中文一区| 亚洲主播在线| 亚洲亚洲精品在线观看| 免费观看在线综合| 老鸭窝毛片一区二区三区 | 久久久在线视频| 久久高清一区| 国产精品视频成人| 一道本一区二区| aa亚洲婷婷| 欧美精品一线| 亚洲国产人成综合网站| 亚洲国产成人精品女人久久久| 久久se精品一区二区| 欧美在线观看日本一区| 国产精品久久久爽爽爽麻豆色哟哟 | 亚洲美女网站| 欧美高清视频www夜色资源网| 嫩草影视亚洲| 亚洲黄色视屏| 欧美激情小视频| 91久久国产自产拍夜夜嗨| 亚洲欧洲视频在线| 欧美粗暴jizz性欧美20| 亚洲国产精品久久久久婷婷884| 黄色精品一区二区| 久久夜色精品国产| 亚洲成色www8888| 亚洲精品国产拍免费91在线| 欧美成人精品| 亚洲精品一区中文| 亚洲欧美国产精品桃花| 国产乱码精品| 久久本道综合色狠狠五月| 久久综合亚州| 99ri日韩精品视频| 国产精品成人在线观看| 香蕉国产精品偷在线观看不卡| 久久久久久久久久久一区 | 尤物yw午夜国产精品视频| 久久中文字幕导航| 亚洲美女免费精品视频在线观看| 制服丝袜激情欧洲亚洲| 国产精品日韩一区二区| 久久精品亚洲精品国产欧美kt∨| 免费永久网站黄欧美| 99www免费人成精品| 国产精品久久网站| 久久久综合视频| 在线亚洲电影| 麻豆成人综合网| 国产精品99久久久久久久久| 国产人成一区二区三区影院| 欧美va天堂| 亚洲欧美日韩国产精品| 欧美成人国产| 午夜视频一区二区| 亚洲国产一区二区a毛片| 欧美天堂亚洲电影院在线播放| 性色一区二区| 99亚洲精品| 欧美成人国产va精品日本一级| 亚洲午夜高清视频| 在线成人国产| 国产精品嫩草影院av蜜臀| 久久一日本道色综合久久| 一区二区三区产品免费精品久久75| 久久人人精品| 亚洲免费视频中文字幕| 亚洲日本欧美天堂| 国产一区二区三区久久悠悠色av| 欧美黄在线观看| 久久免费99精品久久久久久| 亚洲一二三四区| 91久久久久久| 欧美黄色成人网| 久久视频免费观看| 欧美专区在线观看| 亚洲午夜视频在线观看| 亚洲精品久久| 亚洲电影激情视频网站| 国产一区在线免费观看| 国产精品久久久久久av福利软件| 免费一级欧美片在线播放| 久久xxxx精品视频| 午夜亚洲福利| 性刺激综合网| 新狼窝色av性久久久久久| 亚洲一区二区三区午夜| 一区二区三区视频在线看| 亚洲精品无人区| 亚洲欧洲精品一区二区三区| 欧美成人黄色小视频| 毛片av中文字幕一区二区| 久久香蕉国产线看观看av| 久久久国产精品一区二区三区| 亚洲欧美区自拍先锋| 亚洲欧美精品在线| 亚洲欧美伊人| 欧美专区在线播放| 久久精品视频亚洲| 久久婷婷一区| 欧美成人免费观看| 亚洲国产高清一区二区三区| 亚洲国产精品va在线观看黑人 | 亚洲一区国产一区| 亚洲欧美成人| 欧美一区精品| 裸体歌舞表演一区二区| 免费观看国产成人| 亚洲国产精品久久久久久女王| 亚洲欧洲日韩在线| 一本色道综合亚洲| 性视频1819p久久| 久久夜色精品国产| 欧美激情精品久久久久久久变态| 欧美理论片在线观看| 国产精品家庭影院| 国产最新精品精品你懂的| 亚洲高清av在线| 宅男噜噜噜66一区二区66| 亚洲欧美国产另类| 狼狼综合久久久久综合网 | 蜜臀久久久99精品久久久久久 | 欧美gay视频激情| 亚洲人被黑人高潮完整版| 亚洲图片欧洲图片日韩av| 欧美中文在线观看| 欧美精品手机在线| 国产精品中文字幕在线观看| 在线精品视频一区二区| 一区二区三区精密机械公司| 欧美一进一出视频| 91久久中文| 亚洲午夜免费福利视频| 欧美一区影院| 亚洲高清视频在线| 亚洲图片自拍偷拍| 另类春色校园亚洲| 国产精品成人一区| 亚洲第一页自拍| 欧美一级在线视频| 亚洲国内在线| 欧美在线视屏| 欧美视频在线观看一区二区| 精品999成人| 性欧美18~19sex高清播放| 亚洲成色精品| 久久国产欧美| 国产精品久线观看视频| 亚洲人成欧美中文字幕| 久久精品主播| 亚洲午夜视频| 欧美日韩亚洲另类| 亚洲黄色三级|