예제 #1
0
        protected D3DApp(IntPtr hInstance)
        {
            AppInst            = hInstance;
            MainWindowCaption  = "D3D11 Application";
            DriverType         = DriverType.Hardware;
            ClientWidth        = 800;
            ClientHeight       = 600;
            Enable4XMsaa       = false;
            Window             = null;
            AppPaused          = false;
            Minimized          = false;
            Maximized          = false;
            Resizing           = false;
            Msaa4XQuality      = 0;
            Device             = null;
            ImmediateContext   = null;
            SwapChain          = null;
            DepthStencilBuffer = null;
            RenderTargetView   = null;
            DepthStencilView   = null;
            Viewport           = new Viewport();
            Timer = new GameTimer();

            GD3DApp = this;
        }
예제 #2
0
파일: D3DApp.cs 프로젝트: remy22/dx11
        protected D3DApp(IntPtr hInstance)
        {
            AppInst = hInstance;
            MainWindowCaption = "D3D11 Application";
            DriverType = DriverType.Hardware;
            ClientWidth = 800;
            ClientHeight = 600;
            Enable4XMsaa = false;
            Window = null;
            AppPaused = false;
            Minimized = false;
            Maximized = false;
            Resizing = false;
            Msaa4XQuality = 0;
            Device = null;
            ImmediateContext = null;
            SwapChain = null;
            DepthStencilBuffer = null;
            RenderTargetView = null;
            DepthStencilView = null;
            Viewport = new Viewport();
            Timer = new GameTimer();

            GD3DApp = this;
        }
예제 #3
0
 public Screen(IntPtr handleInstance)
 {
     this.d3DApp   = new D3DApp(handleInstance);
     this.fpsTimer = new Stopwatch();
     this.running  = true;
 }