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

天行健 君子當自強而不息

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>
            亚洲一区二区三区777| 亚洲欧美激情视频| 欧美高清在线精品一区| 亚洲欧洲精品一区二区三区| 亚洲国产精品成人| 麻豆精品国产91久久久久久| 亚洲人成网站999久久久综合| 欧美激情视频在线播放 | 美女精品国产| 久久亚洲精品一区二区| 亚洲美女区一区| 这里只有精品在线播放| 国产欧美日韩在线 | 亚洲精选大片| 在线一区二区三区做爰视频网站| 国产精品日日做人人爱| 久久久另类综合| 欧美好骚综合网| 亚洲欧美日韩直播| 久久免费黄色| 亚洲特级片在线| 久久精品国产亚洲精品| 亚洲乱码精品一二三四区日韩在线| 夜夜爽99久久国产综合精品女不卡 | 久久久蜜臀国产一区二区| 久久亚洲精品一区| 中日韩男男gay无套| 欧美永久精品| 夜久久久久久| 久久精品国产精品| 亚洲一区二区欧美| 美女亚洲精品| 久久精品免费电影| 欧美日韩亚洲综合一区| 久久免费午夜影院| 欧美性猛交xxxx乱大交蜜桃| 免费观看欧美在线视频的网站| 欧美精品一卡二卡| 久久综合九色综合网站| 国产精品久久91| 亚洲高清不卡在线| 国外成人在线视频网站| 亚洲午夜成aⅴ人片| 亚洲人成毛片在线播放| 久久精品国产99国产精品| 亚洲神马久久| 欧美精品久久久久a| 你懂的视频欧美| 国产色综合网| 中文有码久久| 亚洲视频在线看| 欧美成人免费播放| 牛牛影视久久网| 激情综合亚洲| 久久精品人人| 久久精品在这里| 国产色视频一区| 亚洲自拍另类| 欧美一区二区啪啪| 国产精品男人爽免费视频1| 日韩一区二区久久| 亚洲视频免费在线| 欧美日韩精品在线视频| 亚洲日本va午夜在线电影| 91久久综合| 欧美激情在线观看| 亚洲精品资源美女情侣酒店| 亚洲美女av网站| 欧美好吊妞视频| 亚洲精品乱码视频 | 欧美亚男人的天堂| 99riav久久精品riav| 亚洲天堂免费观看| 国产精品福利网站| 亚洲免费影视| 久久嫩草精品久久久久| 在线欧美日韩国产| 欧美韩日视频| 夜夜嗨av一区二区三区中文字幕| 亚洲午夜国产一区99re久久| 国产精品久久久久久久久借妻| 亚洲一区二区三区在线视频| 欧美在线视频a| 韩国三级电影一区二区| 看欧美日韩国产| 亚洲美女少妇无套啪啪呻吟| 一区二区三区欧美在线观看| 国产精品久久久久av免费| 午夜久久黄色| 欧美成人有码| 亚洲午夜视频在线| 国产一区二区日韩| 免费看成人av| 一区二区三区日韩| 久久成人在线| 亚洲开发第一视频在线播放| 欧美日韩小视频| 欧美一级片在线播放| 免费日韩视频| 亚洲一区综合| 永久久久久久| 国产精品电影网站| 久久综合电影| 一区二区欧美精品| 免费国产自线拍一欧美视频| 正在播放欧美视频| 精品av久久久久电影| 欧美日韩亚洲三区| 久久久免费av| 亚洲一区久久| 91久久精品一区二区别| 久久激情综合网| 亚洲每日更新| 在线观看中文字幕亚洲| 国产精品三级久久久久久电影| 久久偷看各类wc女厕嘘嘘偷窃| 一区二区福利| 亚洲欧洲三级| 蜜桃av一区二区在线观看| 亚洲综合色婷婷| 亚洲精品在线观看免费| 一区二区三区在线免费观看| 国产精品日韩在线播放| 欧美人成在线| 欧美成人免费va影院高清| 久久九九电影| 性欧美暴力猛交另类hd| 在线视频亚洲一区| 亚洲国产另类精品专区| 能在线观看的日韩av| 久久久精品视频成人| 午夜国产精品影院在线观看| 亚洲视频第一页| 99国产精品国产精品毛片| 91久久精品国产91久久性色tv| 国内精品久久久久久久果冻传媒 | 欧美日韩免费观看一区=区三区| 久久精品国产亚洲a| 性欧美激情精品| 亚洲欧美日韩在线综合| 亚洲婷婷在线| 亚洲一区二区伦理| 亚洲一区二区三区在线视频| 中日韩美女免费视频网址在线观看 | 91久久国产综合久久| 在线观看视频亚洲| 在线成人小视频| 在线观看日韩精品| 亚洲激情自拍| 日韩午夜在线电影| 一个人看的www久久| 中文久久精品| 新狼窝色av性久久久久久| 欧美一区二区网站| 久久婷婷国产综合国色天香| 狂野欧美激情性xxxx| 欧美国产日韩亚洲一区| 亚洲电影观看| 日韩视频免费| 亚洲一区久久久| 欧美一区二区免费| 可以免费看不卡的av网站| 欧美国产一区二区| 国产精品毛片va一区二区三区| 国产精品私人影院| 狠狠爱成人网| 亚洲精品日韩欧美| 午夜伦欧美伦电影理论片| 久久精品国产第一区二区三区最新章节 | 久久偷看各类wc女厕嘘嘘偷窃| 美女日韩欧美| 亚洲人体大胆视频| 亚洲综合色自拍一区| 久久婷婷国产综合精品青草| 欧美日产一区二区三区在线观看| 国产精品久久久久影院亚瑟| 国内视频精品| 一区二区三区av| 久久频这里精品99香蕉| 91久久精品视频| 亚洲欧美制服中文字幕| 免费人成精品欧美精品| 国产精品美女久久久| 亚洲高清在线视频| 午夜一级久久| 欧美黄色成人网| 亚洲欧美另类在线| 欧美激情欧美狂野欧美精品 | 欧美自拍偷拍| 欧美日韩一区二区在线| 国产综合色产在线精品| 亚洲免费成人av| 久久久综合免费视频| 日韩一级精品| 美女精品一区| 黄色av一区| 欧美伊久线香蕉线新在线| 亚洲精品美女91| 美女精品国产| 一区二区三区在线高清|