亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? dxmutdata.cs

?? VC中使用C#作為腳本引擎編程
?? CS
?? 第 1 頁 / 共 2 頁
字號:
//--------------------------------------------------------------------------------------
// File: DXMUTData.cs
//
// DirectX SDK Managed Direct3D sample framework data class
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//--------------------------------------------------------------------------------------
using System;
using System.Windows.Forms;
using System.Collections;
using Microsoft.DirectX;
using Microsoft.DirectX.Direct3D;

namespace Microsoft.Samples.DirectX.UtilityToolkit
{

    #region Framework Interfaces and Eventargs classes
    /// <summary>Interface that the framework will use to call into samples</summary>
    public interface IFrameworkCallback
    {
        void OnFrameMove(Device device, double totalTime, float elapsedTime);
        void OnFrameRender(Device device, double totalTime, float elapsedTime);
    }
    
    /// <summary>Interface that the framework will use to determine if a device is acceptable</summary>
    public interface IDeviceCreation
    {
        bool IsDeviceAcceptable(Caps caps, Format adapterFormat, Format backBufferFormat, bool isWindowed);
        void ModifyDeviceSettings(DeviceSettings settings, Caps caps);
    }

    /// <summary>Event arguments for device creation/reset</summary>
    public class DeviceEventArgs : EventArgs
    {
        // Class data
        public Device Device;
        public SurfaceDescription BackBufferDescription;

        public DeviceEventArgs(Device d, SurfaceDescription desc) 
        {
            Device = d;
            BackBufferDescription = desc;
        }
    }
    /// <summary>Event Handler delegate for device creation/reset</summary>
    public delegate void DeviceEventHandler(object sender, DeviceEventArgs e);
    #endregion

    #region Device Settings
    /// <summary>
    /// Holds the settings for creating a device
    /// </summary>
    public class DeviceSettings : ICloneable
    {
        public uint AdapterOrdinal;
        public DeviceType DeviceType;
        public Format AdapterFormat;
        public CreateFlags BehaviorFlags;
        public PresentParameters presentParams;

        #region ICloneable Members
        /// <summary>Clone this object</summary>
        public DeviceSettings Clone()
        {
            DeviceSettings clonedObject = new DeviceSettings();
            clonedObject.presentParams = (PresentParameters)this.presentParams.Clone();
            clonedObject.AdapterFormat = this.AdapterFormat;
            clonedObject.AdapterOrdinal = this.AdapterOrdinal;
            clonedObject.BehaviorFlags = this.BehaviorFlags;
            clonedObject.DeviceType = this.DeviceType;

            return clonedObject;
        }
        /// <summary>Clone this object</summary>
        object ICloneable.Clone() { throw new NotSupportedException("Use the strongly typed overload instead."); }
        #endregion
    }
    #endregion

    #region User Timers
    /// <summary>Stores timer callback information</summary>
    public struct TimerData
    {
        public TimerCallback callback;
        public float TimeoutInSecs;
        public float Countdown;
        public bool IsEnabled;
    }
    #endregion

    #region Callback methods 
    public delegate IntPtr WndProcCallback(IntPtr hWnd, NativeMethods.WindowMessage msg, IntPtr wParam, IntPtr lParam, ref bool NoFurtherProcessing);
    public delegate void TimerCallback(uint eventId);
    #endregion

    #region Matching Options
    /// <summary>
    /// Used when finding valid device settings
    /// </summary>
    public enum MatchType
    {
        IgnoreInput, // Use the closest valid value to a default 
        PreserveInput, // Use input without change, but may cause no valid device to be found
        ClosestToInput // Use the closest valid value to the input 
    }

    /// <summary>
    /// Options on how to match items
    /// </summary>
    public struct MatchOptions
    {
        public MatchType AdapterOrdinal;
        public MatchType DeviceType;
        public MatchType Windowed;
        public MatchType AdapterFormat;
        public MatchType VertexProcessing;
        public MatchType Resolution;
        public MatchType BackBufferFormat;
        public MatchType BackBufferCount;
        public MatchType MultiSample;
        public MatchType SwapEffect;
        public MatchType DepthFormat;
        public MatchType StencilFormat;
        public MatchType PresentFlags;
        public MatchType RefreshRate;
        public MatchType PresentInterval;
    };
    #endregion

    #region Framework's data
    /// <summary>
    /// Holds data for the Framework class, and all of the properties
    /// </summary>
    class FrameworkData
    {
        #region Instance Data
        private Device device; // the D3D rendering device

        private DeviceSettings  currentDeviceSettings; // current device settings
        private SurfaceDescription backBufferSurfaceDesc; // back buffer surface description
        private Caps caps; // D3D caps for current device

