• <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>

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

            DXUT框架剖析(12)

            DXUT暫停函數(shù)

            函數(shù) 描述
            DXUTPause 將框架的內(nèi)部計數(shù)器和(或)渲染過程設(shè)為暫停狀態(tài)
            DXUTRenderingPaused 檢查當(dāng)前設(shè)備的渲染狀態(tài)是否處在暫停狀態(tài)
            DXUTIsTimePaused 檢查當(dāng)前設(shè)備的計時器是否處在暫停狀態(tài)

             

            DXUTPause

            Sets the paused state of DXUT internal timer and/or rendering process.

              VOID DXUTPause(  
            BOOL bPauseTime ,
            BOOL bPauseRendering
            ) ;

            Parameters

            bPauseTime
            [in] If TRUE, DXUT internal timer is paused. If FALSE, the timer is resumed from a paused state. See Remarks.
            bPauseRendering
            [in] If TRUE, DXUT will not call the LPDXUTCALLBACKD3D10FRAMERENDER callback function; DXUT will continue to call the LPDXUTCALLBACKFRAMEMOVE callback function. If FALSE, rendering will resume from a paused state. See Remarks.

            Return Values

            No return value.

            Remarks

            The timer controls the fTime and fElapsedTime parameters passed to the LPDXUTCALLBACKFRAMEMOVE or render callback functions.

            When time is paused, fTime will remain unchanged and fElapsedTime will be 0.0f. The LPDXUTCALLBACKFRAMEMOVE and the render callback functions will still be called. This allows a camera to still move while time is paused.

            When rendering is paused, the render callback function and the Direct3D Present method will not be called, and DXUT will periodically yield time to other processes by calling Sleep.

             

            DXUTIsRenderingPaused

            Indicates whether rendering has been paused in DXUT.

              BOOL DXUTIsRenderingPaused()  ;

            Parameters

            None.

            Return Values

            TRUE if rendering has been paused in DXUT.

             

            DXUTIsTimePaused

            Indicates whether time has been paused in DXUT.

              BOOL DXUTIsTimePaused()  ;

            Parameters

            None.

            Return Values

            TRUE if time has been paused in DXUT.

             

            DXUT用戶輸入函數(shù)

            函數(shù) 描述
            DXUTIsKeyDown 檢查當(dāng)該函數(shù)調(diào)用時,鍵盤上指定的某個鍵是否按下。
            DXUTIsMouseButtonDown 檢查當(dāng)該函數(shù)調(diào)用時,指定的鼠標鍵是否按下。

             

            DXUTIsKeyDown

            Indicates whether a specified keyboard key is up or down at the time the function is called.

              BOOL DXUTIsKeyDown(  
            BYTE vKey
            ) ;

            Parameters

            vKey
            [in] Virtual key code of a keyboard key. For example VK_F1, VK_LSHIFT, VK_RCONTROL, VK_RMENU, and 41 (representing the 'A' key).

            Return Values

            TRUE if the specified vKey keyboard key is down; FALSE otherwise.

             

            DXUTIsMouseButtonDown

            Indicates whether a specified mouse button is up or down at the time the function is called.

              BOOL DXUTIsMouseButtonDown(  
            BYTE vButton
            ) ;

            Parameters

            vButton
            [in] Virtual key code of a mouse button. Allowed values are VK_LBUTTON, VK_RBUTTON, VK_MBUTTON, VK_XBUTTON1, and VK_XBUTTON2.

            Return Values

            TRUE if the specified vButton mouse button is down; FALSE otherwise.


            posted on 2008-05-16 22:23 lovedday 閱讀(872) 評論(0)  編輯 收藏 引用


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


            公告

            導(dǎo)航

            統(tǒng)計

            常用鏈接

            隨筆分類(178)

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

            搜索

            最新評論

            国产91久久综合| 久久国产一片免费观看| 久久99精品国产麻豆婷婷| 久久久人妻精品无码一区| 久久99热这里只有精品国产| 熟妇人妻久久中文字幕| 国产精品一久久香蕉产线看| 久久精品国产国产精品四凭| 久久99精品久久久大学生| 国产欧美久久一区二区| 久久影视国产亚洲| 欧洲人妻丰满av无码久久不卡 | 久久精品国产精品亚洲下载| 久久综合亚洲色一区二区三区| 国产亚洲美女精品久久久久狼| 亚洲国产精品综合久久网络| 国产成年无码久久久久毛片| 亚洲婷婷国产精品电影人久久| 国产婷婷成人久久Av免费高清| 亚洲伊人久久综合影院| 国产成人久久精品麻豆一区| 久久亚洲精品人成综合网| 狠狠色丁香婷婷久久综合| 国产三级观看久久| 久久精品成人免费看| 国产精品美女久久久久久2018| 一本久道久久综合狠狠爱| 欧美亚洲日本久久精品| 久久精品国产一区二区三区日韩| 无码人妻精品一区二区三区久久久 | 66精品综合久久久久久久| 人妻少妇久久中文字幕| 亚洲熟妇无码另类久久久| 中文字幕久久精品| 思思久久99热只有频精品66| 精品久久久无码中文字幕天天| 国产成人久久精品一区二区三区| 亚洲狠狠婷婷综合久久久久| 久久人人添人人爽添人人片牛牛 | 久久亚洲私人国产精品| 人妻无码中文久久久久专区|