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

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

?? dxmut.cs

?? VC中使用C#作為腳本引擎編程
?? CS
?? 第 1 頁 / 共 5 頁
字號:
                // Override the window's initial size and position if there were cmd line args
                if (State.OverrideStartX != -1)
                {
                    State.DefaultStartingLocation = System.Windows.Forms.FormStartPosition.Manual;
                    x = State.OverrideStartX;
                }
                if (State.OverrideStartY != -1)
                {
                    State.DefaultStartingLocation = System.Windows.Forms.FormStartPosition.Manual;
                    y = State.OverrideStartY;
                }

                // Create the new window
                GraphicsWindow renderWindow = new GraphicsWindow(this);
                // Hook the events
                HookEvents(renderWindow);
                // Are we in the default start location?
                if (State.DefaultStartingLocation == System.Windows.Forms.FormStartPosition.WindowsDefaultLocation)
                {
                    State.IsWindowCreatedWithDefaultPositions = true;
                    renderWindow.StartPosition = System.Windows.Forms.FormStartPosition.WindowsDefaultLocation;
                }
                else
                {
                    State.IsWindowCreatedWithDefaultPositions = false;
                    renderWindow.Location = new System.Drawing.Point(x, y);
                }

                // Calculate the window size
                System.Drawing.Size windowSize = DefaultStartingSize;
                if (State.OverrideWidth != 0)
                    windowSize.Width = State.OverrideWidth;
                if (State.OverrideHeight != 0)
                    windowSize.Height = State.OverrideHeight;
                // Set the size
                renderWindow.ClientSize = windowSize;

                // Store the window title
                State.WindowTitle = windowTitle;
                renderWindow.Text = windowTitle;

                // Set current cursor
                System.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.Default;

                // Get the window's rectangles
                renderWindow.Visible = false;
                renderWindow.CreateControl();
                State.ClientRectangle = renderWindow.ClientRectangle;
                State.WindowBoundsRectangle = renderWindow.Bounds;

                // Update state
                State.WasWindowCreated = true;
                State.WindowFocus = renderWindow;
                State.WindowDeviceFullScreen = renderWindow;
                State.WindowDeviceWindowed = renderWindow;
            }
        }

        /// <summary>
        /// Calls into CreateWindow with default paramters
        /// </summary>
        public void CreateWindow(string windowTitle)
        {
            CreateWindow(windowTitle, LoadFirstIconFromResource(), null, -1, -1);
        }
        /// <summary>
        /// Sets a previously created window for the framework to use.  If Init has
        /// not already been called, it will call it with default parameters.  Instead
        /// of calling this you can call CreateWindow to create a new window.
        /// </summary>
        public void SetWindow(System.Windows.Forms.Control windowFocus, System.Windows.Forms.Control windowDeviceFullscreen,
            System.Windows.Forms.Control windowDeviceWindowed, bool handleMessages)
        {
            if (State.IsInsideDeviceCallback)
                throw new InvalidOperationException("You cannot create a window from inside a callback.");

            State.WasWindowCreateCalled = true;

            // To avoid confusion, we do not allow any window handles to be null here.  The
            // caller must pass in valid window handles for all three parameters.  The same
            // window handles may be used for more than one parameter.
            if ((windowDeviceFullscreen == null) || (windowDeviceWindowed == null)
                || (windowFocus == null))
            {
                throw new InvalidOperationException("You must pass in valid window handles.");
            }

            if (handleMessages)
            {
                // Use the static windows procedure defined here
                HookEvents(windowFocus);
            }

            // Are we inited?
            if (!State.IsInited)
            {
                // If Init was already called and failed, fail again
                if (State.WasInitCalled)
                {
                    throw new InvalidOperationException("Initialize was already called and failed.");
                }

                // Call initialize with default params
                Initialize(true, true, true);
            }

            // Get the window's rectangles
            State.ClientRectangle = windowDeviceWindowed.ClientRectangle;
            State.WindowBoundsRectangle = windowDeviceWindowed.Bounds;

            // Update state
            State.WasWindowCreated = true;
            State.WindowFocus = windowFocus;
            State.WindowDeviceFullScreen = windowDeviceFullscreen;
            State.WindowDeviceWindowed = windowDeviceWindowed;
        }


        /// <summary>
        /// Sets a previously created window for the framework to use.  If Init has
        /// not already been called, it will call it with default parameters.  Instead
        /// of calling this you can call CreateWindow to create a new window.
        /// </summary>
        public void SetWinformWindow(System.Windows.Forms.Control windowFocus, System.Windows.Forms.Control windowDeviceFullscreen,
            System.Windows.Forms.Control windowDeviceWindowed)
        {
            if (State.IsInsideDeviceCallback)
                throw new InvalidOperationException("You cannot create a window from inside a callback.");

            State.WasWindowCreateCalled = true;

            // To avoid confusion, we do not allow any controls to be null here.  The
            // caller must pass in valid windows for all three parameters.  The same
            // window may be used for more than one parameter.
            if ((windowDeviceFullscreen == null) || (windowDeviceWindowed == null)
                || (windowFocus == null))
            {
                throw new InvalidOperationException("You must pass in valid window handles.");
            }

            // Are we inited?
            if (!State.IsInited)
            {
                // If Init was already called and failed, fail again
                if (State.WasInitCalled)
                {
                    throw new InvalidOperationException("Initialize was already called and failed.");
                }

                // Call initialize with default params
                Initialize(true, true, true);
            }

            // Update state
            State.WasWindowCreated = true;
            State.WindowFocus = windowFocus;
            State.WindowDeviceFullScreen = windowDeviceFullscreen;
            State.WindowDeviceWindowed = windowDeviceWindowed;
        }

        /// <summary>
        /// Creates a Direct3D device.  If CreateWindow or SetWindow has not already
        /// been called, it will call CreateWindow with default parameters.
        /// Instead of calling this, you can call SetDevice or CreateDeviceFromSettings
        /// </summary>
        public void CreateDevice(uint adapterOridinal, bool windowed, int suggestedWidth,
            int suggestedHeight, IDeviceCreation callback)
        {
            if (State.IsInsideDeviceCallback)
                throw new InvalidOperationException("You cannot create a window from inside a callback.");

            // Store callbacks in global state
            SetDeviceCreationInterface(callback);

            // Update device create being called
            State.WasDeviceCreateCalled = true;

            // Was the window created? If not, create it now
            if (!State.WasWindowCreated)
            {
                // If CreateWindow or SetWindow was already called and failed, then fail again.
                if (State.WasWindowCreateCalled)
                {
                    throw new InvalidOperationException("CreateWindow was already called and failed.");
                }

                // Create a default window
                CreateWindow("Direct3D Window", null, null, -1, -1);
            }

            // Force an enumeration with the updated Device Acceptable callback
            Enumeration.Enumerate(State.DeviceCreationInterface);

            // Set up the match options
            MatchOptions match = new MatchOptions();
            match.AdapterOrdinal = MatchType.PreserveInput;
            match.DeviceType = MatchType.IgnoreInput;
            match.Windowed = MatchType.PreserveInput;
            match.AdapterFormat = MatchType.IgnoreInput;
            match.VertexProcessing = MatchType.IgnoreInput;
            match.Resolution = MatchType.ClosestToInput;
            match.BackBufferFormat = MatchType.IgnoreInput;
            match.BackBufferCount = MatchType.IgnoreInput;
            match.MultiSample = MatchType.IgnoreInput;
            match.SwapEffect = MatchType.IgnoreInput;
            match.DepthFormat = MatchType.IgnoreInput;
            match.StencilFormat = MatchType.IgnoreInput;
            match.PresentFlags = MatchType.IgnoreInput;
            match.RefreshRate = MatchType.IgnoreInput;
            match.PresentInterval = MatchType.IgnoreInput;

            // Get the device settings
            DeviceSettings settings = new DeviceSettings();
            settings.presentParams = new PresentParameters();
            settings.AdapterOrdinal = adapterOridinal;
            settings.presentParams.Windowed = windowed;
            settings.presentParams.BackBufferWidth = suggestedWidth;
            settings.presentParams.BackBufferHeight = suggestedHeight;

            // Override with settings for command line
            if (State.OverrideWidth != 0)
                settings.presentParams.BackBufferWidth = State.OverrideWidth;
            if (State.OverrideHeight != 0)
                settings.presentParams.BackBufferHeight = State.OverrideHeight;
            if (State.OverrideAdapterOrdinal != -1)
                settings.AdapterOrdinal = (uint)State.OverrideAdapterOrdinal;
            
            if (State.IsOverridingFullScreen)
            {
                settings.presentParams.Windowed = false;
                if ((State.OverrideWidth == 0) && (State.OverrideHeight == 0))
                    match.Resolution = MatchType.IgnoreInput;
            }
            if (State.IsOverridingWindowed)
                settings.presentParams.Windowed = true;

            if (State.IsOverridingForceHardware)
            {
                settings.DeviceType = DeviceType.Hardware;
                match.DeviceType = MatchType.PreserveInput;
            }
            if (State.IsOverridingForceReference)
            {
                settings.DeviceType = DeviceType.Reference;
                match.DeviceType = MatchType.PreserveInput;
            }
            if (State.IsOverridingForcePureHardwareVertexProcessing)
            {
                settings.BehaviorFlags = CreateFlags.HardwareVertexProcessing | CreateFlags.PureDevice;
                match.VertexProcessing = MatchType.PreserveInput;
            }
            if (State.IsOverridingForceHardwareVertexProcessing)
            {
                settings.BehaviorFlags = CreateFlags.HardwareVertexProcessing;
                match.VertexProcessing = MatchType.PreserveInput;
            }
            if (State.IsOverridingForceSoftwareVertexProcessing)
            {
                settings.BehaviorFlags = CreateFlags.SoftwareVertexProcessing;
                match.VertexProcessing = MatchType.PreserveInput;
            }

            try
            {
                settings = FindValidDeviceSettings(settings, match);
            }
            catch(Exception e)
            {
                DisplayErrorMessage(e);
                throw;
            }

            // If the modify device callback isn't null, call it to
            // let the app change the settings
            if (State.DeviceCreationInterface != null)
            {
                Caps c = Manager.GetDeviceCaps((int)settings.AdapterOrdinal, settings.DeviceType);
                State.DeviceCreationInterface.ModifyDeviceSettings(settings, c);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人涩涩免费视频| 99在线视频精品| 亚洲高清久久久| 亚洲午夜久久久久久久久电影网 | 日韩一区二区三区观看| 精品视频1区2区| 欧美性色欧美a在线播放| 精品视频在线免费观看| 欧美日韩国产综合一区二区三区| 97精品久久久久中文字幕| 日本丶国产丶欧美色综合| 欧美做爰猛烈大尺度电影无法无天| 在线观看中文字幕不卡| 欧美日韩午夜在线视频| 日韩视频一区二区三区 | 不卡一区二区三区四区| 99久久国产综合精品女不卡| 欧美影片第一页| 日韩你懂的在线播放| 国产欧美日韩亚州综合| 日韩一区在线播放| 石原莉奈在线亚洲三区| 精品在线你懂的| 99re这里都是精品| 91麻豆精品国产自产在线| 日韩一卡二卡三卡国产欧美| 国产亚洲制服色| 一区二区视频免费在线观看| 日本不卡视频在线观看| 国产999精品久久| 欧美色图天堂网| 久久综合给合久久狠狠狠97色69| 国产精品乱码人人做人人爱| 亚洲国产成人av| 国产成人精品www牛牛影视| 色综合久久88色综合天天免费| 欧美日韩成人高清| 国产精品久久久久久久久果冻传媒 | ...xxx性欧美| 久久99国产乱子伦精品免费| 色综合天天做天天爱| 日韩精品一区二区三区四区视频 | 精品亚洲欧美一区| 色欧美88888久久久久久影院| 欧美一区二区视频观看视频| 国产精品久久影院| 免费观看久久久4p| 91久久一区二区| 久久精品人人做人人爽人人| 午夜国产不卡在线观看视频| 成人精品小蝌蚪| www国产精品av| 亚洲综合偷拍欧美一区色| 国产一区 二区| 欧美一区二区人人喊爽| 亚洲一区二区av在线| 国产成人精品网址| 久久综合成人精品亚洲另类欧美 | 精品国产乱码久久久久久1区2区| 日韩码欧中文字| 成人综合婷婷国产精品久久| 精品日韩一区二区三区免费视频| 亚洲高清久久久| 91美女视频网站| 国产精品国产馆在线真实露脸| 久久99热国产| 欧美精品在线观看播放| 亚洲h动漫在线| 欧美亚洲综合久久| 亚洲视频一二三| 91毛片在线观看| 一区二区三区四区高清精品免费观看 | 亚洲va国产va欧美va观看| 91影视在线播放| 国产精品乱码妇女bbbb| 国产精品18久久久久久久网站| 亚洲精品在线三区| 国产精品亚洲一区二区三区妖精 | 黄网站免费久久| 欧美成人aa大片| 激情成人综合网| 国产天堂亚洲国产碰碰| 岛国精品在线观看| 中文字幕在线不卡| 日本精品裸体写真集在线观看 | 亚洲亚洲人成综合网络| 欧美日韩激情在线| 久久精品国产在热久久| 国产亚洲欧美激情| 91尤物视频在线观看| 亚洲第一在线综合网站| 欧美一区二区三区播放老司机| 韩日av一区二区| 国产免费成人在线视频| 色婷婷综合久色| 午夜精品一区二区三区免费视频| 日韩女优av电影| 国产91精品在线观看| 亚洲视频1区2区| 3atv在线一区二区三区| 国产乱色国产精品免费视频| 成人欧美一区二区三区白人| 欧美日韩国产精品成人| 国模娜娜一区二区三区| 成人免费在线视频| 欧美精品v国产精品v日韩精品| 久久99国产精品成人| 亚洲摸摸操操av| 欧美一区二区精品在线| 99视频精品免费视频| 日本免费在线视频不卡一不卡二| 欧美国产精品一区二区三区| 欧美日韩三级一区| 国产成人aaa| 美国毛片一区二区三区| 中文字幕一区二区视频| 精品国产一区二区在线观看| 一本到三区不卡视频| 国产精品正在播放| 午夜久久久久久| 亚洲少妇屁股交4| 精品国产精品网麻豆系列| 91官网在线免费观看| 国产精品自在欧美一区| 青青青伊人色综合久久| 亚洲欧洲日产国码二区| 久久久久9999亚洲精品| 亚洲欧美综合在线精品| 久久国产福利国产秒拍| 国产精品久久三| 91精品视频网| 在线一区二区三区做爰视频网站| 久久成人免费网站| 亚洲成va人在线观看| 亚洲手机成人高清视频| 久久久综合网站| 正在播放亚洲一区| 欧美日韩一区二区三区四区| 成人激情综合网站| 国产91精品入口| 国产高清一区日本| 国产一级精品在线| 国产在线不卡一区| 国产一二精品视频| 91精品国产色综合久久ai换脸| 久久se这里有精品| 爽好久久久欧美精品| 综合久久一区二区三区| 中文字幕一区视频| 亚洲丝袜美腿综合| 亚洲日本电影在线| 一区二区三区在线观看欧美| 综合色中文字幕| 亚洲精品国产一区二区精华液 | 91麻豆国产在线观看| 国产白丝网站精品污在线入口| 激情六月婷婷久久| 精彩视频一区二区| 国产精品中文有码| 成人avav在线| 欧美系列在线观看| 欧美日韩国产首页| 欧美一区二区三区思思人| 精品成人一区二区三区| 久久久综合精品| 欧美曰成人黄网| 精品一区二区三区久久久| 亚洲电影一级片| 日本成人中文字幕| 国产在线精品一区二区夜色| 高清不卡一二三区| 色综合视频一区二区三区高清| 一本一道综合狠狠老| 欧美一区二区人人喊爽| 久久精品日韩一区二区三区| 国产精品美女久久久久aⅴ| 亚洲一区在线看| 麻豆精品一区二区综合av| 成人手机电影网| 在线视频中文字幕一区二区| 日韩精品一区二区三区视频| 中文字幕成人av| 亚洲成人福利片| 成人精品免费网站| 欧美人伦禁忌dvd放荡欲情| 国产日产欧美一区| 亚洲成av人**亚洲成av**| 国产成人超碰人人澡人人澡| 欧美天天综合网| 韩日欧美一区二区三区| 国产日产欧美精品一区二区三区| 久久久一区二区| 亚洲精品欧美激情| 国内不卡的二区三区中文字幕 | 自拍偷拍亚洲欧美日韩| 麻豆成人av在线| 色哟哟欧美精品| 久久久久久影视| 日韩黄色一级片| 日本高清成人免费播放|