        private System.Windows.Forms.Control windowFocus; // the main app focus window
        private System.Windows.Forms.Control windowDeviceFullScreen; // the main app device window in fullscreen mode
        private System.Windows.Forms.Control windowDeviceWindowed; // the main app device window in windowed mode
        private IntPtr adapterMonitor; // the monitor of the adapter 
        private double currentTime; // current time in seconds
        private float elapsedTime; // time elapsed since last frame

        private System.Windows.Forms.FormStartPosition defaultStartingLocation; // default starting location of the window
        private System.Drawing.Rectangle clientRect; // client rect of window
        private System.Drawing.Rectangle fullScreenClientRect; // client rect of window when fullscreen
        private System.Drawing.Rectangle windowBoundsRect; // window rect of window
        private System.Drawing.Point windowLocation; // Location of the window
        
        private System.Windows.Forms.MainMenu windowMenu; // menu of app
        private double lastStatsUpdateTime; // last time the stats were updated
        private uint lastStatsUpdateFrames; // frames count since last time the stats were updated
        private float frameRate; // frames per second
        private int currentFrameNumber; // the current frame number

        private bool isHandlingDefaultHotkeys; // if true, the sample framework will handle some default hotkeys
        private bool isShowingMsgBoxOnError; // if true, then msgboxes are displayed upon errors
        private bool isClipCursorWhenFullScreen; // if true, then the sample framework will keep the cursor from going outside the window when full screen
        private bool isShowingCursorWhenFullScreen; // if true, then the sample framework will show a cursor when full screen
        private bool isConstantFrameTime; // if true, then elapsed frame time will always be 0.05f seconds which is good for debugging or automated capture
        private float timePerFrame; // the constant time per frame in seconds, only valid if isConstantFrameTime==true
        private bool isInWireframeMode; // if true, then RenderState.FillMode==FillMode.WireFrame else RenderState.FillMode==FillMode.Solid
        private bool canAutoChangeAdapter; // if true, then the adapter will automatically change if the window is different monitor
        private bool isWindowCreatedWithDefaultPositions; // if true, then default was used and the window should be moved to the right adapter
        private int applicationExitCode; // the exit code to be returned to the command line

        private bool isInited; // if true, then Init() has succeeded
        private bool wasWindowCreated; // if true, then CreateWindow() or SetWindow() has succeeded
        private bool wasDeviceCreated; // if true, then CreateDevice*() or SetDevice() has succeeded

