• <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暫停函數(shù)

            函數(shù) 描述
            DXUTPause 將框架的內(nèi)部計數(shù)器和(或)渲染過程設為暫停狀態(tài)
            DXUTRenderingPaused 檢查當前設備的渲染狀態(tài)是否處在暫停狀態(tài)
            DXUTIsTimePaused 檢查當前設備的計時器是否處在暫停狀態(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 檢查當該函數(shù)調(diào)用時,鍵盤上指定的某個鍵是否按下。
            DXUTIsMouseButtonDown 檢查當該函數(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 閱讀(875) 評論(0)  編輯 收藏 引用

            公告

            導航

            統(tǒng)計

            常用鏈接

            隨筆分類(178)

            3D游戲編程相關鏈接

            搜索

            最新評論

            69SEX久久精品国产麻豆| 国产精品一区二区久久精品涩爱| 亚洲国产成人久久综合一区77| 国内精品久久久久久不卡影院| 国产精品美女久久久免费| 亚洲国产成人久久精品99| 久久国产免费直播| 丁香五月综合久久激情| 伊人色综合久久天天网| 国产精品久久久久影视不卡| 亚洲国产小视频精品久久久三级| 久久国产欧美日韩精品| 国产精久久一区二区三区| 久久国产欧美日韩精品| 久久久精品日本一区二区三区| 日韩人妻无码精品久久久不卡| 久久99国产精品成人欧美| 欧美一区二区三区久久综合| 狠狠综合久久综合中文88| 久久久久免费精品国产| 久久久久久A亚洲欧洲AV冫| 77777亚洲午夜久久多喷| 欧美伊人久久大香线蕉综合| 久久精品国产精品亚洲下载| 久久一日本道色综合久久| 久久只有这里有精品4| 久久国产精品二国产精品| 久久精品国产秦先生| 久久久无码一区二区三区| 一本色道久久88综合日韩精品 | 国产精品无码久久久久久| 亚洲人成网站999久久久综合 | 亚洲国产成人精品91久久久 | 欧美成人免费观看久久| 狠狠精品干练久久久无码中文字幕 | 人人狠狠综合久久88成人| 人妻少妇精品久久| 亚洲人成无码网站久久99热国产| 久久久久久噜噜精品免费直播| 国产精品成人久久久久三级午夜电影 | 久久有码中文字幕|