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

            天行健 君子當自強而不息

            DXUT框架剖析(12)

            DXUT暫停函數

            函數 描述
            DXUTPause 將框架的內部計數器和(或)渲染過程設為暫停狀態
            DXUTRenderingPaused 檢查當前設備的渲染狀態是否處在暫停狀態
            DXUTIsTimePaused 檢查當前設備的計時器是否處在暫停狀態

             

            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用戶輸入函數

            函數 描述
            DXUTIsKeyDown 檢查當該函數調用時,鍵盤上指定的某個鍵是否按下。
            DXUTIsMouseButtonDown 檢查當該函數調用時,指定的鼠標鍵是否按下。

             

            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 閱讀(875) 評論(0)  編輯 收藏 引用

            公告

            導航

            統計

            常用鏈接

            隨筆分類(178)

            3D游戲編程相關鏈接

            搜索

            最新評論

            97久久香蕉国产线看观看| 久久精品一区二区三区AV| 99久久精品国产高清一区二区| 欧美黑人激情性久久| 久久精品男人影院| 伊人久久大香线蕉成人| 2021精品国产综合久久| 蜜桃麻豆www久久| 综合久久久久久中文字幕亚洲国产国产综合一区首 | 久久99精品久久久久久秒播| 久久人人爽人人爽人人片AV麻豆 | 久久久无码精品午夜| 亚洲中文字幕无码久久2017| 国产精品美女久久久久AV福利| 怡红院日本一道日本久久| 欧美午夜A∨大片久久| 久久精品国产一区二区三区日韩| 亚洲欧美成人久久综合中文网 | 久久综合久久美利坚合众国| 精品熟女少妇av免费久久| 伊人色综合久久天天网| 久久综合九色综合久99| 久久久久亚洲AV片无码下载蜜桃| 久久久久久久国产免费看| 四虎国产精品免费久久久| 久久久免费精品re6| 久久99精品国产麻豆宅宅| 色综合久久天天综线观看| 久久久久久国产精品无码下载 | 狠狠色综合久久久久尤物| 国产成人久久AV免费| 久久国产精品77777| 久久婷婷五月综合97色一本一本| 久久99热这里只有精品66| 亚洲欧洲精品成人久久奇米网| 精品久久久久久久中文字幕| 天天久久狠狠色综合| 久久精品综合一区二区三区| 久久人人超碰精品CAOPOREN| 欧美一级久久久久久久大| 亚洲国产日韩欧美综合久久|