        private bool isInitCalled; // if true, then Init() was called
        private bool isWindowCreateCalled; // if true, then CreateWindow() or SetWindow() was called
        private bool isDeviceCreateCalled; // if true, then CreateDevice*() or SetDevice() was called

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区三区在线播放| 中文字幕一区日韩精品欧美| 91九色最新地址| jizz一区二区| 色综合视频在线观看| 91精品办公室少妇高潮对白| 93久久精品日日躁夜夜躁欧美| 粉嫩嫩av羞羞动漫久久久 | 欧美精品久久久久久久久老牛影院| 91在线看国产| 91激情五月电影| 在线一区二区三区做爰视频网站| 91福利国产精品| 欧美日韩视频不卡| 精品国产亚洲在线| 中文字幕精品一区二区三区精品| 中文字幕综合网| 亚洲成人av一区| 激情小说欧美图片| heyzo一本久久综合| 欧美视频在线不卡| 亚洲精品一区二区三区精华液| 精品1区2区在线观看| 国产精品高清亚洲| 日韩黄色小视频| 国产99久久久国产精品潘金| av成人免费在线观看| 欧美日韩一区二区三区高清| 日韩欧美在线网站| 国产精品久久久久影院色老大 | 麻豆91在线播放免费| 国产成人精品亚洲午夜麻豆| 欧美体内she精视频| 精品精品国产高清a毛片牛牛 | 国产精品久久久久影院亚瑟| 国产精品乱人伦中文| 天天影视涩香欲综合网| 国产宾馆实践打屁股91| 欧美日韩aaaaa| 国产精品美女久久久久av爽李琼| 丝袜美腿高跟呻吟高潮一区| 成人福利在线看| 欧美精品免费视频| 国产精品不卡视频| 蜜桃av一区二区三区| 91日韩在线专区| 久久午夜国产精品| 偷拍日韩校园综合在线| 99re热这里只有精品免费视频| 91精品欧美久久久久久动漫 | 国产拍欧美日韩视频二区| 亚洲成国产人片在线观看| 国产suv精品一区二区三区| 717成人午夜免费福利电影| 国产精品短视频| 国产米奇在线777精品观看| 91精品国产欧美一区二区成人 | 欧美a级理论片| 日本韩国精品一区二区在线观看| 国产目拍亚洲精品99久久精品| 日韩高清在线一区| 欧美亚洲图片小说| 一区二区三区在线视频免费| 99久久精品国产网站| 欧美国产成人精品| 国产精品一品视频| 久久综合久久综合久久| 经典一区二区三区| 2021久久国产精品不只是精品| 蜜臀久久99精品久久久久宅男| 欧美美女喷水视频| 亚洲v日本v欧美v久久精品| 色屁屁一区二区| 亚洲精品美腿丝袜| 欧美午夜电影在线播放| 亚洲美女区一区| 色欧美片视频在线观看| 有坂深雪av一区二区精品| 91福利在线免费观看| 一区二区三区四区中文字幕| 在线欧美一区二区| 丝瓜av网站精品一区二区 | 国产色一区二区| 懂色中文一区二区在线播放| 最好看的中文字幕久久| 91在线高清观看| 一区二区三区精品| 欧美精品在线观看一区二区| 日韩av不卡一区二区| 日韩一区二区三区电影| 国产精品伊人色| 亚洲免费资源在线播放| 欧美视频一区二| 精品综合免费视频观看| 亚洲国产精品成人综合| 91成人在线精品| 老汉av免费一区二区三区| 久久精品欧美日韩| 91老师国产黑色丝袜在线| 亚洲最大成人综合| 日韩精品一区在线观看| 丁香激情综合五月| 亚洲一区二区在线免费观看视频| 日韩欧美成人激情| 成人18视频在线播放| 亚瑟在线精品视频| 国产人成一区二区三区影院| 在线视频国内自拍亚洲视频| 激情五月婷婷综合| 一区二区三区四区激情| 久久综合视频网| 在线观看免费成人| 国产精品66部| 日韩中文字幕一区二区三区| 久久综合国产精品| 欧美三级视频在线观看| 成人网在线播放| 麻豆精品一二三| 亚洲国产一区二区视频| 国产精品久线观看视频| 日韩欧美国产三级电影视频| 91丨porny丨蝌蚪视频| 久久精品国产亚洲a| 亚洲国产欧美日韩另类综合| 国产精品乱人伦| 亚洲精品在线免费播放| 欧美色图片你懂的| 色狠狠桃花综合| 国产福利91精品一区| 美女性感视频久久| 亚洲综合在线五月| 亚洲精品国产无套在线观| 国产欧美一区视频| 久久综合国产精品| 日韩欧美国产精品一区| 欧美日韩国产另类不卡| aaa亚洲精品| 北岛玲一区二区三区四区| 狠狠色丁香久久婷婷综| 久久成人精品无人区| 久久精品国产999大香线蕉| 日本成人超碰在线观看| 图片区小说区区亚洲影院| 精品中文字幕一区二区| 日韩精品亚洲专区| 视频一区二区三区在线| 石原莉奈一区二区三区在线观看| 亚洲尤物在线视频观看| 亚洲麻豆国产自偷在线| 亚洲精品免费看| 亚洲综合在线视频| 亚洲成av人片在线观看无码| 日韩精品乱码免费| 免费一区二区视频| 精品在线免费观看| 国产精品羞羞答答xxdd| 成人黄色国产精品网站大全在线免费观看| 国产精品一区二区91| k8久久久一区二区三区| 91黄视频在线| 欧美日韩免费观看一区二区三区| 欧美美女一区二区在线观看| 日韩欧美中文字幕制服| 精品少妇一区二区三区视频免付费| 日韩三级视频在线观看| 久久婷婷国产综合精品青草| 国产女主播视频一区二区| 亚洲美女偷拍久久| 日韩精品一级中文字幕精品视频免费观看| 日本成人在线不卡视频| 国产成a人亚洲| 欧美在线一区二区三区| 日韩视频免费直播| 国产精品理论在线观看| 亚洲va国产天堂va久久en| 日韩精品亚洲专区| 成人免费高清在线| 欧美性色综合网| 日韩欧美一二三四区| 亚洲国产激情av| 亚洲成在线观看| 国产一区二区在线视频| 91国产丝袜在线播放| 日韩欧美一区二区久久婷婷| 欧美激情一区二区三区全黄| 亚洲国产视频在线| 国产酒店精品激情| 欧美三电影在线| 国产欧美日韩中文久久| 亚洲第一搞黄网站| 国产成人亚洲综合色影视| 欧美无人高清视频在线观看| 精品国产91洋老外米糕| 樱桃国产成人精品视频| 国产一区二区视频在线播放| 欧美日韩亚洲综合一区二区三区| 国产区在线观看成人精品| 蜜桃一区二区三区在线观看| 91麻豆福利精品推荐| 亚洲国产岛国毛片在线|